|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgnu.jel.OP
gnu.jel.OPload
public class OPload
A tree node, representing loading of a constant.
Field Summary | |
---|---|
Object |
what
Holds an object to be loaded |
Fields inherited from class gnu.jel.OP |
---|
chi, resID, resType, specialTypes, unwrapType |
Constructor Summary | |
---|---|
OPload(Object what)
Creates an OP, loading a constant. |
|
OPload(OP instead,
Object what)
Creates an OP, loading a constant to be put instead of another OP. |
Method Summary | |
---|---|
void |
compile(ClassFile cf)
Called to generate the code implementing this OP. |
Object |
eval()
Called to evaluate this node and all its sub-nodes. |
Methods inherited from class gnu.jel.OP |
---|
isWidening, isWidening, narrow, typeID, typeIDObject, widen |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Object what
Constructor Detail |
---|
public OPload(Object what)
what
- is a constant wrapped into a reflection object. E.g
java.lang.Integer(1) to load 1 of
primitive type int.public OPload(OP instead, Object what)
For private JEL usage in constants folding.
instead
- an OP, which will be raplaced by this OPload.what
- is a constant wrapped into a reflection object. E.g
java.lang.Integer(1) to load 1 of
primitive type int.Method Detail |
---|
public Object eval() throws Exception
OP
Upon success this node is to be replaced by the constant node holding the returned object.
eval
in class OP
Exception
public void compile(ClassFile cf)
OP
compile
in class OP
cf
- class file with a new open method to write the code into.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |