org.antlr.intellij.adaptor.parser.SyntaxError Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ide-plugin Show documentation
Show all versions of ide-plugin Show documentation
IDE plugin for generating java interfaces for sqlite files
package org.antlr.intellij.adaptor.parser;
import org.antlr.v4.runtime.RecognitionException;
import org.antlr.v4.runtime.Recognizer;
/** A syntax error from parsing language of plugin. These are
* created by SyntaxErrorListener.
*/
public class SyntaxError {
private final Recognizer, ?> recognizer;
private final Object offendingSymbol;
private final int line;
private final int charPositionInLine;
private final String message;
private final RecognitionException e;
public SyntaxError(Recognizer, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, RecognitionException e) {
this.recognizer = recognizer;
this.offendingSymbol = offendingSymbol;
this.line = line;
this.charPositionInLine = charPositionInLine;
this.message = msg;
this.e = e;
}
public Recognizer, ?> getRecognizer() {
return recognizer;
}
public Object getOffendingSymbol() {
return offendingSymbol;
}
public int getLine() {
return line;
}
public int getCharPositionInLine() {
return charPositionInLine;
}
public String getMessage() {
return message;
}
public RecognitionException getException() {
return e;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy