public class InstructionFactory extends Object
Constructor and Description |
---|
InstructionFactory() |
public Instruction pushConstant(float constant)
public Instruction pushConstant(int constant)
public Instruction pushConstant(String constant)
public Instruction newClass(String className)
public Instruction cast(String type)
checkcast #ref
type
- type of the castpublic Instruction pushNull()
public Instruction pushThis()
public Instruction returnMethod(JiapiMethod jm)
public Instruction invoke(int mods, String className, String methodName, Signature s)
public Instruction invoke(JiapiMethod jm)
public Instruction getField(int modifiers, String className, String fieldName, String fieldType)
public Instruction getField(JiapiField field)
public Instruction setField(JiapiField field)
putstatic #refif the field is static field or:
putfield #refif the field is an instance field.
field
- a JiapiField which will be setpublic Instruction aload(int idx)
public Instruction iload(int idx)
public Instruction lload(int idx)
public Instruction dload(int idx)
public Instruction fload(int idx)
public Instruction astore(int idx)
public Instruction istore(int idx)
public Instruction lstore(int idx)
public Instruction fstore(int idx)
public Instruction dstore(int idx)
public InstructionList newArray(String type, int size)
Copyright © 2017. All rights reserved.