alt.jiapi.reflect
Class InstructionFactory
java.lang.Object
alt.jiapi.reflect.InstructionFactory
public class InstructionFactory
- extends java.lang.Object
Class InstructionFactory.
- Author:
- Mika Riekkinen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InstructionFactory
public InstructionFactory()
aastore
public Instruction aastore()
aload
public Instruction aload(int idx)
astore
public Instruction astore(int idx)
cast
public Instruction cast(java.lang.String type)
- Creates a cast.
It will create an InstructionList containing:
checkcast #ref
- Parameters:
type
- type of the cast
- Returns:
- an InstructionList
dload
public Instruction dload(int idx)
dstore
public Instruction dstore(int idx)
dup
public Instruction dup()
dup2
public Instruction dup2()
fload
public Instruction fload(int idx)
fstore
public Instruction fstore(int idx)
getField
public Instruction getField(int modifiers,
java.lang.String className,
java.lang.String fieldName,
java.lang.String fieldType)
getField
public Instruction getField(JiapiField field)
iload
public Instruction iload(int idx)
invoke
public Instruction invoke(int mods,
java.lang.String className,
java.lang.String methodName,
Signature s)
invoke
public Instruction invoke(JiapiMethod jm)
istore
public Instruction istore(int idx)
lload
public Instruction lload(int idx)
lstore
public Instruction lstore(int idx)
newArray
public InstructionList newArray(java.lang.String type,
int size)
newClass
public Instruction newClass(java.lang.String className)
pushConstant
public Instruction pushConstant(float constant)
pushConstant
public Instruction pushConstant(int constant)
pushConstant
public Instruction pushConstant(java.lang.String constant)
pushNull
public Instruction pushNull()
pushThis
public Instruction pushThis()
returnMethod
public Instruction returnMethod(JiapiMethod jm)
setField
public Instruction setField(JiapiField field)
- Sets a field reference to stack.
It will create an InstructionList containing:
putstatic #ref
if the field is static field or:
putfield #ref
if the field is an instance field.
- Parameters:
field
- a JiapiField which will be set
- Returns:
- an InstructionList
Copyright © 2001. Documenation generated August 26 2011.