org.apache.jackrabbit.spi.commons.query
Class QueryTreeDump

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.query.QueryTreeDump
All Implemented Interfaces:
QueryNodeVisitor

public class QueryTreeDump
extends Object
implements QueryNodeVisitor

Utility class to dump a QueryNode tree to a StringBuffer.


Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

dump

public static void dump(QueryNode node,
                        StringBuffer buffer)
                 throws RepositoryException
Dumps a query node tree to the string buffer.

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 interface QueryNodeVisitor
Throws:
RepositoryException

visit

public Object visit(OrQueryNode node,
                    Object data)
             throws RepositoryException
Specified by:
visit in interface QueryNodeVisitor
Throws:
RepositoryException

visit

public Object visit(AndQueryNode node,
                    Object data)
             throws RepositoryException
Specified by:
visit in interface QueryNodeVisitor
Throws:
RepositoryException

visit

public Object visit(NotQueryNode node,
                    Object data)
             throws RepositoryException
Specified by:
visit in interface QueryNodeVisitor
Throws:
RepositoryException

visit

public Object visit(ExactQueryNode node,
                    Object data)
Specified by:
visit in interface QueryNodeVisitor

visit

public Object visit(NodeTypeQueryNode node,
                    Object data)
Specified by:
visit in interface QueryNodeVisitor

visit

public Object visit(TextsearchQueryNode node,
                    Object data)
Specified by:
visit in interface QueryNodeVisitor

visit

public Object visit(PathQueryNode node,
                    Object data)
             throws RepositoryException
Specified by:
visit in interface QueryNodeVisitor
Throws:
RepositoryException

visit

public Object visit(LocationStepQueryNode node,
                    Object data)
             throws RepositoryException
Specified by:
visit in interface QueryNodeVisitor
Throws:
RepositoryException

visit

public Object visit(RelationQueryNode node,
                    Object data)
             throws RepositoryException
Specified by:
visit in interface QueryNodeVisitor
Throws:
RepositoryException

visit

public Object visit(OrderQueryNode node,
                    Object data)
Specified by:
visit in interface QueryNodeVisitor

visit

public Object visit(DerefQueryNode node,
                    Object data)
             throws RepositoryException
Specified by:
visit in interface QueryNodeVisitor
Throws:
RepositoryException

visit

public Object visit(PropertyFunctionQueryNode node,
                    Object data)
Specified by:
visit in interface QueryNodeVisitor


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.