Class SearchBaseVisitor<T>
- Type Parameters:
T
- The return type of the visit operation. UseVoid
for operations with no return type.
- All Implemented Interfaces:
SearchVisitor<T>
,org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
public class SearchBaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements SearchVisitor<T>
SearchVisitor
,
which can be extended to create a visitor which only needs to handle a subset
of the available methods.-
Constructor Summary
Constructors Constructor Description SearchBaseVisitor()
-
Method Summary
Modifier and Type Method Description T
visitField(SearchParser.FieldContext ctx)
Visit a parse tree produced bySearchParser.field()
.T
visitGroup(SearchParser.GroupContext ctx)
Visit a parse tree produced bySearchParser.group()
.T
visitNamed(SearchParser.NamedContext ctx)
Visit a parse tree produced bySearchParser.named()
.T
visitNot(SearchParser.NotContext ctx)
Visit a parse tree produced bySearchParser.not()
.T
visitOr(SearchParser.OrContext ctx)
Visit a parse tree produced bySearchParser.or()
.T
visitStart(SearchParser.StartContext ctx)
Visit a parse tree produced bySearchParser.start()
.T
visitTag(SearchParser.TagContext ctx)
Visit a parse tree produced bySearchParser.tag()
.T
visitTerm(SearchParser.TermContext ctx)
Visit a parse tree produced bySearchParser.term()
.T
visitWord(SearchParser.WordContext ctx)
Visit a parse tree produced bySearchParser.word()
.T
visitWords(SearchParser.WordsContext ctx)
Visit a parse tree produced bySearchParser.words()
.Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Constructor Details
-
SearchBaseVisitor
public SearchBaseVisitor()
-
-
Method Details
-
visitStart
Visit a parse tree produced bySearchParser.start()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitStart
in interfaceSearchVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTerm
Visit a parse tree produced bySearchParser.term()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTerm
in interfaceSearchVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitGroup
Visit a parse tree produced bySearchParser.group()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitGroup
in interfaceSearchVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitOr
Visit a parse tree produced bySearchParser.or()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitOr
in interfaceSearchVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNot
Visit a parse tree produced bySearchParser.not()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNot
in interfaceSearchVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTag
Visit a parse tree produced bySearchParser.tag()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTag
in interfaceSearchVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNamed
Visit a parse tree produced bySearchParser.named()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNamed
in interfaceSearchVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitField
Visit a parse tree produced bySearchParser.field()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitField
in interfaceSearchVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitWord
Visit a parse tree produced bySearchParser.word()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitWord
in interfaceSearchVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitWords
Visit a parse tree produced bySearchParser.words()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitWords
in interfaceSearchVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-