|
|||||||||||
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
This class defines a lemma. A lemma is the goal part of a theorem. A lemma can be:
Field Summary |
Constructor Summary | |
Lemma()
|
Method Summary | |
boolean |
catches(AClass c)
Returns whether a exsures lemma catches a given exception. |
Lemma |
catchException(Type type,
Field catchParam)
Returns the lemma corresponding to the current lemma encapsulated in the fact that it corresponds to a catch of an exception. |
abstract java.lang.Object |
clone()
Clones a lemma. |
abstract 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. |
int |
nbPo()
Returns the number of goals. |
int |
nbPoChecked()
|
int |
nbPoProved()
Returns the number of goals that are in a specified state. |
int |
nbPoProved(java.lang.String prover)
Returns the number of goals that are in a specified state. |
abstract void |
selectLabel(java.util.Vector labels)
Selects in the labelled lemmas, the cases corresponding to labels. |
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.util.Profiler |
runGC |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface jml2b.pog.lemma.ILemma |
garbageIdent, oldParam, proveObvious, sub, suppressSpecialOld |
Constructor Detail |
public Lemma()
Method Detail |
public int nbPo()
InternalError
- when the method is called with a
BehaviourLemma
or a ExsuresLemma
.Proofs.nbPo()
public int nbPoChecked()
public int nbPoProved(java.lang.String prover)
InternalError
- when the method is called with a
BehaviourLemma
or a ExsuresLemma
.Proofs#nbProved(int)
public int nbPoProved()
InternalError
- when the method is called with a
BehaviourLemma
or a ExsuresLemma
.Proofs#nbProved(int)
public void getTypesException(java.util.Set s)
s
- set of Type
InternalError
- when the method is called with a
NormalLemma
or a SimpleLemma
.Theorem#getTypesException(Set)
public abstract void getFields(java.util.Set fields)
public Lemma throwException(Formula vv, Formula c)
vv
- Instance of the thrown exception.c
- Formula containing the class of the thrown exception.
InternalError
- when the method is called with a
NormalLemma
or a SimpleLemma
.public Lemma throwException(java.lang.String vv, AClass c)
vv
- Instance of the thrown exception.c
- Class of the thrown exception.
InternalError
- when the method is called with a
NormalLemma
or a SimpleLemma
.public Lemma catchException(Type type, Field catchParam)
type
- catched exceptioncatchParam
- catched parameter
InternalError
- when the method is called with a
ExsuresLemma
or a ExceptionalLemma
.public abstract java.lang.Object clone()
public abstract void selectLabel(java.util.Vector labels) throws WrongLabelException
labels
- set of labels that have to be selected
WrongLabelException
- if a behaviour lemma does not contain any
remaining case after the selection.public boolean catches(AClass c)
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
otherwise
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |