public class QueryTreeDump extends Object implements QueryNodeVisitor
QueryNode
tree to a StringBuffer.Modifier and Type | Method and Description |
---|---|
static void |
dump(QueryNode node,
StringBuffer buffer)
Dumps a query node tree to the string
buffer . |
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) |
public static void dump(QueryNode node, StringBuffer buffer) throws RepositoryException
buffer
.node
- the root node of a query tree.buffer
- a string buffer where to dump the tree structure.RepositoryException
public Object visit(QueryRootNode node, Object data) throws RepositoryException
visit
in interface QueryNodeVisitor
RepositoryException
public Object visit(OrQueryNode node, Object data) throws RepositoryException
visit
in interface QueryNodeVisitor
RepositoryException
public Object visit(AndQueryNode node, Object data) throws RepositoryException
visit
in interface QueryNodeVisitor
RepositoryException
public Object visit(NotQueryNode node, Object data) throws RepositoryException
visit
in interface QueryNodeVisitor
RepositoryException
public Object visit(ExactQueryNode node, Object data)
visit
in interface QueryNodeVisitor
public Object visit(NodeTypeQueryNode node, Object data)
visit
in interface QueryNodeVisitor
public Object visit(TextsearchQueryNode node, Object data)
visit
in interface QueryNodeVisitor
public Object visit(PathQueryNode node, Object data) throws RepositoryException
visit
in interface QueryNodeVisitor
RepositoryException
public Object visit(LocationStepQueryNode node, Object data) throws RepositoryException
visit
in interface QueryNodeVisitor
RepositoryException
public Object visit(RelationQueryNode node, Object data) throws RepositoryException
visit
in interface QueryNodeVisitor
RepositoryException
public Object visit(OrderQueryNode node, Object data)
visit
in interface QueryNodeVisitor
public Object visit(DerefQueryNode node, Object data) throws RepositoryException
visit
in interface QueryNodeVisitor
RepositoryException
public Object visit(PropertyFunctionQueryNode node, Object data)
visit
in interface QueryNodeVisitor
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.