| org.openrdf.query.algebra.QueryModelNode
All known Subclasses: org.openrdf.query.algebra.QueryModelNodeBase,
QueryModelNode | public interface QueryModelNode extends Cloneable(Code) | | Main interface for all query model nodes.
|
clone | public QueryModelNode clone()(Code) | | Returns a (deep) clone of this query model node. This method recursively
clones the entire node tree, starting from this nodes.
A deep clone of this query model node. |
getParentNode | public QueryModelNode getParentNode()(Code) | | Gets the node's parent.
The parent node, if any. |
getSignature | public String getSignature()(Code) | | Returns the signature of this query model node. Signatures normally
include the node's name and any parameters, but not parent or child nodes.
This method is used by
QueryModelNode.toString() .
The node's signature, e.g. SLICE (offset=10, limit=10). |
replaceChildNode | public void replaceChildNode(QueryModelNode current, QueryModelNode replacement)(Code) | | Replaces one of the child nodes with a new node.
Parameters: current - The current child node. Parameters: replacement - The new child node. throws: IllegalArgumentException - If current is not one of node's children. throws: ClassCastException - If replacement is of an incompatible type. |
replaceWith | public void replaceWith(QueryModelNode replacement)(Code) | | Substitutes this node with a new node in the query model tree.
Parameters: replacement - The new node. throws: IllegalStateException - If this node does not have a parent node. throws: ClassCastException - If replacement is of an incompatible type. |
setParentNode | public void setParentNode(QueryModelNode parent)(Code) | | Sets the node's parent.
Parameters: parent - The parent node for this node. |
toString | public String toString()(Code) | | Returns an indented print of the node tree, starting from this node.
|
visit | public void visit(QueryModelVisitor<X> visitor) throws X(Code) | | Visits this node. The node reports itself to the visitor with the proper
runtime type.
|
|
|