|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjml2b.util.Profiler
jml2b.pog.lemma.Lemma
jml2b.pog.lemma.BehaviourLemma
jml2b.pog.lemma.ExceptionalLemma
This class defines lemmas resulting from the proof of an exceptional method
specification.
ensuresLemmas
is a set of ExsuresLabelledLemma
Field Summary |
Constructor Summary | |
ExceptionalLemma(IJml2bConfiguration config,
Method m,
java.util.Vector fields,
SimpleLemma l,
SimpleLemma sco,
SimpleLemma ico)
Creates a set of exsures labelled lemma corresponding to the cases of a method specification corresponding to exceptional behaviours. |
Method Summary | |
boolean |
catches(AClass c)
Returns whether a exsures lemma catches a given exception. |
java.lang.Object |
clone()
Clones a lemma. |
void |
garbageIdent()
Annotates all the fields that appear in the lemma to declare them in the Atelier B files. |
void |
getFields(java.util.Set fields)
|
void |
getTypesException(java.util.Set s)
Collects all the exception type that are declared in the exsures lemma of this lemma. |
void |
oldParam(java.util.Vector enum)
Adds a old param around the element of the enumeration corresponding to the parameter of the method. |
boolean |
proveObvious(java.util.Vector hyp,
boolean atTheEnd)
Supress in the lemma the obvious goals. |
void |
selectLabel(java.util.Vector labels)
Selects in the labelled lemmas, the cases corresponding to labels. |
void |
sub(Substitution s)
Apply a substitution to the lemma. |
void |
suppressSpecialOld(int token)
Suppress the Called Old expressions. |
Lemma |
throwException(Formula vv,
Formula c)
Returns the lemma to prove to ensure that the thrown of an exception ensures the current lemma. |
Lemma |
throwException(java.lang.String vv,
AClass c)
Returns the lemma to prove to ensure that the thrown of an exception ensures the current lemma. |
Methods inherited from class jml2b.pog.lemma.Lemma |
catchException, nbPo, nbPoChecked, nbPoProved, nbPoProved |
Methods inherited from class jml2b.util.Profiler |
runGC |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExceptionalLemma(IJml2bConfiguration config, Method m, java.util.Vector fields, SimpleLemma l, SimpleLemma sco, SimpleLemma ico) throws Jml2bException, PogException
config
- The current configurationm
- The analyzed methodfields
- The set of modifiable fieldsl
- The current invariantMethod Detail |
public java.lang.Object clone()
Lemma
clone
in class Lemma
public void getTypesException(java.util.Set s)
Lemma
getTypesException
in class Lemma
s
- set of Type
Theorem#getTypesException(Set)
public void getFields(java.util.Set fields)
getFields
in class Lemma
public Lemma throwException(Formula vv, Formula c)
Lemma
throwException
in class Lemma
vv
- Instance of the thrown exception.c
- Formula containing the class of the thrown exception.
public Lemma throwException(java.lang.String vv, AClass c)
Lemma
throwException
in class Lemma
vv
- Instance of the thrown exception.c
- Class of the thrown exception.
public boolean catches(AClass c)
Lemma
catches
in class Lemma
c
- The class of the tested exception
true
if the exsures lemma of the current lemma
contains an exception type that is a super type of the given class,
false
otherwisepublic final boolean proveObvious(java.util.Vector hyp, boolean atTheEnd)
ILemma
true
if the lemma contains only obvious goals,
false
otherwise.Proofs.proveObvious(boolean, boolean)
public final void garbageIdent()
ILemma
Theorem#garbageIdent()
public final void oldParam(java.util.Vector enum)
ILemma
enum
- fields enumerationTheorem#oldParam(Enumeration)
public final void sub(Substitution s)
ILemma
s
- substitution to apply.Proofs.sub(Substitution)
public final void suppressSpecialOld(int token)
ILemma
Theorem#suppressCalledOld()
public final void selectLabel(java.util.Vector labels) throws WrongLabelException
Lemma
selectLabel
in class Lemma
labels
- set of labels that have to be selected
WrongLabelException
- if a behaviour lemma does not contain any
remaining case after the selection.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |