public class ErrorListener extends Object implements org.antlr.tool.ANTLRErrorListener
| Modifier and Type | Field and Description |
|---|---|
List<org.antlr.tool.Message> |
errors |
ErrorListener |
forwardListener |
List<String> |
infos |
boolean |
printToConsole |
List<org.antlr.tool.Message> |
warnings |
| Constructor and Description |
|---|
ErrorListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
error(org.antlr.tool.Message msg) |
void |
error(org.antlr.tool.ToolMessage msg) |
String |
getFirstErrorMessage() |
static ErrorListener |
getThreadInstance() |
boolean |
hasErrors() |
boolean |
hasWarnings() |
void |
info(String msg) |
void |
print(String msg,
int level) |
void |
setForwardListener(ErrorListener listener) |
void |
setPrintToConsole(boolean flag) |
void |
warning(org.antlr.tool.Message msg) |
public List<org.antlr.tool.Message> errors
public List<org.antlr.tool.Message> warnings
public boolean printToConsole
public ErrorListener forwardListener
public static ErrorListener getThreadInstance()
public void setPrintToConsole(boolean flag)
public void setForwardListener(ErrorListener listener)
public void clear()
public boolean hasErrors()
public boolean hasWarnings()
public String getFirstErrorMessage()
public void info(String msg)
info in interface org.antlr.tool.ANTLRErrorListenerpublic void error(org.antlr.tool.Message msg)
error in interface org.antlr.tool.ANTLRErrorListenerpublic void warning(org.antlr.tool.Message msg)
warning in interface org.antlr.tool.ANTLRErrorListenerpublic void error(org.antlr.tool.ToolMessage msg)
error in interface org.antlr.tool.ANTLRErrorListenerpublic void print(String msg, int level)
Copyright © 2013. All rights reserved.