Package org.apache.groovy.parser.antlr4
Interface SyntaxErrorReportable
- 
- All Known Implementing Classes:
 AbstractLexer,AbstractParser,GroovyLangLexer,GroovyLangParser,GroovyLexer,GroovyParser
public interface SyntaxErrorReportableA SyntaxErrorReportable is a recognizer that can report syntax error 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PositionInfogenPositionInfo(int offset)default PositionInfogenPositionInfo(Tuple2<Integer,Integer> offset)intgetErrorColumn()intgetErrorLine()intgetSyntaxErrorSource()default voidrequire(boolean condition, String msg)default voidrequire(boolean condition, String msg, boolean toAttachPositionInfo)default voidrequire(boolean condition, String msg, int offset)default voidrequire(boolean condition, String msg, int offset, boolean toAttachPositionInfo)default voidrequire(boolean condition, String msg, Tuple2<Integer,Integer> offset)default 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) 
 - 
 
- 
- 
Method Detail
- 
require
default void require(boolean condition, String msg, int offset, boolean toAttachPositionInfo) 
- 
require
default void require(boolean condition, String msg, Tuple2<Integer,Integer> offset, boolean toAttachPositionInfo) 
- 
require
default void require(boolean condition, String msg, boolean toAttachPositionInfo) 
- 
require
default void require(boolean condition, String msg, int offset) 
- 
require
default void require(boolean condition, String msg) 
- 
throwSyntaxError
default void throwSyntaxError(String msg, int offset, boolean toAttachPositionInfo)
 
- 
throwSyntaxError
default void throwSyntaxError(String msg, Tuple2<Integer,Integer> offset, boolean toAttachPositionInfo)
 
- 
getSyntaxErrorSource
int getSyntaxErrorSource()
 
- 
genPositionInfo
default PositionInfo genPositionInfo(int offset)
 
- 
genPositionInfo
default PositionInfo genPositionInfo(Tuple2<Integer,Integer> offset)
 
- 
getErrorLine
int getErrorLine()
 
- 
getErrorColumn
int getErrorColumn()
 
 - 
 
 -