| Modifier and Type | Field and Description |
|---|---|
| public int | |
| public Set | errorTypes
All errors that have been generated |
| pack-priv STGroup | format
The group of templates that represent the current message format. |
| pack-priv String | |
| public static final String | |
| pack-priv ErrorBuffer | |
| private static final Map | |
| public Tool | |
| public int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public static void | |
| public boolean | |
| private static StackTraceElement | getLastNonErrorManagerCodeLocation(Throwable e)
Return first non ErrorManager code location for generating messages |
| public ST | getLocationFormat()
Return a StringTemplate that refers to the current format used for emitting messages. |
| public ST | |
| public ST | |
| public int | |
| public ST | |
| public void | |
| public void | |
| public static void | |
| public static void | |
| public void | |
| public void | |
| public static void | |
| public static void | |
| pack-priv static void | |
| pack-priv static void | |
| public void | |
| public void | |
| public void | syntaxError(ErrorType etype, String fileName, Token token, RecognitionException antlrException, Object... args)
|
| public void | |
| public void | |
| protected boolean |
| errors | back to summary |
|---|---|
| public int errors | |
| errorTypes | back to summary |
|---|---|
| public Set<ErrorType> errorTypes All errors that have been generated | |
| format | back to summary |
|---|---|
| pack-priv STGroup format The group of templates that represent the current message format. | |
| formatName | back to summary |
|---|---|
| pack-priv String formatName | |
| FORMATS_DIR | back to summary |
|---|---|
| public static final String FORMATS_DIR | |
| initSTListener | back to summary |
|---|---|
| pack-priv ErrorBuffer initSTListener | |
| loadedFormats | back to summary |
|---|---|
| private static final Map<String, STGroupFile> loadedFormats | |
| tool | back to summary |
|---|---|
| public Tool tool | |
| warnings | back to summary |
|---|---|
| public int warnings | |
| ErrorManager | back to summary |
|---|---|
| public ErrorManager(Tool tool) | |
| emit | back to summary |
|---|---|
public void emit(ErrorType etype, ANTLRMessage msg)
| |
| fatalInternalError | back to summary |
|---|---|
| public static void fatalInternalError(String error, Throwable e) | |
| formatWantsSingleLineMessage | back to summary |
|---|---|
| public boolean formatWantsSingleLineMessage() | |
| getLastNonErrorManagerCodeLocation | back to summary |
|---|---|
| private static StackTraceElement getLastNonErrorManagerCodeLocation(Throwable e) Return first non ErrorManager code location for generating messages | |
| getLocationFormat | back to summary |
|---|---|
| public ST getLocationFormat() Return a StringTemplate that refers to the current format used for emitting messages. | |
| getMessageFormat | back to summary |
|---|---|
| public ST getMessageFormat() | |
| getMessageTemplate | back to summary |
|---|---|
| public ST getMessageTemplate(ANTLRMessage msg) | |
| getNumErrors | back to summary |
|---|---|
| public int getNumErrors() | |
| getReportFormat | back to summary |
|---|---|
| public ST getReportFormat(ErrorSeverity severity) | |
| grammarError | back to summary |
|---|---|
| public void grammarError(ErrorType etype, String fileName, Token token, Object... args) | |
| info | back to summary |
|---|---|
| public void info(String msg) | |
| internalError | back to summary |
|---|---|
| public static void internalError(String error, Throwable e) | |
| internalError | back to summary |
|---|---|
| public static void internalError(String error) | |
| leftRecursionCycles | back to summary |
|---|---|
| public void leftRecursionCycles(String fileName, Collection<? extends Collection<Rule>> cycles) | |
| panic | back to summary |
|---|---|
| public void panic(ErrorType errorType, Object... args) | |
| panic | back to summary |
|---|---|
| public static void panic(String msg) | |
| panic | back to summary |
|---|---|
| public static void panic() | |
| rawError | back to summary |
|---|---|
| pack-priv static void rawError(String msg) If there are errors during ErrorManager init, we have no choice but to go to System.err. | |
| rawError | back to summary |
|---|---|
| pack-priv static void rawError(String msg, Throwable e) | |
| resetErrorState | back to summary |
|---|---|
| public void resetErrorState() | |
| setFormat | back to summary |
|---|---|
| public void setFormat(String formatName) The format gets reset either from the Tool if the user supplied a command line option to that effect Otherwise we just use the default "antlr". | |
| syntaxError | back to summary |
|---|---|
| public void syntaxError(ErrorType etype, String fileName, Token token, RecognitionException antlrException, Object... args) | |
| toolError | back to summary |
|---|---|
| public void toolError(ErrorType errorType, Object... args) Raise a predefined message with some number of parameters for the StringTemplate but for which there is no location information possible. | |
| toolError | back to summary |
|---|---|
| public void toolError(ErrorType errorType, Throwable e, Object... args) | |
| verifyFormat | back to summary |
|---|---|
| protected boolean verifyFormat() Verify the message format template group | |