|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Node is the basis of the tree that will be built. The tree serves as the data structue used to control the enabling/disabling of the checks of components in addition, it will contain locations of classes that can be loaded by the custom classloader.
| 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. |
String |
getName()
Every node has a name that corresponds to the file/directory od the class/package. |
boolean |
isCheckable()
use isCheckable to determine whether this Node represents a package or class can be checked or not. |
boolean |
isCheckInvariant()
When a wrapper calls a method on the wrapped object, this method is used to determine whether to check the invariants first. |
boolean |
isCheckPostcondition()
When a wrapper calls a method on the wrapped object, this method is used to determine whether to check the postconditions after. |
boolean |
isCheckPrecondition()
When a wrapper calls a method on the wrapped object, this method is used to determine whether to check the preconditions first. |
boolean |
isEmpty()
returns true if the node has no children. |
boolean |
isWrap()
When an instance of a class is loaded, isWrap() is used to determine whether to wrap the component or not. |
boolean |
prune()
removes extraneous nodes. |
void |
removeChild(String name)
Does nothing if name is not a child. |
void |
setCheckInvariant(boolean b,
boolean propagate)
|
void |
setCheckPostcondition(boolean b,
boolean propagate)
|
void |
setCheckPrecondition(boolean b,
boolean propagate)
|
void |
setName(String name)
|
void |
setWrap(boolean b,
boolean propagate)
|
| Method Detail |
public String getName()
public void setName(String name)
public boolean isCheckable()
public boolean isWrap()
public boolean isCheckPrecondition()
public boolean isCheckPostcondition()
public boolean isCheckInvariant()
public void setWrap(boolean b,
boolean propagate)
propagate - if set to true will also set the children.
public void setCheckPrecondition(boolean b,
boolean propagate)
propagate - if set to true will also set the children.
public void setCheckPostcondition(boolean b,
boolean propagate)
propagate - if set to true will also set the children.
public void setCheckInvariant(boolean b,
boolean propagate)
propagate - if set to true will also set the children.public void addChild(Node n)
public Node getChild(String name)
public Enumeration getKeys()
public Enumeration getChildren()
public boolean isEmpty()
public void removeChild(String name)
public boolean prune()
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||