Package gnu.jel
Class OPcall
java.lang.Object
gnu.jel.OP
gnu.jel.OPcall
public class OPcall extends OP
A tree node, representing a method call (field/local variable load).
- 
Field SummaryFields Modifier and Type Field Description protected static int[]arrayStoreCodesprotected static byte[]arrayTypeCodesjava.lang.reflect.MembermHolds method to be executedintnplvlocal variable number (in case m=null), number of formal parameters of the method to call otherwise.
- 
Constructor SummaryConstructors Constructor Description OPcall(int lvarn, java.lang.Class<?> type)Prepares access to the local variable (formal parameter) of method.OPcall(java.lang.reflect.Member m, int np, java.util.Stack<OP> paramOPs, boolean aEval)Prepares a new method/field call/get operation to be added to the code.
- 
Method Summary
- 
Field Details- 
mpublic java.lang.reflect.Member mHolds method to be executed
- 
nplvpublic int nplvlocal variable number (in case m=null), number of formal parameters of the method to call otherwise.
- 
arrayTypeCodesprotected static final byte[] arrayTypeCodes
- 
arrayStoreCodesprotected static final int[] arrayStoreCodes
 
- 
- 
Constructor Details- 
OPcallpublic OPcall(java.lang.reflect.Member m, int np, java.util.Stack<OP> paramOPs, boolean aEval) throws CompilationExceptionPrepares a new method/field call/get operation to be added to the code.- Parameters:
- m- method/field to call/get.
- np- number of actual formal parameters (not considering "this")
- paramOPs- stack holding the operands
- aEval- indicates if the method call should be attempted at the compile time
- Throws:
- CompilationException
 
- 
OPcallpublic OPcall(int lvarn, java.lang.Class<?> type)Prepares access to the local variable (formal parameter) of method.- Parameters:
- lvarn- local variable number.
- type- local variable type.
 
 
- 
- 
Method Details