Package org.apache.groovy.ginq.dsl
Interface SyntaxErrorReportable
- All Known Implementing Classes:
GinqAstBuilder
public interface SyntaxErrorReportable
Supports reporting the syntax error of GINQ
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidcollectSyntaxError(GinqSyntaxError ginqSyntaxError) Adds the supplied GINQ syntax error to the current source unit.Returns the source unit collecting syntax errors.
-
Method Details
-
getSourceUnit
SourceUnit getSourceUnit()Returns the source unit collecting syntax errors.- Returns:
- the source unit used for reporting
-
collectSyntaxError
Adds the supplied GINQ syntax error to the current source unit.- Parameters:
ginqSyntaxError- the error to report
-