Package org.apache.groovy.parser.antlr4
Interface SyntaxErrorReportable
- All Known Implementing Classes:
AbstractLexer,AbstractParser,GroovyLangLexer,GroovyLangParser,GroovyLexer,GroovyParser
public interface SyntaxErrorReportable
A SyntaxErrorReportable is a recognizer that can report syntax error
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault PositionInfogenPositionInfo(int offset) default PositionInfogenPositionInfo(Tuple2<Integer, Integer> offset) intintintdefault voiddefault voiddefault voiddefault voiddefault voiddefault voidrequire(boolean condition, String msg, Tuple2<Integer, Integer> offset, boolean toAttachPositionInfo) default voidthrowSyntaxError(String msg, int offset, boolean toAttachPositionInfo) default voidthrowSyntaxError(String msg, Tuple2<Integer, Integer> offset, boolean toAttachPositionInfo)
-
Field Details
-
NO_OFFSET
-
-
Method Details
-
require
-
require
-
require
-
require
-
require
-
require
-
throwSyntaxError
-
throwSyntaxError
-
getSyntaxErrorSource
int getSyntaxErrorSource() -
genPositionInfo
-
genPositionInfo
-
getErrorLine
int getErrorLine() -
getErrorColumn
int getErrorColumn()
-