|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjml2b.util.Profiler
jml2b.pog.lemma.ExceptionalBehaviourStack
This class describes a stack of proof obligations associated to exceptional behaviours.
Field Summary |
Constructor Summary | |
ExceptionalBehaviourStack(ExceptionalProofs eb)
Constructs a stack with one element. |
Method Summary | |
ExceptionalBehaviourStack |
addAll(ExceptionalBehaviourStack ebs)
Concats two stacks. |
java.lang.Object |
clone()
Clones the stack |
ExceptionalBehaviourStack |
finallyOnExceptionalBehaviour(IJml2bConfiguration config,
Statement body,
Proofs finishOnReturn,
LabeledProofsVector finishOnBreakLab,
LabeledProofsVector finishOnContinueLab,
ExceptionalBehaviourStack exceptionalBehaviour)
Calculate the ExceptionalProofs stack resulting from the application of the body on the current stack (used to proceed a finally). |
static ExceptionalBehaviourStack |
getFalse(IJml2bConfiguration config)
|
ExceptionalBehaviourStack |
pop(int i)
Pop elements from the stack |
ExceptionalBehaviourStack |
push(ExceptionalProofs eb)
Push an element on top of the stack |
int |
size()
Returns the size of the stack |
Proofs |
throwException(Formula vv,
Formula c)
Returns the proof to prove to ensure that the thrown of an exception ensures the current proof. |
Proofs |
throwException(IJml2bConfiguration config,
AClass c)
Calculates the proof obligation ensuring that the thrown of a runtime exception ensures the current proof. |
Proofs |
throwException(java.lang.String vv,
AClass c)
Returns the proof obligation ensuring that the thrown of an exception ensures the current proof. |
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 ExceptionalBehaviourStack(ExceptionalProofs eb)
eb
- The element on top of the stackMethod Detail |
public static ExceptionalBehaviourStack getFalse(IJml2bConfiguration config) throws Jml2bException, PogException
Jml2bException
PogException
public java.lang.Object clone()
public int size()
public ExceptionalBehaviourStack push(ExceptionalProofs eb)
eb
- The proof to push
public ExceptionalBehaviourStack pop(int i)
i
- The number of elements to pop
public ExceptionalBehaviourStack addAll(ExceptionalBehaviourStack ebs)
ebs
- The stack to concat to the current one
public Proofs throwException(Formula vv, Formula c)
vv
- Instance of the thrown exception.c
- Formula containing the class of the thrown exception.public Proofs throwException(java.lang.String vv, AClass c)
vv
- The instance of the thrown exception.c
- The class of the thrown exception.public Proofs throwException(IJml2bConfiguration config, AClass c) throws Jml2bException, PogException
config
- The current configurationc
- The class of the thrown exception.
PogException
Jml2bException
public ExceptionalBehaviourStack finallyOnExceptionalBehaviour(IJml2bConfiguration config, Statement body, Proofs finishOnReturn, LabeledProofsVector finishOnBreakLab, LabeledProofsVector finishOnContinueLab, ExceptionalBehaviourStack exceptionalBehaviour) throws Jml2bException, PogException
config
- The current configurationbody
- The finally bodyfinishOnReturn
- theorems to ensure if the statement terminates
abruptly on a return
finishOnBreakLab
- labelled theorems to ensure if the statement
terminates abruptly on a break
finishOnContinueLab
- labelled theorems to ensure if the statement
terminates abruptly on a continue
exceptionalBehaviour
- exceptional theorems to ensure if the
statement terminates abruply on an exception
PogException
Jml2bException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |