Class SearchBaseVisitor<T>
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- app.commerceio.spring.data.search.SearchBaseVisitor<T>
-
- Type Parameters:
T- The return type of the visit operation. UseVoidfor 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>
This class provides an empty implementation ofSearchVisitor, 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
-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Method Detail
-
visitInput
public T visitInput(SearchParser.InputContext ctx)
Visit a parse tree produced bySearchParser.input().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInputin interfaceSearchVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOpSearch
public T visitOpSearch(SearchParser.OpSearchContext ctx)
Visit a parse tree produced by theopSearchlabeled alternative inSearchParser.search().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOpSearchin interfaceSearchVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAtomSearch
public T visitAtomSearch(SearchParser.AtomSearchContext ctx)
Visit a parse tree produced by theatomSearchlabeled alternative inSearchParser.search().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAtomSearchin interfaceSearchVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrioritySearch
public T visitPrioritySearch(SearchParser.PrioritySearchContext ctx)
Visit a parse tree produced by theprioritySearchlabeled alternative inSearchParser.search().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrioritySearchin interfaceSearchVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCriteria
public T visitCriteria(SearchParser.CriteriaContext ctx)
Visit a parse tree produced bySearchParser.criteria().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCriteriain interfaceSearchVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitKey
public T visitKey(SearchParser.KeyContext ctx)
Visit a parse tree produced bySearchParser.key().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitKeyin interfaceSearchVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitValue
public T visitValue(SearchParser.ValueContext ctx)
Visit a parse tree produced bySearchParser.value().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitValuein interfaceSearchVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOp
public T visitOp(SearchParser.OpContext ctx)
Visit a parse tree produced bySearchParser.op().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOpin interfaceSearchVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
-