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