Class XPathParserBaseVisitor<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>,XPathParserVisitor<T>
XPathParserVisitor,
which can be extended to create a visitor which only needs to handle a subset
of the available methods.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionVisit a parse tree produced byXPathParser.abbreviatedStep().Visit a parse tree produced byXPathParser.absoluteLocationPath().Visit a parse tree produced byXPathParser.andExpr().Visit a parse tree produced byXPathParser.argument().Visit a parse tree produced byXPathParser.attributeStep().Visit a parse tree produced byXPathParser.axisName().Visit a parse tree produced byXPathParser.axisSpecifier().Visit a parse tree produced byXPathParser.bracketedExpr().Visit a parse tree produced byXPathParser.equalityExpr().Visit a parse tree produced byXPathParser.expr().Visit a parse tree produced byXPathParser.filterExpr().Visit a parse tree produced byXPathParser.functionCall().Visit a parse tree produced byXPathParser.functionCallExpr().Visit a parse tree produced byXPathParser.functionName().Visit a parse tree produced byXPathParser.literal().Visit a parse tree produced byXPathParser.literalOrNumber().Visit a parse tree produced byXPathParser.locationPath().Visit a parse tree produced byXPathParser.nameTest().Visit a parse tree produced byXPathParser.nodeTest().Visit a parse tree produced byXPathParser.nodeType().Visit a parse tree produced byXPathParser.orExpr().Visit a parse tree produced byXPathParser.pathExpr().Visit a parse tree produced byXPathParser.pathSeparator().Visit a parse tree produced byXPathParser.predicate().Visit a parse tree produced byXPathParser.predicateExpr().Visit a parse tree produced byXPathParser.primaryExpr().Visit a parse tree produced byXPathParser.relationalExpr().Visit a parse tree produced byXPathParser.relativeLocationPath().Visit a parse tree produced byXPathParser.step().Visit a parse tree produced byXPathParser.unaryExpr().Visit a parse tree produced byXPathParser.unionExpr().Visit a parse tree produced byXPathParser.xpathExpression().Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Constructor Details
-
XPathParserBaseVisitor
public XPathParserBaseVisitor()
-
-
Method Details
-
visitXpathExpression
Visit a parse tree produced byXPathParser.xpathExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitXpathExpressionin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpr
Visit a parse tree produced byXPathParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExprin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOrExpr
Visit a parse tree produced byXPathParser.orExpr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOrExprin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAndExpr
Visit a parse tree produced byXPathParser.andExpr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAndExprin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEqualityExpr
Visit a parse tree produced byXPathParser.equalityExpr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEqualityExprin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRelationalExpr
Visit a parse tree produced byXPathParser.relationalExpr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRelationalExprin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnaryExpr
Visit a parse tree produced byXPathParser.unaryExpr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitUnaryExprin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnionExpr
Visit a parse tree produced byXPathParser.unionExpr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitUnionExprin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPathExpr
Visit a parse tree produced byXPathParser.pathExpr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPathExprin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunctionCallExpr
Visit a parse tree produced byXPathParser.functionCallExpr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFunctionCallExprin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBracketedExpr
Visit a parse tree produced byXPathParser.bracketedExpr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBracketedExprin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLiteralOrNumber
Visit a parse tree produced byXPathParser.literalOrNumber().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLiteralOrNumberin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFilterExpr
Visit a parse tree produced byXPathParser.filterExpr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFilterExprin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrimaryExpr
Visit a parse tree produced byXPathParser.primaryExpr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrimaryExprin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLocationPath
Visit a parse tree produced byXPathParser.locationPath().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLocationPathin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAbsoluteLocationPath
Visit a parse tree produced byXPathParser.absoluteLocationPath().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAbsoluteLocationPathin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRelativeLocationPath
Visit a parse tree produced byXPathParser.relativeLocationPath().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRelativeLocationPathin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPathSeparator
Visit a parse tree produced byXPathParser.pathSeparator().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPathSeparatorin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStep
Visit a parse tree produced byXPathParser.step().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStepin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAxisSpecifier
Visit a parse tree produced byXPathParser.axisSpecifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAxisSpecifierin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAxisName
Visit a parse tree produced byXPathParser.axisName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAxisNamein interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAbbreviatedStep
Visit a parse tree produced byXPathParser.abbreviatedStep().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAbbreviatedStepin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAttributeStep
Visit a parse tree produced byXPathParser.attributeStep().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAttributeStepin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNodeTest
Visit a parse tree produced byXPathParser.nodeTest().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNodeTestin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNameTest
Visit a parse tree produced byXPathParser.nameTest().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNameTestin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNodeType
Visit a parse tree produced byXPathParser.nodeType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNodeTypein interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPredicate
Visit a parse tree produced byXPathParser.predicate().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPredicatein interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPredicateExpr
Visit a parse tree produced byXPathParser.predicateExpr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPredicateExprin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunctionCall
Visit a parse tree produced byXPathParser.functionCall().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFunctionCallin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunctionName
Visit a parse tree produced byXPathParser.functionName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFunctionNamein interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArgument
Visit a parse tree produced byXPathParser.argument().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArgumentin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLiteral
Visit a parse tree produced byXPathParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLiteralin interfaceXPathParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-