|
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.Leaf
Leaf is an implementation of Node for leaves. As leaves have no children it does not use the hastable implementation of BranchNode. Leaves also contain information about the location of various classes associated with the component the leaf represents.
| Field Summary | |
private Location |
iface
|
private Location |
original
|
Location |
shadow
|
private Location |
statics
|
private Location |
wrapper
|
| Fields inherited from class org.jmlspecs.racwrap.runner.CommonImpl |
|
| Constructor Summary | |
Leaf()
|
|
| Method Summary | |
void |
addChild(Node n)
Will throw an exception, leafs cannot have children. |
Node |
getChild(String name)
alwya returns null. |
Enumeration |
getChildren()
always returns null. |
Location |
getInterface()
Location of the interface.class (X.iface.chx) |
Enumeration |
getKeys()
always returns null. |
Location |
getOriginal()
Location of the original class (X.class) |
Location |
getStatics()
Location of the statics class (X.statics.chx) |
Location |
getWrapper()
Location of the wrapper class (X.wrap.chx) |
boolean |
isEmpty()
always returns true. |
boolean |
prune()
removes extraneous nodes. |
void |
removeChild(String name)
Does nothing. |
void |
setInterface(Location loc)
|
void |
setOriginal(Location loc)
|
void |
setStatics(Location loc)
|
void |
setWrapper(Location loc)
|
| 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 Location original
private Location wrapper
private Location statics
private Location iface
public Location shadow
| Constructor Detail |
public Leaf()
| Method Detail |
public Location getOriginal()
public Location getWrapper()
public Location getStatics()
public Location getInterface()
public void setOriginal(Location loc)
public void setWrapper(Location loc)
public void setStatics(Location loc)
public void setInterface(Location loc)
public void addChild(Node n)
addChild in interface Nodepublic Node getChild(String name)
getChild in interface Nodepublic Enumeration getChildren()
getChildren in interface Nodepublic Enumeration getKeys()
getKeys in interface Nodepublic boolean isEmpty()
isEmpty in interface Nodepublic void removeChild(String name)
removeChild in interface Nodepublic boolean prune()
prune in interface Node
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||