Package gnu.jel
Class OPcall
java.lang.Object
gnu.jel.OP
gnu.jel.OPcall
A tree node, representing a method call (field/local variable load).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final int[]
protected static final byte[]
Holds method to be executedint
local variable number (in case m=null), number of formal parameters of the method to call otherwise.Fields inherited from class gnu.jel.OP
chi, resID, resType, specialTypes, unwrapType
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class gnu.jel.OP
isWidening, isWidening, narrow, typeID, typeIDObject, widen
-
Field Details
-
m
Holds method to be executed -
nplv
public int nplvlocal variable number (in case m=null), number of formal parameters of the method to call otherwise. -
arrayTypeCodes
protected static final byte[] arrayTypeCodes -
arrayStoreCodes
protected static final int[] arrayStoreCodes
-
-
Constructor Details
-
OPcall
Prepares 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 operandsaEval
- indicates if the method call should be attempted at the compile time- Throws:
CompilationException
-
OPcall
Prepares access to the local variable (formal parameter) of method.- Parameters:
lvarn
- local variable number.type
- local variable type.
-
-
Method Details
-
eval
Attempts to evaluate this function. -
compile
Description copied from class:OP
Called to generate the code implementing this OP.
-