Class QueryTreeDump
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.query.QueryTreeDump
-
- All Implemented Interfaces:
QueryNodeVisitor
public class QueryTreeDump extends 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, StringBuffer buffer)
Dumps a query node tree to the stringbuffer
.Object
visit(AndQueryNode node, Object data)
Object
visit(DerefQueryNode node, Object data)
Object
visit(ExactQueryNode node, Object data)
Object
visit(LocationStepQueryNode node, Object data)
Object
visit(NodeTypeQueryNode node, Object data)
Object
visit(NotQueryNode node, Object data)
Object
visit(OrderQueryNode node, Object data)
Object
visit(OrQueryNode node, Object data)
Object
visit(PathQueryNode node, Object data)
Object
visit(PropertyFunctionQueryNode node, Object data)
Object
visit(QueryRootNode node, Object data)
Object
visit(RelationQueryNode node, Object data)
Object
visit(TextsearchQueryNode node, Object data)
-
-
-
Method Detail
-
dump
public static void dump(QueryNode node, 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 Object visit(QueryRootNode node, Object data) throws RepositoryException
- Specified by:
visit
in interfaceQueryNodeVisitor
- Throws:
RepositoryException
-
visit
public Object visit(OrQueryNode node, Object data) throws RepositoryException
- Specified by:
visit
in interfaceQueryNodeVisitor
- Throws:
RepositoryException
-
visit
public Object visit(AndQueryNode node, Object data) throws RepositoryException
- Specified by:
visit
in interfaceQueryNodeVisitor
- Throws:
RepositoryException
-
visit
public Object visit(NotQueryNode node, Object data) throws RepositoryException
- Specified by:
visit
in interfaceQueryNodeVisitor
- Throws:
RepositoryException
-
visit
public Object visit(ExactQueryNode node, Object data)
- Specified by:
visit
in interfaceQueryNodeVisitor
-
visit
public Object visit(NodeTypeQueryNode node, Object data)
- Specified by:
visit
in interfaceQueryNodeVisitor
-
visit
public Object visit(TextsearchQueryNode node, Object data)
- Specified by:
visit
in interfaceQueryNodeVisitor
-
visit
public Object visit(PathQueryNode node, Object data) throws RepositoryException
- Specified by:
visit
in interfaceQueryNodeVisitor
- Throws:
RepositoryException
-
visit
public Object visit(LocationStepQueryNode node, Object data) throws RepositoryException
- Specified by:
visit
in interfaceQueryNodeVisitor
- Throws:
RepositoryException
-
visit
public Object visit(RelationQueryNode node, Object data) throws RepositoryException
- Specified by:
visit
in interfaceQueryNodeVisitor
- Throws:
RepositoryException
-
visit
public Object visit(OrderQueryNode node, Object data)
- Specified by:
visit
in interfaceQueryNodeVisitor
-
visit
public Object visit(DerefQueryNode node, Object data) throws RepositoryException
- Specified by:
visit
in interfaceQueryNodeVisitor
- Throws:
RepositoryException
-
visit
public Object visit(PropertyFunctionQueryNode node, Object data)
- Specified by:
visit
in interfaceQueryNodeVisitor
-
-