|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjml2b.pog.lemma.GoalOrigin
This class describes the origin of a goal.
Field Summary | |
static byte |
ASSERT
Goal origin value that corresponds to the proof of an assertion. |
static byte |
BLOCK_ENSURES
Goal origin value that corresponds to the proof of an ensures clause of a specified block. |
static byte |
BLOCK_EXSURES
Goal origin value that corresponds to the proof of an exsures clause of a specified block. |
static byte |
BLOCK_REQUIRES
Goal origin value that corresponds to the proof of a requires clause of a specified block. |
static byte |
ENSURES
Goal origin value that corresponds to the proof of an ensures clause. |
static byte |
EXSURES
Goal origin value that corresponds to the proof of an exsures clause. |
static byte |
INSTANCE_CONSTRAINT
|
static byte |
LOOP_EXSURES
Goal origin value that corresponds to the proof of an exsures clause of a loop. |
static byte |
LOOP_INVARIANT_INIT
Goal origin value that corresponds to the proof of the initialization of a loop invariant. |
static byte |
LOOP_INVARIANT_PRESERVE
Goal origin value that corresponds to the proof of the preservation of a loop invariant. |
static byte |
LOOP_VARIANT
Goal origin value that corresponds to the proof of a loop variant. |
static byte |
MEMBER_INVARIANT
Goal origin value that corresponds to the proof of a non static invariant. |
static byte |
MODIFIES
Goal origin value that corresponds to the proof of a modifies clause. |
static byte |
REQUIRES
Goal origin value that corresponds to the proof of a requires clause. |
static byte |
STATIC_CONSTRAINT
|
static byte |
STATIC_INVARIANT
Goal origin value that corresponds to the proof of a static invariant. |
static byte |
SUPER_REQUIRES
Goal origin value that corresponds to the proof of the requires clause of the super method. |
static byte |
WELL_DEFINED
|
Constructor Summary | |
GoalOrigin(byte origin)
Constructs a goal origin with no comment |
|
GoalOrigin(byte origin,
AField f)
Constructs a goal origin for a modifies |
|
GoalOrigin(byte origin,
AMethod m)
Constructs a goal origin for a requires |
|
GoalOrigin(JpoInputStream s)
Constructs a goal origin from a loaded .jpo file |
Method Summary | |
static java.lang.String |
getGoalTypeString(byte type,
java.lang.String comment)
Returns a string describing the goal origin. |
static int |
getMaxGoalType()
Returns the number of goal origin types. |
byte |
getOrigin()
Returns the origin of the goal. |
void |
save(JpoOutputStream s)
Saves the goal origin in a .jpo file |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final byte STATIC_INVARIANT
public static final byte MEMBER_INVARIANT
public static final byte ENSURES
public static final byte REQUIRES
public static final byte LOOP_INVARIANT_INIT
public static final byte EXSURES
public static final byte LOOP_EXSURES
public static final byte MODIFIES
public static final byte SUPER_REQUIRES
public static final byte ASSERT
public static final byte BLOCK_REQUIRES
public static final byte BLOCK_EXSURES
public static final byte BLOCK_ENSURES
public static final byte LOOP_VARIANT
public static final byte WELL_DEFINED
public static final byte STATIC_CONSTRAINT
public static final byte INSTANCE_CONSTRAINT
public static final byte LOOP_INVARIANT_PRESERVE
Constructor Detail |
public GoalOrigin(JpoInputStream s) throws java.io.IOException, LoadException
s
- The input stream corresponding to the jpo filepublic GoalOrigin(byte origin, AField f)
origin
- The originf
- The modified fieldpublic GoalOrigin(byte origin, AMethod m)
origin
- The originm
- The called methodpublic GoalOrigin(byte origin)
origin
- The originMethod Detail |
public static int getMaxGoalType()
MAXGOALTYPE
public static java.lang.String getGoalTypeString(byte type, java.lang.String comment)
type
- The goal origincomment
- The comment associated with the origin
public void save(JpoOutputStream s) throws java.io.IOException
s
- The ouput stream representing the jpo file.
java.io.IOException
public byte getOrigin()
origin
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |