Class DefaultTraversingQOMTreeVisitor
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.query.qom.DefaultQOMTreeVisitor
-
- org.apache.jackrabbit.spi.commons.query.qom.DefaultTraversingQOMTreeVisitor
-
- All Implemented Interfaces:
QOMTreeVisitor
public class DefaultTraversingQOMTreeVisitor extends DefaultQOMTreeVisitor
DefaultTraversingQOMTreeVisitor
default implementation of a traversingQOMTreeVisitor
.
-
-
Constructor Summary
Constructors Constructor Description DefaultTraversingQOMTreeVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
visit(AndImpl node, java.lang.Object data)
Calls accept on each of the attached constraints of the AND node.java.lang.Object
visit(ComparisonImpl node, java.lang.Object data)
Calls accept on the two operands in the comparison node.java.lang.Object
visit(FullTextSearchImpl node, java.lang.Object data)
Calls accept on the static operand in the fulltext search constraint.java.lang.Object
visit(JoinImpl node, java.lang.Object data)
Calls accept on the two sources and the join condition in the join node.java.lang.Object
visit(LengthImpl node, java.lang.Object data)
Calls accept on the property value in the length node.java.lang.Object
visit(LowerCaseImpl node, java.lang.Object data)
Calls accept on the dynamic operand in the lower-case node.java.lang.Object
visit(NotImpl node, java.lang.Object data)
Calls accept on the constraint in the NOT node.java.lang.Object
visit(OrderingImpl node, java.lang.Object data)
Calls accept on the dynamic operand in the ordering node.java.lang.Object
visit(OrImpl node, java.lang.Object data)
Calls accept on each of the attached constraints of the OR node.java.lang.Object
visit(QueryObjectModelTree node, java.lang.Object data)
Calls accept on the following contained QOM nodes: Source Constraints Orderings Columnsjava.lang.Object
visit(UpperCaseImpl node, java.lang.Object data)
Calls accept on the dynamic operand in the lower-case node.
-
-
-
Method Detail
-
visit
public final java.lang.Object visit(AndImpl node, java.lang.Object data) throws java.lang.Exception
Calls accept on each of the attached constraints of the AND node.- Specified by:
visit
in interfaceQOMTreeVisitor
- Overrides:
visit
in classDefaultQOMTreeVisitor
- Throws:
java.lang.Exception
-
visit
public java.lang.Object visit(ComparisonImpl node, java.lang.Object data) throws java.lang.Exception
Calls accept on the two operands in the comparison node.- Specified by:
visit
in interfaceQOMTreeVisitor
- Overrides:
visit
in classDefaultQOMTreeVisitor
- Throws:
java.lang.Exception
-
visit
public java.lang.Object visit(FullTextSearchImpl node, java.lang.Object data) throws java.lang.Exception
Calls accept on the static operand in the fulltext search constraint.- Specified by:
visit
in interfaceQOMTreeVisitor
- Overrides:
visit
in classDefaultQOMTreeVisitor
- Throws:
java.lang.Exception
-
visit
public java.lang.Object visit(JoinImpl node, java.lang.Object data) throws java.lang.Exception
Calls accept on the two sources and the join condition in the join node.- Specified by:
visit
in interfaceQOMTreeVisitor
- Overrides:
visit
in classDefaultQOMTreeVisitor
- Throws:
java.lang.Exception
-
visit
public java.lang.Object visit(LengthImpl node, java.lang.Object data) throws java.lang.Exception
Calls accept on the property value in the length node.- Specified by:
visit
in interfaceQOMTreeVisitor
- Overrides:
visit
in classDefaultQOMTreeVisitor
- Throws:
java.lang.Exception
-
visit
public java.lang.Object visit(LowerCaseImpl node, java.lang.Object data) throws java.lang.Exception
Calls accept on the dynamic operand in the lower-case node.- Specified by:
visit
in interfaceQOMTreeVisitor
- Overrides:
visit
in classDefaultQOMTreeVisitor
- Throws:
java.lang.Exception
-
visit
public java.lang.Object visit(NotImpl node, java.lang.Object data) throws java.lang.Exception
Calls accept on the constraint in the NOT node.- Specified by:
visit
in interfaceQOMTreeVisitor
- Overrides:
visit
in classDefaultQOMTreeVisitor
- Throws:
java.lang.Exception
-
visit
public java.lang.Object visit(OrderingImpl node, java.lang.Object data) throws java.lang.Exception
Calls accept on the dynamic operand in the ordering node.- Specified by:
visit
in interfaceQOMTreeVisitor
- Overrides:
visit
in classDefaultQOMTreeVisitor
- Throws:
java.lang.Exception
-
visit
public java.lang.Object visit(OrImpl node, java.lang.Object data) throws java.lang.Exception
Calls accept on each of the attached constraints of the OR node.- Specified by:
visit
in interfaceQOMTreeVisitor
- Overrides:
visit
in classDefaultQOMTreeVisitor
- Throws:
java.lang.Exception
-
visit
public java.lang.Object visit(QueryObjectModelTree node, java.lang.Object data) throws java.lang.Exception
Calls accept on the following contained QOM nodes:- Source
- Constraints
- Orderings
- Columns
- Specified by:
visit
in interfaceQOMTreeVisitor
- Overrides:
visit
in classDefaultQOMTreeVisitor
- Throws:
java.lang.Exception
-
visit
public java.lang.Object visit(UpperCaseImpl node, java.lang.Object data) throws java.lang.Exception
Calls accept on the dynamic operand in the lower-case node.- Specified by:
visit
in interfaceQOMTreeVisitor
- Overrides:
visit
in classDefaultQOMTreeVisitor
- Throws:
java.lang.Exception
-
-