Package org.apache.lucene.expressions.js
Class JavascriptParser
- 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.lucene.expressions.js.JavascriptParser
-
class JavascriptParser extends org.antlr.v4.runtime.Parser
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JavascriptParser.AddsubContext
static class
JavascriptParser.BoolandContext
static class
JavascriptParser.BoolcompContext
static class
JavascriptParser.BooleqneContext
static class
JavascriptParser.BoolorContext
static class
JavascriptParser.BwandContext
static class
JavascriptParser.BworContext
static class
JavascriptParser.BwshiftContext
static class
JavascriptParser.BwxorContext
static class
JavascriptParser.CompileContext
static class
JavascriptParser.ConditionalContext
static class
JavascriptParser.ExpressionContext
static class
JavascriptParser.ExternalContext
static class
JavascriptParser.MuldivContext
static class
JavascriptParser.NumericContext
static class
JavascriptParser.PrecedenceContext
static class
JavascriptParser.UnaryContext
-
Field Summary
Fields Modifier and Type Field Description static org.antlr.v4.runtime.atn.ATN
_ATN
protected static org.antlr.v4.runtime.dfa.DFA[]
_decisionToDFA
private static java.lang.String[]
_LITERAL_NAMES
static java.lang.String
_serializedATN
protected static org.antlr.v4.runtime.atn.PredictionContextCache
_sharedContextCache
private static java.lang.String[]
_SYMBOLIC_NAMES
static int
ADD
static int
BOOLAND
static int
BOOLNOT
static int
BOOLOR
static int
BWAND
static int
BWNOT
static int
BWOR
static int
BWXOR
static int
COLON
static int
COMMA
static int
COND
static int
DECIMAL
static int
DIV
static int
EQ
static int
GT
static int
GTE
static int
HEX
static int
LP
static int
LSH
static int
LT
static int
LTE
static int
MUL
static int
NE
static int
OCTAL
static int
REM
static int
RP
static int
RSH
static int
RULE_compile
static int
RULE_expression
static java.lang.String[]
ruleNames
static int
SUB
static java.lang.String[]
tokenNames
Deprecated.UseVOCABULARY
instead.static int
USH
static int
VARIABLE
static org.antlr.v4.runtime.Vocabulary
VOCABULARY
static int
WS
-
Constructor Summary
Constructors Constructor Description JavascriptParser(org.antlr.v4.runtime.TokenStream input)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description JavascriptParser.CompileContext
compile()
JavascriptParser.ExpressionContext
expression()
private JavascriptParser.ExpressionContext
expression(int _p)
private boolean
expression_sempred(JavascriptParser.ExpressionContext _localctx, int predIndex)
org.antlr.v4.runtime.atn.ATN
getATN()
java.lang.String
getGrammarFileName()
java.lang.String[]
getRuleNames()
java.lang.String
getSerializedATN()
java.lang.String[]
getTokenNames()
Deprecated.org.antlr.v4.runtime.Vocabulary
getVocabulary()
private static java.lang.String[]
makeLiteralNames()
private static java.lang.String[]
makeRuleNames()
private static java.lang.String[]
makeSymbolicNames()
boolean
sempred(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int predIndex)
-
Methods inherited from class org.antlr.v4.runtime.Parser
addContextToParseTree, addParseListener, compileParseTreePattern, compileParseTreePattern, consume, createErrorNode, createTerminalNode, dumpDFA, 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, setInterpreter, setState
-
-
-
-
Field Detail
-
_decisionToDFA
protected static final org.antlr.v4.runtime.dfa.DFA[] _decisionToDFA
-
_sharedContextCache
protected static final org.antlr.v4.runtime.atn.PredictionContextCache _sharedContextCache
-
LP
public static final int LP
- See Also:
- Constant Field Values
-
RP
public static final int RP
- See Also:
- Constant Field Values
-
COMMA
public static final int COMMA
- See Also:
- Constant Field Values
-
BOOLNOT
public static final int BOOLNOT
- See Also:
- Constant Field Values
-
BWNOT
public static final int BWNOT
- See Also:
- Constant Field Values
-
MUL
public static final int MUL
- See Also:
- Constant Field Values
-
DIV
public static final int DIV
- See Also:
- Constant Field Values
-
REM
public static final int REM
- See Also:
- Constant Field Values
-
ADD
public static final int ADD
- See Also:
- Constant Field Values
-
SUB
public static final int SUB
- See Also:
- Constant Field Values
-
LSH
public static final int LSH
- See Also:
- Constant Field Values
-
RSH
public static final int RSH
- See Also:
- Constant Field Values
-
USH
public static final int USH
- See Also:
- Constant Field Values
-
LT
public static final int LT
- See Also:
- Constant Field Values
-
LTE
public static final int LTE
- See Also:
- Constant Field Values
-
GT
public static final int GT
- See Also:
- Constant Field Values
-
GTE
public static final int GTE
- See Also:
- Constant Field Values
-
EQ
public static final int EQ
- See Also:
- Constant Field Values
-
NE
public static final int NE
- See Also:
- Constant Field Values
-
BWAND
public static final int BWAND
- See Also:
- Constant Field Values
-
BWXOR
public static final int BWXOR
- See Also:
- Constant Field Values
-
BWOR
public static final int BWOR
- See Also:
- Constant Field Values
-
BOOLAND
public static final int BOOLAND
- See Also:
- Constant Field Values
-
BOOLOR
public static final int BOOLOR
- See Also:
- Constant Field Values
-
COND
public static final int COND
- See Also:
- Constant Field Values
-
COLON
public static final int COLON
- See Also:
- Constant Field Values
-
WS
public static final int WS
- See Also:
- Constant Field Values
-
VARIABLE
public static final int VARIABLE
- See Also:
- Constant Field Values
-
OCTAL
public static final int OCTAL
- See Also:
- Constant Field Values
-
HEX
public static final int HEX
- See Also:
- Constant Field Values
-
DECIMAL
public static final int DECIMAL
- See Also:
- Constant Field Values
-
RULE_compile
public static final int RULE_compile
- See Also:
- Constant Field Values
-
RULE_expression
public static final int RULE_expression
- See Also:
- Constant Field Values
-
ruleNames
public static final java.lang.String[] ruleNames
-
_LITERAL_NAMES
private static final java.lang.String[] _LITERAL_NAMES
-
_SYMBOLIC_NAMES
private static final java.lang.String[] _SYMBOLIC_NAMES
-
VOCABULARY
public static final org.antlr.v4.runtime.Vocabulary VOCABULARY
-
tokenNames
@Deprecated public static final java.lang.String[] tokenNames
Deprecated.UseVOCABULARY
instead.
-
_serializedATN
public static final java.lang.String _serializedATN
- See Also:
- Constant Field Values
-
_ATN
public static final org.antlr.v4.runtime.atn.ATN _ATN
-
-
Method Detail
-
makeRuleNames
private static java.lang.String[] makeRuleNames()
-
makeLiteralNames
private static java.lang.String[] makeLiteralNames()
-
makeSymbolicNames
private static java.lang.String[] makeSymbolicNames()
-
getTokenNames
@Deprecated public java.lang.String[] 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
public java.lang.String getGrammarFileName()
- Specified by:
getGrammarFileName
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getRuleNames
public java.lang.String[] getRuleNames()
- Specified by:
getRuleNames
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getSerializedATN
public java.lang.String 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>
-
compile
public final JavascriptParser.CompileContext compile() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
expression
public final JavascriptParser.ExpressionContext expression() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
expression
private JavascriptParser.ExpressionContext expression(int _p) throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
sempred
public boolean sempred(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int predIndex)
- Overrides:
sempred
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
expression_sempred
private boolean expression_sempred(JavascriptParser.ExpressionContext _localctx, int predIndex)
-
-