Package org.ehrbase.aql.compiler
Class AqlErrorHandlerNoRecovery
java.lang.Object
org.antlr.v4.runtime.BaseErrorListener
org.ehrbase.aql.compiler.AqlErrorHandlerNoRecovery
- All Implemented Interfaces:
org.antlr.v4.runtime.ANTLRErrorListener
public class AqlErrorHandlerNoRecovery
extends org.antlr.v4.runtime.BaseErrorListener
Utility class to handle specific errors during parsing
Allows to return more meaningful messages during AQL parsing Created by christian on 4/15/2016.
Allows to return more meaningful messages during AQL parsing Created by christian on 4/15/2016.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidreportAmbiguity(org.antlr.v4.runtime.Parser recognizer, org.antlr.v4.runtime.dfa.DFA dfa, int startIndex, int stopIndex, boolean exact, BitSet ambigAlts, org.antlr.v4.runtime.atn.ATNConfigSet configs) voidsyntaxError(org.antlr.v4.runtime.Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, org.antlr.v4.runtime.RecognitionException e) Methods inherited from class org.antlr.v4.runtime.BaseErrorListener
reportAttemptingFullContext, reportContextSensitivity
-
Field Details
-
INSTANCE
-
REPORT_SYNTAX_ERRORS
public static final boolean REPORT_SYNTAX_ERRORS- See Also:
-
-
Constructor Details
-
AqlErrorHandlerNoRecovery
public AqlErrorHandlerNoRecovery()
-
-
Method Details
-
syntaxError
public void syntaxError(org.antlr.v4.runtime.Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, org.antlr.v4.runtime.RecognitionException e) throws org.antlr.v4.runtime.misc.ParseCancellationException- Specified by:
syntaxErrorin interfaceorg.antlr.v4.runtime.ANTLRErrorListener- Overrides:
syntaxErrorin classorg.antlr.v4.runtime.BaseErrorListener- Throws:
org.antlr.v4.runtime.misc.ParseCancellationException
-
reportAmbiguity
public void reportAmbiguity(org.antlr.v4.runtime.Parser recognizer, org.antlr.v4.runtime.dfa.DFA dfa, int startIndex, int stopIndex, boolean exact, BitSet ambigAlts, org.antlr.v4.runtime.atn.ATNConfigSet configs) - Specified by:
reportAmbiguityin interfaceorg.antlr.v4.runtime.ANTLRErrorListener- Overrides:
reportAmbiguityin classorg.antlr.v4.runtime.BaseErrorListener
-