|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface QueryModelNode
Main interface for all query model nodes.
| Method Summary | ||
|---|---|---|
QueryModelNode |
clone()
Returns a (deep) clone of this query model node. |
|
boolean |
equals(Object o)
Returns true if this query model node and its children are recursively equal to o and its children. |
|
QueryModelNode |
getParentNode()
Gets the node's parent. |
|
String |
getSignature()
Returns the signature of this query model node. |
|
void |
replaceChildNode(QueryModelNode current,
QueryModelNode replacement)
Replaces one of the child nodes with a new node. |
|
void |
replaceWith(QueryModelNode replacement)
Substitutes this node with a new node in the query model tree. |
|
void |
setParentNode(QueryModelNode parent)
Sets the node's parent. |
|
String |
toString()
Returns an indented print of the node tree, starting from this node. |
|
|
visit(QueryModelVisitor<X> visitor)
Visits this node. |
|
|
visitChildren(QueryModelVisitor<X> visitor)
Visits the children of this node. |
|
| Method Detail |
|---|
<X extends Exception> void visit(QueryModelVisitor<X> visitor)
throws X extends Exception
X extends Exception
<X extends Exception> void visitChildren(QueryModelVisitor<X> visitor)
throws X extends Exception
visit(QueryModelVisitor) on all of its child nodes.
X extends ExceptionQueryModelNode getParentNode()
void setParentNode(QueryModelNode parent)
parent - The parent node for this node.
void replaceChildNode(QueryModelNode current,
QueryModelNode replacement)
current - The current child node.replacement - The new child node.
IllegalArgumentException - If current is not one of node's children.
ClassCastException - If replacement is of an incompatible type.void replaceWith(QueryModelNode replacement)
replacement - The new node.
IllegalStateException - If this node does not have a parent node.
ClassCastException - If replacement is of an incompatible type.boolean equals(Object o)
equals in class ObjectString toString()
toString in class ObjectString getSignature()
toString().
QueryModelNode clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||