Class QueryTreeDump
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.query.QueryTreeDump
-
- All Implemented Interfaces:
QueryNodeVisitor
public class QueryTreeDump extends java.lang.Object implements QueryNodeVisitor
Utility class to dump aQueryNode
tree to a StringBuffer.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
dump(QueryNode node, java.lang.StringBuffer buffer)
Dumps a query node tree to the stringbuffer
.java.lang.Object
visit(AndQueryNode node, java.lang.Object data)
java.lang.Object
visit(DerefQueryNode node, java.lang.Object data)
java.lang.Object
visit(ExactQueryNode node, java.lang.Object data)
java.lang.Object
visit(LocationStepQueryNode node, java.lang.Object data)
java.lang.Object
visit(NodeTypeQueryNode node, java.lang.Object data)
java.lang.Object
visit(NotQueryNode node, java.lang.Object data)
java.lang.Object
visit(OrderQueryNode node, java.lang.Object data)
java.lang.Object
visit(OrQueryNode node, java.lang.Object data)
java.lang.Object
visit(PathQueryNode node, java.lang.Object data)
java.lang.Object
visit(PropertyFunctionQueryNode node, java.lang.Object data)
java.lang.Object
visit(QueryRootNode node, java.lang.Object data)
java.lang.Object
visit(RelationQueryNode node, java.lang.Object data)
java.lang.Object
visit(TextsearchQueryNode node, java.lang.Object data)
-
-
-
Method Detail
-
dump
public static void dump(QueryNode node, java.lang.StringBuffer buffer) throws RepositoryException
Dumps a query node tree to the stringbuffer
.- Parameters:
node
- the root node of a query tree.buffer
- a string buffer where to dump the tree structure.- Throws:
RepositoryException
-
visit
public java.lang.Object visit(QueryRootNode node, java.lang.Object data) throws RepositoryException
- Specified by:
visit
in interfaceQueryNodeVisitor
- Throws:
RepositoryException
-
visit
public java.lang.Object visit(OrQueryNode node, java.lang.Object data) throws RepositoryException
- Specified by:
visit
in interfaceQueryNodeVisitor
- Throws:
RepositoryException
-
visit
public java.lang.Object visit(AndQueryNode node, java.lang.Object data) throws RepositoryException
- Specified by:
visit
in interfaceQueryNodeVisitor
- Throws:
RepositoryException
-
visit
public java.lang.Object visit(NotQueryNode node, java.lang.Object data) throws RepositoryException
- Specified by:
visit
in interfaceQueryNodeVisitor
- Throws:
RepositoryException
-
visit
public java.lang.Object visit(ExactQueryNode node, java.lang.Object data)
- Specified by:
visit
in interfaceQueryNodeVisitor
-
visit
public java.lang.Object visit(NodeTypeQueryNode node, java.lang.Object data)
- Specified by:
visit
in interfaceQueryNodeVisitor
-
visit
public java.lang.Object visit(TextsearchQueryNode node, java.lang.Object data)
- Specified by:
visit
in interfaceQueryNodeVisitor
-
visit
public java.lang.Object visit(PathQueryNode node, java.lang.Object data) throws RepositoryException
- Specified by:
visit
in interfaceQueryNodeVisitor
- Throws:
RepositoryException
-
visit
public java.lang.Object visit(LocationStepQueryNode node, java.lang.Object data) throws RepositoryException
- Specified by:
visit
in interfaceQueryNodeVisitor
- Throws:
RepositoryException
-
visit
public java.lang.Object visit(RelationQueryNode node, java.lang.Object data) throws RepositoryException
- Specified by:
visit
in interfaceQueryNodeVisitor
- Throws:
RepositoryException
-
visit
public java.lang.Object visit(OrderQueryNode node, java.lang.Object data)
- Specified by:
visit
in interfaceQueryNodeVisitor
-
visit
public java.lang.Object visit(DerefQueryNode node, java.lang.Object data) throws RepositoryException
- Specified by:
visit
in interfaceQueryNodeVisitor
- Throws:
RepositoryException
-
visit
public java.lang.Object visit(PropertyFunctionQueryNode node, java.lang.Object data)
- Specified by:
visit
in interfaceQueryNodeVisitor
-
-