|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.racwrap.runner.CommonImpl
org.jmlspecs.racwrap.runner.BranchNode
BranchNode is an implementation of Node for branches. BranchNode uses nested hashtables to implement Node.
| Field Summary | |
private Hashtable |
children
|
| Fields inherited from class org.jmlspecs.racwrap.runner.CommonImpl |
|
| Constructor Summary | |
BranchNode()
|
|
| Method Summary | |
void |
addChild(Node n)
Add a child node to this node. |
Node |
getChild(String name)
Given a name, get the child node. |
Enumeration |
getChildren()
returns an Enumeration of Nodes, which are this node's children. |
Enumeration |
getKeys()
returns an Enumeration of the names of the node's children. |
boolean |
isEmpty()
returns true if the node has no children. |
boolean |
prune()
removes extraneous nodes. |
void |
removeChild(String name)
Does nothing if name is not a child. |
| Methods inherited from class org.jmlspecs.racwrap.runner.CommonImpl |
getName, isCheckable, isCheckInvariant, isCheckPostcondition, isCheckPrecondition, isWrap, setCheckable, setCheckInvariant, setCheckPostcondition, setCheckPrecondition, setName, setWrap, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jmlspecs.racwrap.runner.Node |
getName, isCheckable, isCheckInvariant, isCheckPostcondition, isCheckPrecondition, isWrap, setCheckInvariant, setCheckPostcondition, setCheckPrecondition, setName, setWrap |
| Field Detail |
private Hashtable children
| Constructor Detail |
public BranchNode()
| Method Detail |
public void addChild(Node n)
Node
addChild in interface Nodepublic Node getChild(String name)
Node
getChild in interface Nodepublic Enumeration getKeys()
Node
getKeys in interface Nodepublic Enumeration getChildren()
Node
getChildren in interface Nodepublic boolean isEmpty()
Node
isEmpty in interface Nodepublic void removeChild(String name)
Node
removeChild in interface Nodepublic boolean prune()
Node
prune in interface Node
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||