de.rwth.dfa.jvm.samples
Class CPAbstraction.GenericFunction
java.lang.Object
|
+--de.rwth.dfa.jvm.samples.CPAbstraction.CPFunction
|
+--de.rwth.dfa.jvm.samples.CPAbstraction.GenericFunction
- All Implemented Interfaces:
- Function
- Enclosing class:
- CPAbstraction
- protected class CPAbstraction.GenericFunction
- extends CPAbstraction.CPFunction
A generic function. It leaves the locals component untouched and simply modifies
the stack. New entries on the stack are CFPComponentLattice.UNKNOWNCOMPONENT
.
Method Summary |
protected void |
apply(java.lang.Object[] locals,
java.util.Stack stack)
Performs a generic operation on the stack only. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CPAbstraction.GenericFunction
public CPAbstraction.GenericFunction(int consume,
int produce)
- Creates a new
GenericFunction
instance.
- Parameters:
consume
- an int
valueproduce
- an int
value
apply
protected void apply(java.lang.Object[] locals,
java.util.Stack stack)
throws FunctionException
- Performs a generic operation on the stack only.
- Overrides:
apply
in class CPAbstraction.CPFunction
- Parameters:
locals
- an Object[]
valuestack
- a Stack
value- Throws:
FunctionException
- if an error occurs
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object