public abstract class AbstractQueryModelNode extends Object implements QueryModelNode, GraphPatternGroupable
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. |
boolean |
isGraphPatternGroup()
indicates if the node represents the root of a graph pattern group.
|
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 |
setGraphPatternGroup(boolean isGraphPatternGroup)
Set the value of
GraphPatternGroupable.isGraphPatternGroup() to true or false. |
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, 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 boolean isGraphPatternGroup()
GraphPatternGroupable
isGraphPatternGroup
in interface GraphPatternGroupable
public void setGraphPatternGroup(boolean isGraphPatternGroup)
GraphPatternGroupable
GraphPatternGroupable.isGraphPatternGroup()
to true or false.setGraphPatternGroup
in interface GraphPatternGroupable
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 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 AbstractQueryModelNode clone()
QueryModelNode
clone
in interface QueryModelNode
clone
in class Object
protected <T extends QueryModelNode> boolean replaceNodeInList(List<T> list, QueryModelNode current, QueryModelNode replacement)
Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.