alt.jiapi.reflect
Class InstructionFactory

java.lang.Object
  extended by alt.jiapi.reflect.InstructionFactory

public class InstructionFactory
extends java.lang.Object

Class InstructionFactory.

Author:
Mika Riekkinen

Constructor Summary
InstructionFactory()
           
 
Method Summary
 Instruction aastore()
           
 Instruction aload(int idx)
           
 Instruction astore(int idx)
           
 Instruction cast(java.lang.String type)
          Creates a cast.
 Instruction dload(int idx)
           
 Instruction dstore(int idx)
           
 Instruction dup()
           
 Instruction dup2()
           
 Instruction fload(int idx)
           
 Instruction fstore(int idx)
           
 Instruction getField(int modifiers, java.lang.String className, java.lang.String fieldName, java.lang.String fieldType)
           
 Instruction getField(JiapiField field)
           
 Instruction iload(int idx)
           
 Instruction invoke(int mods, java.lang.String className, java.lang.String methodName, Signature s)
           
 Instruction invoke(JiapiMethod jm)
           
 Instruction istore(int idx)
           
 Instruction lload(int idx)
           
 Instruction lstore(int idx)
           
 InstructionList newArray(java.lang.String type, int size)
           
 Instruction newClass(java.lang.String className)
           
 Instruction pushConstant(float constant)
           
 Instruction pushConstant(int constant)
           
 Instruction pushConstant(java.lang.String constant)
           
 Instruction pushNull()
           
 Instruction pushThis()
           
 Instruction returnMethod(JiapiMethod jm)
           
 Instruction setField(JiapiField field)
          Sets a field reference to stack.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstructionFactory

public InstructionFactory()
Method Detail

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.