public abstract class QueryModelNodeBase extends Object implements QueryModelNode
QueryModelNode
.Constructor and Description |
---|
QueryModelNodeBase() |
Modifier and Type | Method and Description |
---|---|
QueryModelNodeBase |
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.openrdf.query.algebra.QueryModelVisitor<X>) that does
nothing. |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, visit
public QueryModelNode getParentNode()
QueryModelNode
getParentNode
in interface QueryModelNode
public void setParentNode(QueryModelNode parent)
QueryModelNode
setParentNode
in interface QueryModelNode
parent
- The parent node for this node.public <X extends Exception> void visitChildren(QueryModelVisitor<X> visitor) throws X extends Exception
QueryModelNode.visitChildren(org.openrdf.query.algebra.QueryModelVisitor<X>)
that does
nothing. Subclasses should override this method when they have child
nodes.visitChildren
in interface QueryModelNode
X extends Exception
public 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 QueryModelNode
current
- 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 QueryModelNode
replacement
- The new node.public String getSignature()
QueryModelNode.getSignature()
that
prints the name of the node's class.getSignature
in interface QueryModelNode
public String toString()
QueryModelNode
toString
in interface QueryModelNode
toString
in class Object
public QueryModelNodeBase clone()
QueryModelNode
clone
in interface QueryModelNode
clone
in class Object
protected <T extends QueryModelNode> boolean replaceNodeInList(List<T> list, QueryModelNode current, QueryModelNode replacement)
Copyright © 2001-2016 Aduna. All Rights Reserved.