|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.racwrap.runner.CommonImpl
This component implements the common functionality required in both branch and leaf nodes. Like getting and setting to allow precondition (etc) checks, and getting and setting the name. Look at the javadocs for Node for more information.
| Field Summary | |
private boolean |
checkable
|
private boolean |
checkInvariant
|
private boolean |
checkPostcondition
|
private boolean |
checkPrecondition
|
private String |
name
|
private boolean |
wrap
|
| Constructor Summary | |
CommonImpl()
|
|
| Method Summary | |
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 |
isWrap()
When an instance of a class is loaded, isWrap() is used to determine whether to wrap the component or not. |
void |
setCheckable(boolean b)
|
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)
|
String |
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 |
addChild, getChild, getChildren, getKeys, isEmpty, prune, removeChild |
| Field Detail |
private boolean checkable
private boolean wrap
private boolean checkPrecondition
private boolean checkPostcondition
private boolean checkInvariant
private String name
| Constructor Detail |
public CommonImpl()
| Method Detail |
public boolean isCheckable()
Node
isCheckable in interface Nodepublic boolean isWrap()
Node
isWrap in interface Nodepublic boolean isCheckPrecondition()
Node
isCheckPrecondition in interface Nodepublic boolean isCheckPostcondition()
Node
isCheckPostcondition in interface Nodepublic boolean isCheckInvariant()
Node
isCheckInvariant in interface Nodepublic void setCheckable(boolean b)
public void setWrap(boolean b,
boolean propagate)
setWrap in interface Nodepropagate - if set to true will also set the children.
public void setCheckPrecondition(boolean b,
boolean propagate)
setCheckPrecondition in interface Nodepropagate - if set to true will also set the children.
public void setCheckPostcondition(boolean b,
boolean propagate)
setCheckPostcondition in interface Nodepropagate - if set to true will also set the children.
public void setCheckInvariant(boolean b,
boolean propagate)
setCheckInvariant in interface Nodepropagate - if set to true will also set the children.public void setName(String name)
setName in interface Nodepublic String getName()
Node
getName in interface Nodepublic String toString()
toString in class Object
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||