Package org.antlr.v4.tool
Class ANTLRMessage
java.lang.Object
org.antlr.v4.tool.ANTLRMessage
- Direct Known Subclasses:
GrammarSemanticsMessage
,GrammarSyntaxMessage
,LeftRecursionCyclesMessage
,ToolMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
int
org.antlr.runtime.Token
Most of the time, we'll have a token such as an undefined rule ref and so this will be set. -
Constructor Summary
ConstructorsConstructorDescriptionANTLRMessage
(ErrorType errorType) ANTLRMessage
(ErrorType errorType, Throwable e, org.antlr.runtime.Token offendingToken, Object... args) ANTLRMessage
(ErrorType errorType, org.antlr.runtime.Token offendingToken, Object... args) -
Method Summary
Modifier and TypeMethodDescriptionObject[]
getArgs()
getCause()
org.stringtemplate.v4.ST
getMessageTemplate
(boolean verbose) toString()
-
Field Details
-
fileName
-
line
public int line -
charPosition
public int charPosition -
g
-
offendingToken
public org.antlr.runtime.Token offendingTokenMost of the time, we'll have a token such as an undefined rule ref and so this will be set.
-
-
Constructor Details
-
ANTLRMessage
-
ANTLRMessage
-
ANTLRMessage
-
-
Method Details