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. UseVoidfor 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 TvisitAddsub(JavascriptParser.AddsubContext ctx)Visit a parse tree produced by theaddsublabeled alternative inJavascriptParser.expression().TvisitBooland(JavascriptParser.BoolandContext ctx)Visit a parse tree produced by theboolandlabeled alternative inJavascriptParser.expression().TvisitBoolcomp(JavascriptParser.BoolcompContext ctx)Visit a parse tree produced by theboolcomplabeled alternative inJavascriptParser.expression().TvisitBooleqne(JavascriptParser.BooleqneContext ctx)Visit a parse tree produced by thebooleqnelabeled alternative inJavascriptParser.expression().TvisitBoolor(JavascriptParser.BoolorContext ctx)Visit a parse tree produced by theboolorlabeled alternative inJavascriptParser.expression().TvisitBwand(JavascriptParser.BwandContext ctx)Visit a parse tree produced by thebwandlabeled alternative inJavascriptParser.expression().TvisitBwor(JavascriptParser.BworContext ctx)Visit a parse tree produced by thebworlabeled alternative inJavascriptParser.expression().TvisitBwshift(JavascriptParser.BwshiftContext ctx)Visit a parse tree produced by thebwshiftlabeled alternative inJavascriptParser.expression().TvisitBwxor(JavascriptParser.BwxorContext ctx)Visit a parse tree produced by thebwxorlabeled alternative inJavascriptParser.expression().TvisitCompile(JavascriptParser.CompileContext ctx)Visit a parse tree produced byJavascriptParser.compile().TvisitConditional(JavascriptParser.ConditionalContext ctx)Visit a parse tree produced by theconditionallabeled alternative inJavascriptParser.expression().TvisitExternal(JavascriptParser.ExternalContext ctx)Visit a parse tree produced by theexternallabeled alternative inJavascriptParser.expression().TvisitMuldiv(JavascriptParser.MuldivContext ctx)Visit a parse tree produced by themuldivlabeled alternative inJavascriptParser.expression().TvisitNumeric(JavascriptParser.NumericContext ctx)Visit a parse tree produced by thenumericlabeled alternative inJavascriptParser.expression().TvisitPrecedence(JavascriptParser.PrecedenceContext ctx)Visit a parse tree produced by theprecedencelabeled alternative inJavascriptParser.expression().TvisitUnary(JavascriptParser.UnaryContext ctx)Visit a parse tree produced by theunarylabeled 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:
visitCompilein interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConditional
public T visitConditional(JavascriptParser.ConditionalContext ctx)
Visit a parse tree produced by theconditionallabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConditionalin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBoolor
public T visitBoolor(JavascriptParser.BoolorContext ctx)
Visit a parse tree produced by theboolorlabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBoolorin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBoolcomp
public T visitBoolcomp(JavascriptParser.BoolcompContext ctx)
Visit a parse tree produced by theboolcomplabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBoolcompin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNumeric
public T visitNumeric(JavascriptParser.NumericContext ctx)
Visit a parse tree produced by thenumericlabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNumericin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAddsub
public T visitAddsub(JavascriptParser.AddsubContext ctx)
Visit a parse tree produced by theaddsublabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAddsubin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnary
public T visitUnary(JavascriptParser.UnaryContext ctx)
Visit a parse tree produced by theunarylabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitUnaryin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrecedence
public T visitPrecedence(JavascriptParser.PrecedenceContext ctx)
Visit a parse tree produced by theprecedencelabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrecedencein interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMuldiv
public T visitMuldiv(JavascriptParser.MuldivContext ctx)
Visit a parse tree produced by themuldivlabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMuldivin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExternal
public T visitExternal(JavascriptParser.ExternalContext ctx)
Visit a parse tree produced by theexternallabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExternalin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBwshift
public T visitBwshift(JavascriptParser.BwshiftContext ctx)
Visit a parse tree produced by thebwshiftlabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBwshiftin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBwor
public T visitBwor(JavascriptParser.BworContext ctx)
Visit a parse tree produced by thebworlabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBworin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBooland
public T visitBooland(JavascriptParser.BoolandContext ctx)
Visit a parse tree produced by theboolandlabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBoolandin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBwxor
public T visitBwxor(JavascriptParser.BwxorContext ctx)
Visit a parse tree produced by thebwxorlabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBwxorin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBwand
public T visitBwand(JavascriptParser.BwandContext ctx)
Visit a parse tree produced by thebwandlabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBwandin interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBooleqne
public T visitBooleqne(JavascriptParser.BooleqneContext ctx)
Visit a parse tree produced by thebooleqnelabeled alternative inJavascriptParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBooleqnein interfaceJavascriptVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
-