|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.enhancer.classfile.InsnUtils
public class InsnUtils
InsnUtils provides a set of static methods which serve to select vm instructions during code annotation.
Field Summary |
---|
Constructor Summary | |
---|---|
InsnUtils()
|
Method Summary | |
---|---|
static Insn |
aLoad(int i,
ConstantPool pool)
Return the best instruction for loading a reference from a local variable slot |
static Insn |
aStore(int i,
ConstantPool pool)
Return the best instruction for storing a reference to a local variable slot |
static Insn |
constantValue(ConstValue value)
Return the best instruction for loading a value from the constant pool onto the stack - hopefully use short form |
static Insn |
dLoad(int i,
ConstantPool pool)
Return the best instruction for loading a double from a local variable slot |
static Insn |
doubleConstant(double d,
ConstantPool pool)
Return the best instruction for loading the specified double constant onto the stack. |
static Insn |
dStore(int i,
ConstantPool pool)
Return the best instruction for storing a double to a local variable slot |
static Insn |
fLoad(int i,
ConstantPool pool)
Return the best instruction for loading a float from a local variable slot |
static Insn |
floatConstant(float f,
ConstantPool pool)
Return the best instruction for loading the specified float constant onto the stack. |
static Insn |
fStore(int i,
ConstantPool pool)
Return the best instruction for storing a float to a local variable slot |
static Insn |
iLoad(int i,
ConstantPool pool)
Return the best instruction for loading an int from a local variable slot |
static Insn |
integerConstant(int i,
ConstantPool pool)
Return the best instruction for loading the specified integer constant onto the stack - hopefully use short form |
static Insn |
iStore(int i,
ConstantPool pool)
Return the best instruction for storing an int to a local variable slot |
static Insn |
lLoad(int i,
ConstantPool pool)
Return the best instruction for loading a long from a local variable slot |
static Insn |
load(int tp,
int i,
ConstantPool pool)
Return the best instruction for loading a value from a local variable slot |
static Insn |
longConstant(long l,
ConstantPool pool)
Return the best instruction for loading the specified long constant onto the stack. |
static Insn |
lStore(int i,
ConstantPool pool)
Return the best instruction for storing a long to a local variable slot |
static Insn |
store(int tp,
int i,
ConstantPool pool)
Return the best instruction for storing a value to a local variable slot |
static Insn |
stringConstant(java.lang.String s,
ConstantPool pool)
Return the best instruction for loading the specified String constant onto the stack - hopefully use short form |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InsnUtils()
Method Detail |
---|
public static Insn constantValue(ConstValue value)
public static Insn stringConstant(java.lang.String s, ConstantPool pool)
public static Insn integerConstant(int i, ConstantPool pool)
public static Insn longConstant(long l, ConstantPool pool)
public static Insn floatConstant(float f, ConstantPool pool)
public static Insn doubleConstant(double d, ConstantPool pool)
public static Insn aStore(int i, ConstantPool pool)
public static Insn iStore(int i, ConstantPool pool)
public static Insn fStore(int i, ConstantPool pool)
public static Insn lStore(int i, ConstantPool pool)
public static Insn dStore(int i, ConstantPool pool)
public static Insn aLoad(int i, ConstantPool pool)
public static Insn iLoad(int i, ConstantPool pool)
public static Insn fLoad(int i, ConstantPool pool)
public static Insn lLoad(int i, ConstantPool pool)
public static Insn dLoad(int i, ConstantPool pool)
public static Insn load(int tp, int i, ConstantPool pool)
public static Insn store(int tp, int i, ConstantPool pool)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |