public abstract class AbstractQueryModelNode extends Object implements QueryModelNode
QueryModelNode.| Constructor and Description |
|---|
AbstractQueryModelNode() |
| Modifier and Type | Method and Description |
|---|---|
AbstractQueryModelNode |
clone()
Returns a (deep) clone of this query model node.
|
QueryModelNode |
getParentNode()
Gets the node's parent.
|
String |
getSignature()
Default implementation of
QueryModelNode.getSignature() that prints the name of the node's
class. |
protected boolean |
nullEquals(Object o1,
Object o2) |
void |
replaceChildNode(QueryModelNode current,
QueryModelNode replacement)
Default implementation of
QueryModelNode.replaceChildNode(QueryModelNode, QueryModelNode) that
throws an IllegalArgumentException indicating that current is not a child node of this
node. |
protected <T extends QueryModelNode> |
replaceNodeInList(List<T> list,
QueryModelNode current,
QueryModelNode replacement) |
void |
replaceWith(QueryModelNode replacement)
Default implementation of
QueryModelNode.replaceWith(QueryModelNode) that throws an
IllegalArgumentException indicating that current is not a child node of this node. |
void |
setParentNode(QueryModelNode parent)
Sets the node's parent.
|
String |
toString()
Returns an indented print of the node tree, starting from this node.
|
<X extends Exception> |
visitChildren(QueryModelVisitor<X> visitor)
Dummy implementation of
QueryModelNode.visitChildren(org.eclipse.rdf4j.query.algebra.QueryModelVisitor<X>) that does nothing. |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, visitpublic QueryModelNode getParentNode()
QueryModelNodegetParentNode in interface QueryModelNodepublic void setParentNode(QueryModelNode parent)
QueryModelNodesetParentNode in interface QueryModelNodeparent - The parent node for this node.public <X extends Exception> void visitChildren(QueryModelVisitor<X> visitor) throws X extends Exception
QueryModelNode.visitChildren(org.eclipse.rdf4j.query.algebra.QueryModelVisitor<X>) that does nothing. Subclasses should
override this method when they have child nodes.visitChildren in interface QueryModelNodeX extends Exceptionpublic void replaceChildNode(QueryModelNode current, QueryModelNode replacement)
QueryModelNode.replaceChildNode(QueryModelNode, QueryModelNode) that
throws an IllegalArgumentException indicating that current is not a child node of this
node.replaceChildNode in interface QueryModelNodecurrent - The current child node.replacement - The new child node.public void replaceWith(QueryModelNode replacement)
QueryModelNode.replaceWith(QueryModelNode) that throws an
IllegalArgumentException indicating that current is not a child node of this node.replaceWith in interface QueryModelNodereplacement - The new node.public String getSignature()
QueryModelNode.getSignature() that prints the name of the node's
class.getSignature in interface QueryModelNodepublic String toString()
QueryModelNodetoString in interface QueryModelNodetoString in class Objectpublic AbstractQueryModelNode clone()
QueryModelNodeclone in interface QueryModelNodeclone in class Objectprotected <T extends QueryModelNode> boolean replaceNodeInList(List<T> list, QueryModelNode current, QueryModelNode replacement)
Copyright © 2015-2018 Eclipse Foundation. All Rights Reserved.