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.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the sub expressions should be traversed.The owner of the expression, to which the expression can
be reset if rewriting takes place. owner, Operation The operation object. op)Visit a binary operation. |
| public boolean | Returns: true if the sub expressions should be traversed.The owner of the expression, to which the expression can
be reset if rewriting takes place. owner, Function The function reference object. func)Visit a function. |
| public boolean | Returns: true if the sub expressions should be traversed.The owner of the expression, to which the expression can
be reset if rewriting takes place. owner, LocPathIterator The LocationPath object. path)Visit a LocationPath. |
| public boolean | Returns: true if the sub expressions should be traversed.The owner of the expression, to which the expression can
be reset if rewriting takes place. owner, StepPattern The match pattern object. pattern)Visit a match pattern. |
| public boolean | Returns: true if the sub expressions should be traversed.The owner of the expression, to which the expression can
be reset if rewriting takes place. owner, XNumber The number literal object. num)Visit a number literal. |
| public boolean | Returns: true if the sub expressions should be traversed.The owner of the expression, to which the expression can
be reset if rewriting takes place. owner, Expression The predicate object. pred)Visit a predicate within a location path. |
| public boolean | Returns: true if the sub expressions should be traversed.The owner of the expression, to which the expression can
be reset if rewriting takes place. owner, NodeTest The Step object. step)Visit a step within a location path. |
| public boolean | Returns: true if the sub expressions should be traversed.The owner of the expression, to which the expression can
be reset if rewriting takes place. owner, XString The string literal object. str)Visit a string literal. |
| public boolean | Returns: true if the sub expressions should be traversed.The owner of the expression, to which the expression can
be reset if rewriting takes place. owner, UnaryOperation The operation object. op)Visit a unary operation. |
| public boolean | Returns: true if the sub expressions should be traversed.The owner of the expression, to which the expression can
be reset if rewriting takes place. owner, UnionPathIterator The UnionPath object. path)Visit a UnionPath. |
| public boolean | Returns: true if the sub expressions should be traversed.The owner of the expression, to which the expression can
be reset if rewriting takes place. owner, UnionPattern The union pattern object. pattern)Visit a union pattern. |
| public boolean | Returns: true if the sub expressions should be traversed.The owner of the expression, to which the expression can
be reset if rewriting takes place. owner, Variable The variable reference object. var)Visit a variable reference. |
| XPathVisitor | back to summary |
|---|---|
| public XPathVisitor() | |
| visitBinaryOperation | back to summary |
|---|---|
| public boolean visitBinaryOperation(ExpressionOwner owner, Operation op) Visit a binary operation.
| |
| visitFunction | back to summary |
|---|---|
| public boolean visitFunction(ExpressionOwner owner, Function func) Visit a function.
| |
| visitLocationPath | back to summary |
|---|---|
| public boolean visitLocationPath(ExpressionOwner owner, LocPathIterator path) Visit a LocationPath.
| |
| visitMatchPattern | back to summary |
|---|---|
| public boolean visitMatchPattern(ExpressionOwner owner, StepPattern pattern) Visit a match pattern.
| |
| visitNumberLiteral | back to summary |
|---|---|
| public boolean visitNumberLiteral(ExpressionOwner owner, XNumber num) Visit a number literal.
| |
| visitPredicate | back to summary |
|---|---|
| public boolean visitPredicate(ExpressionOwner owner, Expression pred) Visit a predicate within a location path. Note that there isn't a proper unique component for predicates, and that the expression will be called also for whatever type Expression is.
| |
| visitStep | back to summary |
|---|---|
| public boolean visitStep(ExpressionOwner owner, NodeTest step) Visit a step within a location path.
| |
| visitStringLiteral | back to summary |
|---|---|
| public boolean visitStringLiteral(ExpressionOwner owner, XString str) Visit a string literal.
| |
| visitUnaryOperation | back to summary |
|---|---|
| public boolean visitUnaryOperation(ExpressionOwner owner, UnaryOperation op) Visit a unary operation.
| |
| visitUnionPath | back to summary |
|---|---|
| public boolean visitUnionPath(ExpressionOwner owner, UnionPathIterator path) Visit a UnionPath.
| |
| visitUnionPattern | back to summary |
|---|---|
| public boolean visitUnionPattern(ExpressionOwner owner, UnionPattern pattern) Visit a union pattern.
| |
| visitVariableRef | back to summary |
|---|---|
| public boolean visitVariableRef(ExpressionOwner owner, Variable var) Visit a variable reference.
| |