Package: org.apache.groovy.ginq.dsl

## [Java] Interface SyntaxErrorReportable

-     public interface SyntaxErrorReportable

  Supports reporting the syntax error of GINQ

  Since:
    4.0.0

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public void` | `collectSyntaxError(GinqSyntaxError ginqSyntaxError)` Adds the supplied GINQ syntax error to the current source unit.
    `` | `public SourceUnit` | `getSourceUnit()` Returns the source unit collecting syntax errors.

- - ### Method Detail

    - #### public void collectSyntaxError(GinqSyntaxError ginqSyntaxError)

      Adds the supplied GINQ syntax error to the current source unit.

      Parameters:
        `ginqSyntaxError` - the error to report

    - #### public SourceUnit getSourceUnit()

      Returns the source unit collecting syntax errors.

      Returns:
        the source unit used for reporting