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 intcharPositionStringfileNameGrammargintlineorg.antlr.runtime.TokenoffendingTokenMost 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()ThrowablegetCause()ErrorTypegetErrorType()org.stringtemplate.v4.STgetMessageTemplate(boolean verbose)StringtoString()
-