Class JavascriptBaseVisitor<T>
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- org.apache.lucene.expressions.js.JavascriptBaseVisitor<T>
-
- Type Parameters:
T
- The return type of the visit operation. UseVoid
for operations with no return type.
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
,JavascriptVisitor<T>
class JavascriptBaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements JavascriptVisitor<T>
This class provides an empty implementation ofJavascriptVisitor
, which can be extended to create a visitor which only needs to handle a subset of the available methods.
-
-
Constructor Summary
Constructors Constructor Description JavascriptBaseVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
visitAddsub(JavascriptParser.AddsubContext ctx)
Visit a parse tree produced by theaddsub
labeled alternative inJavascriptParser.expression()
.T
visitBooland(JavascriptParser.BoolandContext ctx)
Visit a parse tree produced by thebooland
labeled alternative inJavascriptParser.expression()
.T
visitBoolcomp(JavascriptParser.BoolcompContext ctx)
Visit a parse tree produced by theboolcomp
labeled alternative inJavascriptParser.expression()
.T
visitBooleqne(JavascriptParser.BooleqneContext ctx)
Visit a parse tree produced by thebooleqne
labeled alternative inJavascriptParser.expression()
.T
visitBoolor(JavascriptParser.BoolorContext ctx)
Visit a parse tree produced by theboolor
labeled alternative inJavascriptParser.expression()
.T
visitBwand(JavascriptParser.BwandContext ctx)
Visit a parse tree produced by thebwand
labeled alternative inJavascriptParser.expression()
.T
visitBwor(JavascriptParser.BworContext ctx)
Visit a parse tree produced by thebwor
labeled alternative inJavascriptParser.expression()
.T
visitBwshift(JavascriptParser.BwshiftContext ctx)
Visit a parse tree produced by thebwshift
labeled alternative inJavascriptParser.expression()
.T
visitBwxor(JavascriptParser.BwxorContext ctx)
Visit a parse tree produced by thebwxor
labeled alternative inJavascriptParser.expression()
.T
visitCompile(JavascriptParser.CompileContext ctx)
Visit a parse tree produced byJavascriptParser.compile()
.T
visitConditional(JavascriptParser.ConditionalContext ctx)
Visit a parse tree produced by theconditional
labeled alternative inJavascriptParser.expression()
.T
visitExternal(JavascriptParser.ExternalContext ctx)
Visit a parse tree produced by theexternal
labeled alternative inJavascriptParser.expression()
.T
visitMuldiv(JavascriptParser.MuldivContext ctx)
Visit a parse tree produced by themuldiv
labeled alternative inJavascriptParser.expression()
.T
visitNumeric(JavascriptParser.NumericContext ctx)
Visit a parse tree produced by thenumeric
labeled alternative inJavascriptParser.expression()
.T
visitPrecedence(JavascriptParser.PrecedenceContext ctx)
Visit a parse tree produced by theprecedence
labeled alternative inJavascriptParser.expression()
.T
visitUnary(JavascriptParser.UnaryContext ctx)
Visit a parse tree produced by theunary
labeled alternative inJavascriptParser.expression()
.-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Method Detail
-
visitCompile
public T visitCompile(JavascriptParser.CompileContext ctx)
Visit a parse tree produced byJavascriptParser.compile()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCompile
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitConditional
public T visitConditional(JavascriptParser.ConditionalContext ctx)
Visit a parse tree produced by theconditional
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitConditional
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBoolor
public T visitBoolor(JavascriptParser.BoolorContext ctx)
Visit a parse tree produced by theboolor
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBoolor
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBoolcomp
public T visitBoolcomp(JavascriptParser.BoolcompContext ctx)
Visit a parse tree produced by theboolcomp
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBoolcomp
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNumeric
public T visitNumeric(JavascriptParser.NumericContext ctx)
Visit a parse tree produced by thenumeric
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNumeric
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAddsub
public T visitAddsub(JavascriptParser.AddsubContext ctx)
Visit a parse tree produced by theaddsub
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAddsub
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitUnary
public T visitUnary(JavascriptParser.UnaryContext ctx)
Visit a parse tree produced by theunary
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitUnary
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPrecedence
public T visitPrecedence(JavascriptParser.PrecedenceContext ctx)
Visit a parse tree produced by theprecedence
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPrecedence
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMuldiv
public T visitMuldiv(JavascriptParser.MuldivContext ctx)
Visit a parse tree produced by themuldiv
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMuldiv
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExternal
public T visitExternal(JavascriptParser.ExternalContext ctx)
Visit a parse tree produced by theexternal
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitExternal
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBwshift
public T visitBwshift(JavascriptParser.BwshiftContext ctx)
Visit a parse tree produced by thebwshift
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBwshift
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBwor
public T visitBwor(JavascriptParser.BworContext ctx)
Visit a parse tree produced by thebwor
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBwor
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBooland
public T visitBooland(JavascriptParser.BoolandContext ctx)
Visit a parse tree produced by thebooland
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBooland
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBwxor
public T visitBwxor(JavascriptParser.BwxorContext ctx)
Visit a parse tree produced by thebwxor
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBwxor
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBwand
public T visitBwand(JavascriptParser.BwandContext ctx)
Visit a parse tree produced by thebwand
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBwand
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBooleqne
public T visitBooleqne(JavascriptParser.BooleqneContext ctx)
Visit a parse tree produced by thebooleqne
labeled alternative inJavascriptParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBooleqne
in interfaceJavascriptVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
-