public class InstanceInvokeHelper extends InvokeHelper
prepareHeap(input) for the heap that initializes the method call
and cleanHeap( result ) on heaps that result from the execution of the abstract Method.liveVariableNames| Constructor and Description |
|---|
InstanceInvokeHelper(SceneObject sceneObject,
Value baseValue,
List<Value> argumentValues)
creates a helper class for a specific invoke statement.
|
| Modifier and Type | Method and Description |
|---|---|
String |
baseValueString() |
void |
cleanHeap(ProgramState programState)
remove any intermediates that are still present in the heap.
|
boolean |
needsMaterialization(ProgramState programState) |
void |
prepareHeap(ProgramState programState)
Attaches method parameters and if need be this to the programState for use
in the method.
|
argumentString, getPotentialViolationPoints, setLiveVariableNamesscenepublic InstanceInvokeHelper(SceneObject sceneObject, Value baseValue, List<Value> argumentValues)
baseValue - the value on which the method is called (i.e. "this")argumentValues - the values which form the arguments of the method in the
correct orderingpublic void cleanHeap(ProgramState programState)
cleanHeap in class InvokeHelperprogramState - after execution of method (potentially wiht unused
intermediates and local variables)public void prepareHeap(ProgramState programState)
InvokeHelperExceptions may occur in the evaluation of the arguments or the calling Value cause them.
prepareHeap in class InvokeHelperprogramState - : the programState which will be the input of the called methodpublic boolean needsMaterialization(ProgramState programState)
needsMaterialization in class InvokeHelperpublic String baseValueString()
baseValueString in class InvokeHelperCopyright © 2018. All rights reserved.