public class SyntaxError extends Object
| Constructor and Description |
|---|
SyntaxError(org.antlr.v4.runtime.Recognizer<?,?> recognizer,
Object offendingSymbol,
int line,
int charPositionInLine,
String msg,
org.antlr.v4.runtime.RecognitionException e)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCharPositionInLine()
Returns the position of the offending character in the error line.
|
org.antlr.v4.runtime.RecognitionException |
getE()
returns the error associated exception.
|
int |
getLine()
Returns the line of the error in the source file.
|
String |
getMsg()
returns the message of the syntax error.
|
Object |
getOffendingSymbol()
Returns the unexpected symbol that caused that error.
|
org.antlr.v4.runtime.Recognizer<?,?> |
getRecognizer()
Returns the ANTLR4 object that recognizes the input and handles the errors.
|
String |
toString()
Returns a human understandable representation of the current instance.
|
public SyntaxError(org.antlr.v4.runtime.Recognizer<?,?> recognizer,
Object offendingSymbol,
int line,
int charPositionInLine,
String msg,
org.antlr.v4.runtime.RecognitionException e)
recognizer - the ANTLR4 object that recognizes the input and handles the errors.offendingSymbol - the unexpected symbol that caused the syntax error.line - the line of the syntax error in the source file.charPositionInLine - the position of the offending symbol in the error line.msg - the error message.e - the error RecognitionException.public int getCharPositionInLine()
public org.antlr.v4.runtime.RecognitionException getE()
public int getLine()
public String getMsg()
public Object getOffendingSymbol()
public org.antlr.v4.runtime.Recognizer<?,?> getRecognizer()
Copyright © 2020. All rights reserved.