org.priha.query.aqt
Class DefaultQueryNodeVisitor

java.lang.Object
  extended by org.priha.query.aqt.DefaultQueryNodeVisitor
All Implemented Interfaces:
QueryNodeVisitor
Direct Known Subclasses:
TraversingQueryNodeVisitor

public class DefaultQueryNodeVisitor
extends java.lang.Object
implements QueryNodeVisitor

Implements the QueryNodeVisitor interface with default behaviour. All methods are no-ops and return the data argument.


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

Constructor Detail

DefaultQueryNodeVisitor

public DefaultQueryNodeVisitor()
Method Detail

visit

public java.lang.Object visit(QueryRootNode node,
                              java.lang.Object data)
                       throws javax.jcr.RepositoryException
Specified by:
visit in interface QueryNodeVisitor
Throws:
javax.jcr.RepositoryException

visit

public java.lang.Object visit(OrQueryNode node,
                              java.lang.Object data)
                       throws javax.jcr.RepositoryException
Specified by:
visit in interface QueryNodeVisitor
Throws:
javax.jcr.RepositoryException

visit

public java.lang.Object visit(AndQueryNode node,
                              java.lang.Object data)
                       throws javax.jcr.RepositoryException
Specified by:
visit in interface QueryNodeVisitor
Throws:
javax.jcr.RepositoryException

visit

public java.lang.Object visit(NotQueryNode node,
                              java.lang.Object data)
                       throws javax.jcr.RepositoryException
Specified by:
visit in interface QueryNodeVisitor
Throws:
javax.jcr.RepositoryException

visit

public java.lang.Object visit(ExactQueryNode node,
                              java.lang.Object data)
                       throws javax.jcr.RepositoryException
Specified by:
visit in interface QueryNodeVisitor
Throws:
javax.jcr.RepositoryException

visit

public java.lang.Object visit(NodeTypeQueryNode node,
                              java.lang.Object data)
                       throws javax.jcr.RepositoryException
Specified by:
visit in interface QueryNodeVisitor
Throws:
javax.jcr.RepositoryException

visit

public java.lang.Object visit(TextsearchQueryNode node,
                              java.lang.Object data)
                       throws javax.jcr.RepositoryException
Specified by:
visit in interface QueryNodeVisitor
Throws:
javax.jcr.RepositoryException

visit

public java.lang.Object visit(PathQueryNode node,
                              java.lang.Object data)
                       throws javax.jcr.RepositoryException
Specified by:
visit in interface QueryNodeVisitor
Throws:
javax.jcr.RepositoryException

visit

public java.lang.Object visit(LocationStepQueryNode node,
                              java.lang.Object data)
                       throws javax.jcr.RepositoryException
Specified by:
visit in interface QueryNodeVisitor
Throws:
javax.jcr.RepositoryException

visit

public java.lang.Object visit(RelationQueryNode node,
                              java.lang.Object data)
                       throws javax.jcr.RepositoryException
Specified by:
visit in interface QueryNodeVisitor
Throws:
javax.jcr.RepositoryException

visit

public java.lang.Object visit(OrderQueryNode node,
                              java.lang.Object data)
                       throws javax.jcr.RepositoryException
Specified by:
visit in interface QueryNodeVisitor
Throws:
javax.jcr.RepositoryException

visit

public java.lang.Object visit(DerefQueryNode node,
                              java.lang.Object data)
                       throws javax.jcr.RepositoryException
Specified by:
visit in interface QueryNodeVisitor
Throws:
javax.jcr.RepositoryException

visit

public java.lang.Object visit(PropertyFunctionQueryNode node,
                              java.lang.Object data)
                       throws javax.jcr.RepositoryException
Specified by:
visit in interface QueryNodeVisitor
Throws:
javax.jcr.RepositoryException