|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.query.algebra.QueryModelNodeBase
public abstract class QueryModelNodeBase
Base implementation of QueryModelNode.
| Constructor Summary | |
|---|---|
QueryModelNodeBase()
|
|
| Method Summary | ||
|---|---|---|
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. |
|
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. |
|
void |
replaceWith(QueryModelNode replacement)
Default implementation of QueryModelNode.replaceChildNode(QueryModelNode, 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. |
|
|
visitChildren(QueryModelVisitor<X> visitor)
Dummy implementation of QueryModelNode.visitChildren(org.openrdf.query.algebra.QueryModelVisitor that does
nothing. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openrdf.query.algebra.QueryModelNode |
|---|
visit |
| Constructor Detail |
|---|
public QueryModelNodeBase()
| Method Detail |
|---|
public QueryModelNode getParentNode()
QueryModelNode
getParentNode in interface QueryModelNodepublic void setParentNode(QueryModelNode parent)
QueryModelNode
setParentNode 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.openrdf.query.algebra.QueryModelVisitor) that does
nothing. Subclasses should override this method when they have child
nodes.
visitChildren in interface QueryModelNodeX 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 QueryModelNodecurrent - The current child node.replacement - The new child node.public void replaceWith(QueryModelNode replacement)
QueryModelNode.replaceChildNode(QueryModelNode, 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()
QueryModelNode
toString in interface QueryModelNodetoString in class Objectpublic QueryModelNodeBase clone()
QueryModelNode
clone in interface QueryModelNodeclone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||