de.rwth.dfa.jvm.samples
Class  CPAbstraction.PushLocalFunction
java.lang.Object
  |
  +--de.rwth.dfa.jvm.samples.CPAbstraction.CPFunction
        |
        +--de.rwth.dfa.jvm.samples.CPAbstraction.PushLocalFunction
- All Implemented Interfaces: 
- Function
- Enclosing class: 
- CPAbstraction
- protected class CPAbstraction.PushLocalFunction- extends CPAbstraction.CPFunction
Pushes the content of a local variable slot onto the stack.
 
| Field Summary | 
| protected  int | indexThe index of the local variable to push.
 | 
 
 
 
| Method Summary | 
| protected  void | apply(java.lang.Object[] locals,
      java.util.Stack stack)Pushes the content of the local variable slot of this function after pushing
 as many
 CFPComponentLattice.UNKNOWNCOMPONENTas necessary to fulfill
 correct stack behavior. | 
|  java.lang.String | toString()
 | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
index
protected int index
- The index of the local variable to push.
CPAbstraction.PushLocalFunction
public CPAbstraction.PushLocalFunction(int index,
                                       int consume,
                                       int produce)
- Creates a new PushLocalFunctioninstance.
- 
- Parameters:
- index- an- intvalue
- consume- an- intvalue
- produce- an- intvalue
 
apply
protected void apply(java.lang.Object[] locals,
                     java.util.Stack stack)
              throws FunctionException
- Pushes the content of the local variable slot of this function after pushing
 as many CFPComponentLattice.UNKNOWNCOMPONENTas necessary to fulfill
 correct stack behavior.
- 
- Overrides:
- applyin class- CPAbstraction.CPFunction
 
- 
- Parameters:
- locals- an- Object[]value
- stack- a- Stackvalue
- Throws:
- FunctionException- if an error occurs
 
toString
public java.lang.String toString()
- 
- Overrides:
- toStringin class- java.lang.Object