Class ExprParser
java.lang.Object
org.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
org.antlr.v4.runtime.Parser
org.apache.drill.common.expression.parser.ExprParser
public class ExprParser
extends org.antlr.v4.runtime.Parser
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
Nested classes/interfaces inherited from class org.antlr.v4.runtime.Parser
org.antlr.v4.runtime.Parser.TraceListener, org.antlr.v4.runtime.Parser.TrimToSizeListener
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.antlr.v4.runtime.atn.ATN
protected static final org.antlr.v4.runtime.dfa.DFA[]
static final String
protected static final org.antlr.v4.runtime.atn.PredictionContextCache
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final String[]
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final String[]
Deprecated.static final int
static final int
static final int
static final org.antlr.v4.runtime.Vocabulary
static final int
Fields inherited from class org.antlr.v4.runtime.Parser
_buildParseTrees, _ctx, _errHandler, _input, _parseListeners, _precedenceStack, _syntaxErrors, matchedEOF
Fields inherited from class org.antlr.v4.runtime.Recognizer
_interp, EOF
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddExpr()
andExpr()
final ExprParser.AtomContext
atom()
castCall()
charType()
condExpr()
dataType()
dateType()
equExpr()
exprList()
org.antlr.v4.runtime.atn.ATN
getATN()
String[]
String[]
Deprecated.org.antlr.v4.runtime.Vocabulary
final ExprParser.IfStatContext
ifStat()
final ExprParser.LookupContext
lookup()
mulExpr()
numType()
final ExprParser.OrExprContext
orExpr()
static void
final ExprParser.ParseContext
parse()
pos
(org.antlr.v4.runtime.Token token) relExpr()
final ExprParser.RepeatContext
repeat()
final ExprParser.ScaleContext
scale()
typeLen()
xorExpr()
Methods inherited from class org.antlr.v4.runtime.Parser
addContextToParseTree, addParseListener, compileParseTreePattern, compileParseTreePattern, consume, createErrorNode, createTerminalNode, dumpDFA, enterOuterAlt, enterRecursionRule, enterRecursionRule, enterRule, exitRule, getATNWithBypassAlts, getBuildParseTree, getContext, getCurrentToken, getDFAStrings, getErrorHandler, getExpectedTokens, getExpectedTokensWithinCurrentRule, getInputStream, getInvokingContext, getNumberOfSyntaxErrors, getParseInfo, getParseListeners, getPrecedence, getRuleContext, getRuleIndex, getRuleInvocationStack, getRuleInvocationStack, getSourceName, getTokenFactory, getTokenStream, getTrimParseTree, inContext, isExpectedToken, isMatchedEOF, isTrace, match, matchWildcard, notifyErrorListeners, notifyErrorListeners, precpred, pushNewRecursionContext, removeParseListener, removeParseListeners, reset, setBuildParseTree, setContext, setErrorHandler, setInputStream, setProfile, setTokenFactory, setTokenStream, setTrace, setTrimParseTree, triggerEnterRuleEvent, triggerExitRuleEvent, unrollRecursionContexts
Methods inherited from class org.antlr.v4.runtime.Recognizer
action, addErrorListener, getErrorHeader, getErrorListenerDispatch, getErrorListeners, getInterpreter, getRuleIndexMap, getState, getTokenErrorDisplay, getTokenType, getTokenTypeMap, removeErrorListener, removeErrorListeners, sempred, setInterpreter, setState
-
Field Details
-
_decisionToDFA
protected static final org.antlr.v4.runtime.dfa.DFA[] _decisionToDFA -
If
public static final int If- See Also:
-
Else
public static final int Else- See Also:
-
Return
public static final int Return- See Also:
-
Then
public static final int Then- See Also:
-
End
public static final int End- See Also:
-
In
public static final int In- See Also:
-
Case
public static final int Case- See Also:
-
When
public static final int When- See Also:
-
Cast
public static final int Cast- See Also:
-
Convert
public static final int Convert- See Also:
-
AnyValue
public static final int AnyValue- See Also:
-
Nullable
public static final int Nullable- See Also:
-
Repeat
public static final int Repeat- See Also:
-
As
public static final int As- See Also:
-
BIT
public static final int BIT- See Also:
-
INT
public static final int INT- See Also:
-
BIGINT
public static final int BIGINT- See Also:
-
FLOAT4
public static final int FLOAT4- See Also:
-
FLOAT8
public static final int FLOAT8- See Also:
-
VARCHAR
public static final int VARCHAR- See Also:
-
VARBINARY
public static final int VARBINARY- See Also:
-
DATE
public static final int DATE- See Also:
-
TIMESTAMP
public static final int TIMESTAMP- See Also:
-
TIME
public static final int TIME- See Also:
-
TIMESTAMPTZ
public static final int TIMESTAMPTZ- See Also:
-
INTERVAL
public static final int INTERVAL- See Also:
-
INTERVALYEAR
public static final int INTERVALYEAR- See Also:
-
INTERVALDAY
public static final int INTERVALDAY- See Also:
-
Period
public static final int Period- See Also:
-
DECIMAL9
public static final int DECIMAL9- See Also:
-
DECIMAL18
public static final int DECIMAL18- See Also:
-
DECIMAL28DENSE
public static final int DECIMAL28DENSE- See Also:
-
DECIMAL28SPARSE
public static final int DECIMAL28SPARSE- See Also:
-
DECIMAL38DENSE
public static final int DECIMAL38DENSE- See Also:
-
DECIMAL38SPARSE
public static final int DECIMAL38SPARSE- See Also:
-
VARDECIMAL
public static final int VARDECIMAL- See Also:
-
Or
public static final int Or- See Also:
-
And
public static final int And- See Also:
-
Equals
public static final int Equals- See Also:
-
NEquals
public static final int NEquals- See Also:
-
GTEquals
public static final int GTEquals- See Also:
-
LTEquals
public static final int LTEquals- See Also:
-
Caret
public static final int Caret- See Also:
-
Excl
public static final int Excl- See Also:
-
GT
public static final int GT- See Also:
-
LT
public static final int LT- See Also:
-
Plus
public static final int Plus- See Also:
-
Minus
public static final int Minus- See Also:
-
Asterisk
public static final int Asterisk- See Also:
-
ForwardSlash
public static final int ForwardSlash- See Also:
-
Percent
public static final int Percent- See Also:
-
OBrace
public static final int OBrace- See Also:
-
CBrace
public static final int CBrace- See Also:
-
OBracket
public static final int OBracket- See Also:
-
CBracket
public static final int CBracket- See Also:
-
OParen
public static final int OParen- See Also:
-
CParen
public static final int CParen- See Also:
-
SColon
public static final int SColon- See Also:
-
Comma
public static final int Comma- See Also:
-
QMark
public static final int QMark- See Also:
-
Colon
public static final int Colon- See Also:
-
SingleQuote
public static final int SingleQuote- See Also:
-
Bool
public static final int Bool- See Also:
-
Number
public static final int Number- See Also:
-
Identifier
public static final int Identifier- See Also:
-
QuotedIdentifier
public static final int QuotedIdentifier- See Also:
-
String
public static final int String- See Also:
-
LineComment
public static final int LineComment- See Also:
-
BlockComment
public static final int BlockComment- See Also:
-
Space
public static final int Space- See Also:
-
RULE_parse
public static final int RULE_parse- See Also:
-
RULE_functionCall
public static final int RULE_functionCall- See Also:
-
RULE_convertCall
public static final int RULE_convertCall- See Also:
-
RULE_anyValueCall
public static final int RULE_anyValueCall- See Also:
-
RULE_castCall
public static final int RULE_castCall- See Also:
-
RULE_repeat
public static final int RULE_repeat- See Also:
-
RULE_dataType
public static final int RULE_dataType- See Also:
-
RULE_booleanType
public static final int RULE_booleanType- See Also:
-
RULE_numType
public static final int RULE_numType- See Also:
-
RULE_charType
public static final int RULE_charType- See Also:
-
RULE_precision
public static final int RULE_precision- See Also:
-
RULE_scale
public static final int RULE_scale- See Also:
-
RULE_dateType
public static final int RULE_dateType- See Also:
-
RULE_typeLen
public static final int RULE_typeLen- See Also:
-
RULE_ifStatement
public static final int RULE_ifStatement- See Also:
-
RULE_ifStat
public static final int RULE_ifStat- See Also:
-
RULE_elseIfStat
public static final int RULE_elseIfStat- See Also:
-
RULE_caseStatement
public static final int RULE_caseStatement- See Also:
-
RULE_caseWhenStat
public static final int RULE_caseWhenStat- See Also:
-
RULE_caseElseStat
public static final int RULE_caseElseStat- See Also:
-
RULE_exprList
public static final int RULE_exprList- See Also:
-
RULE_expression
public static final int RULE_expression- See Also:
-
RULE_condExpr
public static final int RULE_condExpr- See Also:
-
RULE_orExpr
public static final int RULE_orExpr- See Also:
-
RULE_andExpr
public static final int RULE_andExpr- See Also:
-
RULE_equExpr
public static final int RULE_equExpr- See Also:
-
RULE_relExpr
public static final int RULE_relExpr- See Also:
-
RULE_addExpr
public static final int RULE_addExpr- See Also:
-
RULE_mulExpr
public static final int RULE_mulExpr- See Also:
-
RULE_xorExpr
public static final int RULE_xorExpr- See Also:
-
RULE_unaryExpr
public static final int RULE_unaryExpr- See Also:
-
RULE_atom
public static final int RULE_atom- See Also:
-
RULE_pathSegment
public static final int RULE_pathSegment- See Also:
-
RULE_nameSegment
public static final int RULE_nameSegment- See Also:
-
RULE_arraySegment
public static final int RULE_arraySegment- See Also:
-
RULE_lookup
public static final int RULE_lookup- See Also:
-
ruleNames
-
VOCABULARY
public static final org.antlr.v4.runtime.Vocabulary VOCABULARY -
tokenNames
Deprecated.UseVOCABULARY
instead. -
_serializedATN
- See Also:
-
_ATN
public static final org.antlr.v4.runtime.atn.ATN _ATN
-
-
Constructor Details
-
ExprParser
public ExprParser(org.antlr.v4.runtime.TokenStream input)
-
-
Method Details
-
getTokenNames
Deprecated.- Specified by:
getTokenNames
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,
org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getVocabulary
public org.antlr.v4.runtime.Vocabulary getVocabulary()- Overrides:
getVocabulary
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,
org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getGrammarFileName
- Specified by:
getGrammarFileName
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,
org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getRuleNames
- Specified by:
getRuleNames
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,
org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getSerializedATN
- Overrides:
getSerializedATN
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,
org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getATN
public org.antlr.v4.runtime.atn.ATN getATN()- Specified by:
getATN
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,
org.antlr.v4.runtime.atn.ParserATNSimulator>
-
p
-
pos
-
parse
- Throws:
org.antlr.v4.runtime.RecognitionException
-
functionCall
public final ExprParser.FunctionCallContext functionCall() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
convertCall
public final ExprParser.ConvertCallContext convertCall() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
anyValueCall
public final ExprParser.AnyValueCallContext anyValueCall() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
castCall
- Throws:
org.antlr.v4.runtime.RecognitionException
-
repeat
- Throws:
org.antlr.v4.runtime.RecognitionException
-
dataType
- Throws:
org.antlr.v4.runtime.RecognitionException
-
booleanType
public final ExprParser.BooleanTypeContext booleanType() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
numType
- Throws:
org.antlr.v4.runtime.RecognitionException
-
charType
- Throws:
org.antlr.v4.runtime.RecognitionException
-
precision
public final ExprParser.PrecisionContext precision() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
scale
- Throws:
org.antlr.v4.runtime.RecognitionException
-
dateType
- Throws:
org.antlr.v4.runtime.RecognitionException
-
typeLen
- Throws:
org.antlr.v4.runtime.RecognitionException
-
ifStatement
public final ExprParser.IfStatementContext ifStatement() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
ifStat
- Throws:
org.antlr.v4.runtime.RecognitionException
-
elseIfStat
public final ExprParser.ElseIfStatContext elseIfStat() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
caseStatement
public final ExprParser.CaseStatementContext caseStatement() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
caseWhenStat
public final ExprParser.CaseWhenStatContext caseWhenStat() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
caseElseStat
public final ExprParser.CaseElseStatContext caseElseStat() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
exprList
- Throws:
org.antlr.v4.runtime.RecognitionException
-
expression
public final ExprParser.ExpressionContext expression() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
condExpr
- Throws:
org.antlr.v4.runtime.RecognitionException
-
orExpr
- Throws:
org.antlr.v4.runtime.RecognitionException
-
andExpr
- Throws:
org.antlr.v4.runtime.RecognitionException
-
equExpr
- Throws:
org.antlr.v4.runtime.RecognitionException
-
relExpr
- Throws:
org.antlr.v4.runtime.RecognitionException
-
addExpr
- Throws:
org.antlr.v4.runtime.RecognitionException
-
mulExpr
- Throws:
org.antlr.v4.runtime.RecognitionException
-
xorExpr
- Throws:
org.antlr.v4.runtime.RecognitionException
-
unaryExpr
public final ExprParser.UnaryExprContext unaryExpr() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
atom
- Throws:
org.antlr.v4.runtime.RecognitionException
-
pathSegment
public final ExprParser.PathSegmentContext pathSegment() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
nameSegment
public final ExprParser.NameSegmentContext nameSegment() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
arraySegment
public final ExprParser.ArraySegmentContext arraySegment() throws org.antlr.v4.runtime.RecognitionException- Throws:
org.antlr.v4.runtime.RecognitionException
-
lookup
- Throws:
org.antlr.v4.runtime.RecognitionException
-
VOCABULARY
instead.