类 JsonPathBaseVisitor<T>
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- org.jsfr.json.compiler.JsonPathBaseVisitor<T>
-
- 类型参数:
T
- The return type of the visit operation. UseVoid
for operations with no return type.
- 所有已实现的接口:
org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
,JsonPathVisitor<T>
- 直接已知子类:
JsonPathCompiler
public class JsonPathBaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements JsonPathVisitor<T>
This class provides an empty implementation ofJsonPathVisitor
, which can be extended to create a visitor which only needs to handle a subset of the available methods.
-
-
构造器概要
构造器 构造器 说明 JsonPathBaseVisitor()
-
方法概要
-
从类继承的方法 org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
方法详细资料
-
visitPath
public T visitPath(JsonPathParser.PathContext ctx)
Visit a parse tree produced byJsonPathParser.path()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- 指定者:
visitPath
在接口中JsonPathVisitor<T>
- 参数:
ctx
- the parse tree- 返回:
- the visitor result
-
visitRelativePath
public T visitRelativePath(JsonPathParser.RelativePathContext ctx)
Visit a parse tree produced byJsonPathParser.relativePath()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- 指定者:
visitRelativePath
在接口中JsonPathVisitor<T>
- 参数:
ctx
- the parse tree- 返回:
- the visitor result
-
visitSearchChild
public T visitSearchChild(JsonPathParser.SearchChildContext ctx)
Visit a parse tree produced byJsonPathParser.searchChild()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- 指定者:
visitSearchChild
在接口中JsonPathVisitor<T>
- 参数:
ctx
- the parse tree- 返回:
- the visitor result
-
visitSearch
public T visitSearch(JsonPathParser.SearchContext ctx)
Visit a parse tree produced byJsonPathParser.search()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- 指定者:
visitSearch
在接口中JsonPathVisitor<T>
- 参数:
ctx
- the parse tree- 返回:
- the visitor result
-
visitAnyChild
public T visitAnyChild(JsonPathParser.AnyChildContext ctx)
Visit a parse tree produced byJsonPathParser.anyChild()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- 指定者:
visitAnyChild
在接口中JsonPathVisitor<T>
- 参数:
ctx
- the parse tree- 返回:
- the visitor result
-
visitAnyIndex
public T visitAnyIndex(JsonPathParser.AnyIndexContext ctx)
Visit a parse tree produced byJsonPathParser.anyIndex()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- 指定者:
visitAnyIndex
在接口中JsonPathVisitor<T>
- 参数:
ctx
- the parse tree- 返回:
- the visitor result
-
visitAny
public T visitAny(JsonPathParser.AnyContext ctx)
Visit a parse tree produced byJsonPathParser.any()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- 指定者:
visitAny
在接口中JsonPathVisitor<T>
- 参数:
ctx
- the parse tree- 返回:
- the visitor result
-
visitIndex
public T visitIndex(JsonPathParser.IndexContext ctx)
Visit a parse tree produced byJsonPathParser.index()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- 指定者:
visitIndex
在接口中JsonPathVisitor<T>
- 参数:
ctx
- the parse tree- 返回:
- the visitor result
-
visitIndexes
public T visitIndexes(JsonPathParser.IndexesContext ctx)
Visit a parse tree produced byJsonPathParser.indexes()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- 指定者:
visitIndexes
在接口中JsonPathVisitor<T>
- 参数:
ctx
- the parse tree- 返回:
- the visitor result
-
visitSlicing
public T visitSlicing(JsonPathParser.SlicingContext ctx)
Visit a parse tree produced byJsonPathParser.slicing()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- 指定者:
visitSlicing
在接口中JsonPathVisitor<T>
- 参数:
ctx
- the parse tree- 返回:
- the visitor result
-
visitChildNode
public T visitChildNode(JsonPathParser.ChildNodeContext ctx)
Visit a parse tree produced byJsonPathParser.childNode()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- 指定者:
visitChildNode
在接口中JsonPathVisitor<T>
- 参数:
ctx
- the parse tree- 返回:
- the visitor result
-
visitChildrenNode
public T visitChildrenNode(JsonPathParser.ChildrenNodeContext ctx)
Visit a parse tree produced byJsonPathParser.childrenNode()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- 指定者:
visitChildrenNode
在接口中JsonPathVisitor<T>
- 参数:
ctx
- the parse tree- 返回:
- the visitor result
-
visitFilter
public T visitFilter(JsonPathParser.FilterContext ctx)
Visit a parse tree produced byJsonPathParser.filter()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- 指定者:
visitFilter
在接口中JsonPathVisitor<T>
- 参数:
ctx
- the parse tree- 返回:
- the visitor result
-
visitFilterExpr
public T visitFilterExpr(JsonPathParser.FilterExprContext ctx)
Visit a parse tree produced byJsonPathParser.filterExpr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- 指定者:
visitFilterExpr
在接口中JsonPathVisitor<T>
- 参数:
ctx
- the parse tree- 返回:
- the visitor result
-
visitFilterExist
public T visitFilterExist(JsonPathParser.FilterExistContext ctx)
Visit a parse tree produced byJsonPathParser.filterExist()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- 指定者:
visitFilterExist
在接口中JsonPathVisitor<T>
- 参数:
ctx
- the parse tree- 返回:
- the visitor result
-
visitFilterGtNum
public T visitFilterGtNum(JsonPathParser.FilterGtNumContext ctx)
Visit a parse tree produced byJsonPathParser.filterGtNum()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- 指定者:
visitFilterGtNum
在接口中JsonPathVisitor<T>
- 参数:
ctx
- the parse tree- 返回:
- the visitor result
-
visitFilterLtNum
public T visitFilterLtNum(JsonPathParser.FilterLtNumContext ctx)
Visit a parse tree produced byJsonPathParser.filterLtNum()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- 指定者:
visitFilterLtNum
在接口中JsonPathVisitor<T>
- 参数:
ctx
- the parse tree- 返回:
- the visitor result
-
visitFilterEqualNum
public T visitFilterEqualNum(JsonPathParser.FilterEqualNumContext ctx)
Visit a parse tree produced byJsonPathParser.filterEqualNum()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- 指定者:
visitFilterEqualNum
在接口中JsonPathVisitor<T>
- 参数:
ctx
- the parse tree- 返回:
- the visitor result
-
visitFilterEqualBool
public T visitFilterEqualBool(JsonPathParser.FilterEqualBoolContext ctx)
Visit a parse tree produced byJsonPathParser.filterEqualBool()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- 指定者:
visitFilterEqualBool
在接口中JsonPathVisitor<T>
- 参数:
ctx
- the parse tree- 返回:
- the visitor result
-
visitFilterEqualStr
public T visitFilterEqualStr(JsonPathParser.FilterEqualStrContext ctx)
Visit a parse tree produced byJsonPathParser.filterEqualStr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- 指定者:
visitFilterEqualStr
在接口中JsonPathVisitor<T>
- 参数:
ctx
- the parse tree- 返回:
- the visitor result
-
visitFilterMatchRegex
public T visitFilterMatchRegex(JsonPathParser.FilterMatchRegexContext ctx)
Visit a parse tree produced byJsonPathParser.filterMatchRegex()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- 指定者:
visitFilterMatchRegex
在接口中JsonPathVisitor<T>
- 参数:
ctx
- the parse tree- 返回:
- the visitor result
-
-