|
JML | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A simple Counter. This class is a demo of behavioral subtyping.
Class Specifications |
instance public invariant 0 <= this.val&&this.val < 100; |
Specifications inherited from class Object |
represents objectState <- org.jmlspecs.lang.JMLDataGroup.IT; public represents _getClass <- \typeof(this); |
Model Field Summary | |
[instance] int |
val
A model of the value of this counter. |
Field Summary | |
static int |
CAPACITY
The capacity of this counter. |
Method Summary | |
void |
inc()
Increment this counter |
int |
value()
Return the value of this counter. |
Model Field Detail |
public int val
Field Detail |
public static final int CAPACITY
Method Detail |
public void inc()
public int value()
|
JML | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |