public class XPathVisitor extends Object
Each method has the form
boolean visitComponentType(ExpressionOwner owner, ComponentType compType). The
ExpressionOwner argument is the owner of the component, and can be used to reset the expression
for rewriting. If a method returns false, the sub hierarchy will not be traversed.
This class is meant to be a base class that will be derived by concrete classes, and doesn't much except return true for each method.
| Constructor and Description |
|---|
XPathVisitor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
visitBinaryOperation()
Visit a binary operation.
|
boolean |
visitFunction(Function func)
Visit a function.
|
boolean |
visitLocationPath()
Visit a LocationPath.
|
boolean |
visitMatchPattern()
Visit a match pattern.
|
void |
visitNumberLiteral()
Visit a number literal.
|
boolean |
visitPredicate(Expression pred)
Visit a predicate within a location path.
|
boolean |
visitStep()
Visit a step within a location path.
|
void |
visitStringLiteral()
Visit a string literal.
|
boolean |
visitUnaryOperation()
Visit a unary operation.
|
boolean |
visitUnionPath()
Visit a UnionPath.
|
void |
visitUnionPattern()
Visit a union pattern.
|
public boolean visitLocationPath()
public boolean visitUnionPath()
public boolean visitStep()
public boolean visitPredicate(Expression pred)
pred - The predicate object.public boolean visitBinaryOperation()
public boolean visitUnaryOperation()
public boolean visitFunction(Function func)
func - The function reference object.public boolean visitMatchPattern()
public void visitUnionPattern()
public void visitStringLiteral()
public void visitNumberLiteral()
Copyright © 2022. All rights reserved.