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
-
Method Summary
Modifier and TypeMethodDescriptiondefault PositionInfo
genPositionInfo
(int offset) default PositionInfo
genPositionInfo
(Tuple2<Integer, Integer> offset) int
int
int
default void
default void
default void
default void
default void
default void
require
(boolean condition, String msg, Tuple2<Integer, Integer> offset, boolean toAttachPositionInfo) default void
throwSyntaxError
(String msg, int offset, boolean toAttachPositionInfo) default void
throwSyntaxError
(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()
-