public class NodeTypeQueryNode extends ExactQueryNode
TYPE_AND, TYPE_DEREF, TYPE_EXACT, TYPE_LOCATION, TYPE_NODETYPE, TYPE_NOT, TYPE_OR, TYPE_ORDER, TYPE_PATH, TYPE_PROP_FUNCTION, TYPE_RELATION, TYPE_ROOT, TYPE_TEXTSEARCH| Modifier | Constructor and Description |
|---|---|
protected |
NodeTypeQueryNode(QueryNode parent,
Name nodeType)
Creates a new
NodeTypeQueryNode. |
| Modifier and Type | Method and Description |
|---|---|
Object |
accept(QueryNodeVisitor visitor,
Object data)
Accepts a
QueryNodeVisitor and calls the appropriate visit
method on the visitor depending on the concrete implementation of
this QueryNode. |
boolean |
equals(Object obj)
Returns
true if obj is the same type of
QueryNode as this node and is equal to
this node. |
int |
getType()
Returns the type of this node.
|
getPropertyName, getValue, needsSystemTreepublic Object accept(QueryNodeVisitor visitor, Object data) throws RepositoryException
QueryNodeVisitor and calls the appropriate visit
method on the visitor depending on the concrete implementation of
this QueryNode.accept in class ExactQueryNodevisitor - the visitor to call back.data - arbitrary data for the visitor.visitor.visit() call.RepositoryExceptionpublic int getType()
getType in class ExactQueryNodepublic boolean equals(Object obj)
true if obj is the same type of
QueryNode as this node and is equal to
this node.equals in class ExactQueryNodeobj - the reference object with which to compare.true if obj is equal to
this; false otherwise.Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.