Package org.ehrbase.aql.compiler
Class AqlErrorHandler
- java.lang.Object
-
- org.antlr.v4.runtime.BaseErrorListener
-
- org.ehrbase.aql.compiler.AqlErrorHandler
-
- All Implemented Interfaces:
org.antlr.v4.runtime.ANTLRErrorListener
public class AqlErrorHandler extends org.antlr.v4.runtime.BaseErrorListenerUtility class to handle specific errors during parsing
Allows to return more meaningful messages during AQL parsing Created by christian on 4/15/2016.
-
-
Field Summary
Fields Modifier and Type Field Description static AqlErrorHandlerINSTANCEstatic booleanREPORT_SYNTAX_ERRORS
-
Constructor Summary
Constructors Constructor Description AqlErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreportAmbiguity(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)
-
-
-
Field Detail
-
INSTANCE
public static final AqlErrorHandler INSTANCE
-
REPORT_SYNTAX_ERRORS
public static final boolean REPORT_SYNTAX_ERRORS
- See Also:
- Constant Field Values
-
-
Method Detail
-
syntaxError
public void syntaxError(org.antlr.v4.runtime.Recognizer<?,?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, org.antlr.v4.runtime.RecognitionException e)- Specified by:
syntaxErrorin interfaceorg.antlr.v4.runtime.ANTLRErrorListener- Overrides:
syntaxErrorin classorg.antlr.v4.runtime.BaseErrorListener
-
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
-
-