public class OPload extends OP
| Modifier and Type | Field and Description | 
|---|---|
| java.lang.Object | whatHolds an object to be loaded | 
chi, resID, resType, specialTypes, unwrapType| Constructor and Description | 
|---|
| OPload(java.lang.Object what)Creates an OP, loading a constant. | 
| OPload(OP instead,
      java.lang.Object what)Creates an OP, loading a constant to be put instead of another OP. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | compile(ClassFile cf)Called to generate the code implementing this OP. | 
| java.lang.Object | eval()Called to evaluate this node and all its sub-nodes. | 
isWidening, isWidening, narrow, typeID, typeIDObject, widenpublic OPload(java.lang.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, java.lang.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.public java.lang.Object eval()
                      throws java.lang.Exception
OPUpon success this node is to be replaced by the constant node holding the returned object.
Copyright © 1998-2016 Konstantin L. Metlov All Rights Reserved.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the JEL manual.