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 Object
visit(AndImpl node, Object data)
Calls accept on each of the attached constraints of the AND node.Object
visit(ComparisonImpl node, Object data)
Calls accept on the two operands in the comparison node.Object
visit(FullTextSearchImpl node, Object data)
Calls accept on the static operand in the fulltext search constraint.Object
visit(JoinImpl node, Object data)
Calls accept on the two sources and the join condition in the join node.Object
visit(LengthImpl node, Object data)
Calls accept on the property value in the length node.Object
visit(LowerCaseImpl node, Object data)
Calls accept on the dynamic operand in the lower-case node.Object
visit(NotImpl node, Object data)
Calls accept on the constraint in the NOT node.Object
visit(OrderingImpl node, Object data)
Calls accept on the dynamic operand in the ordering node.Object
visit(OrImpl node, Object data)
Calls accept on each of the attached constraints of the OR node.Object
visit(QueryObjectModelTree node, Object data)
Calls accept on the following contained QOM nodes: Source Constraints Orderings ColumnsObject
visit(UpperCaseImpl node, Object data)
Calls accept on the dynamic operand in the lower-case node.
-
-
-
Method Detail
-
visit
public final Object visit(AndImpl node, Object data) throws Exception
Calls accept on each of the attached constraints of the AND node.- Specified by:
visit
in interfaceQOMTreeVisitor
- Overrides:
visit
in classDefaultQOMTreeVisitor
- Throws:
Exception
-
visit
public Object visit(ComparisonImpl node, Object data) throws Exception
Calls accept on the two operands in the comparison node.- Specified by:
visit
in interfaceQOMTreeVisitor
- Overrides:
visit
in classDefaultQOMTreeVisitor
- Throws:
Exception
-
visit
public Object visit(FullTextSearchImpl node, Object data) throws Exception
Calls accept on the static operand in the fulltext search constraint.- Specified by:
visit
in interfaceQOMTreeVisitor
- Overrides:
visit
in classDefaultQOMTreeVisitor
- Throws:
Exception
-
visit
public Object visit(JoinImpl node, Object data) throws 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:
Exception
-
visit
public Object visit(LengthImpl node, Object data) throws Exception
Calls accept on the property value in the length node.- Specified by:
visit
in interfaceQOMTreeVisitor
- Overrides:
visit
in classDefaultQOMTreeVisitor
- Throws:
Exception
-
visit
public Object visit(LowerCaseImpl node, Object data) throws Exception
Calls accept on the dynamic operand in the lower-case node.- Specified by:
visit
in interfaceQOMTreeVisitor
- Overrides:
visit
in classDefaultQOMTreeVisitor
- Throws:
Exception
-
visit
public Object visit(NotImpl node, Object data) throws Exception
Calls accept on the constraint in the NOT node.- Specified by:
visit
in interfaceQOMTreeVisitor
- Overrides:
visit
in classDefaultQOMTreeVisitor
- Throws:
Exception
-
visit
public Object visit(OrderingImpl node, Object data) throws Exception
Calls accept on the dynamic operand in the ordering node.- Specified by:
visit
in interfaceQOMTreeVisitor
- Overrides:
visit
in classDefaultQOMTreeVisitor
- Throws:
Exception
-
visit
public Object visit(OrImpl node, Object data) throws Exception
Calls accept on each of the attached constraints of the OR node.- Specified by:
visit
in interfaceQOMTreeVisitor
- Overrides:
visit
in classDefaultQOMTreeVisitor
- Throws:
Exception
-
visit
public Object visit(QueryObjectModelTree node, Object data) throws Exception
Calls accept on the following contained QOM nodes:- Source
- Constraints
- Orderings
- Columns
- Specified by:
visit
in interfaceQOMTreeVisitor
- Overrides:
visit
in classDefaultQOMTreeVisitor
- Throws:
Exception
-
visit
public Object visit(UpperCaseImpl node, Object data) throws Exception
Calls accept on the dynamic operand in the lower-case node.- Specified by:
visit
in interfaceQOMTreeVisitor
- Overrides:
visit
in classDefaultQOMTreeVisitor
- Throws:
Exception
-
-