GrammarSemanticsMessage, GrammarSyntaxMessage, LeftRecursionCyclesMessage, ToolMessagepublic class ANTLRMessage extends Object
| 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 | 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) |
| Modifier and Type | Method | Description |
|---|---|---|
Object[] |
getArgs() |
|
Throwable |
getCause() |
|
ErrorType |
getErrorType() |
|
org.stringtemplate.v4.ST |
getMessageTemplate(boolean verbose) |
|
String |
toString() |
public String fileName
public int line
public int charPosition
public Grammar g
public org.antlr.runtime.Token offendingToken
Copyright © 1992–2019 ANTLR. All rights reserved.