Package org.antlr.v4.tool
Class ANTLRMessage
- java.lang.Object
-
- org.antlr.v4.tool.ANTLRMessage
-
- Direct Known Subclasses:
GrammarSemanticsMessage
,GrammarSyntaxMessage
,LeftRecursionCyclesMessage
,ToolMessage
public class ANTLRMessage extends Object
-
-
Field Summary
Fields Modifier and Type Field Description int
charPosition
String
fileName
Grammar
g
int
line
org.antlr.runtime.Token
offendingToken
Most of the time, we'll have a token such as an undefined rule ref and so this will be set.
-
Constructor Summary
Constructors Constructor Description ANTLRMessage(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]
getArgs()
Throwable
getCause()
ErrorType
getErrorType()
org.stringtemplate.v4.ST
getMessageTemplate(boolean verbose)
String
toString()
-