cager.jexpr
Class MyInstructionFactory

java.lang.Object
  extended byorg.apache.bcel.generic.InstructionFactory
      extended bycager.jexpr.MyInstructionFactory
All Implemented Interfaces:
org.apache.bcel.generic.InstructionConstants

public class MyInstructionFactory
extends org.apache.bcel.generic.InstructionFactory
implements org.apache.bcel.generic.InstructionConstants


Nested Class Summary
 
Nested classes inherited from class org.apache.bcel.generic.InstructionConstants
org.apache.bcel.generic.InstructionConstants.Clinit
 
Field Summary
 
Fields inherited from class org.apache.bcel.generic.InstructionFactory
cg, cp
 
Fields inherited from interface org.apache.bcel.generic.InstructionConstants
AALOAD, AASTORE, ACONST_NULL, ALOAD_0, ALOAD_1, ALOAD_2, ARETURN, ARRAYLENGTH, ASTORE_0, ASTORE_1, ASTORE_2, ATHROW, BALOAD, BASTORE, bla, CALOAD, CASTORE, D2F, D2I, D2L, DADD, DALOAD, DASTORE, DCMPG, DCMPL, DCONST_0, DCONST_1, DDIV, DMUL, DNEG, DREM, DRETURN, DSUB, DUP, DUP_X1, DUP_X2, DUP2, DUP2_X1, DUP2_X2, F2D, F2I, F2L, FADD, FALOAD, FASTORE, FCMPG, FCMPL, FCONST_0, FCONST_1, FCONST_2, FDIV, FMUL, FNEG, FREM, FRETURN, FSUB, I2B, I2C, I2D, I2F, I2L, I2S, IADD, IALOAD, IAND, IASTORE, ICONST_0, ICONST_1, ICONST_2, ICONST_3, ICONST_4, ICONST_5, ICONST_M1, IDIV, ILOAD_0, ILOAD_1, ILOAD_2, IMUL, INEG, INSTRUCTIONS, IOR, IREM, IRETURN, ISHL, ISHR, ISTORE_0, ISTORE_1, ISTORE_2, ISUB, IUSHR, IXOR, L2D, L2F, L2I, LADD, LALOAD, LAND, LASTORE, LCMP, LCONST_0, LCONST_1, LDIV, LMUL, LNEG, LOR, LREM, LRETURN, LSHL, LSHR, LSUB, LUSHR, LXOR, MONITORENTER, MONITOREXIT, NOP, POP, POP2, RETURN, SALOAD, SASTORE, SWAP, THIS
 
Constructor Summary
MyInstructionFactory(org.apache.bcel.generic.ClassGen cg)
           
MyInstructionFactory(org.apache.bcel.generic.ClassGen cg, org.apache.bcel.generic.ConstantPoolGen cp)
           
MyInstructionFactory(org.apache.bcel.generic.ConstantPoolGen cp)
           
 
Method Summary
static org.apache.bcel.generic.InstructionList createBinaryOp(Operator op, org.apache.bcel.generic.Type type)
          Create binary operation for cases not handled by the underlying InstructionFactory.
 org.apache.bcel.generic.InstructionList createUnaryOp(Operator op, org.apache.bcel.generic.Type type)
           
 
Methods inherited from class org.apache.bcel.generic.InstructionFactory
createAppend, createArrayLoad, createArrayStore, createBinaryOperation, createBranchInstruction, createCast, createCheckCast, createDup_1, createDup_2, createDup, createFieldAccess, createGetField, createGetStatic, createInvoke, createLoad, createNew, createNew, createNewArray, createNull, createPop, createPrintln, createPutField, createPutStatic, createReturn, createStore, createThis, getClassGen, getConstantPool, setClassGen, setConstantPool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyInstructionFactory

public MyInstructionFactory(org.apache.bcel.generic.ClassGen cg,
                            org.apache.bcel.generic.ConstantPoolGen cp)

MyInstructionFactory

public MyInstructionFactory(org.apache.bcel.generic.ConstantPoolGen cp)

MyInstructionFactory

public MyInstructionFactory(org.apache.bcel.generic.ClassGen cg)
Method Detail

createUnaryOp

public org.apache.bcel.generic.InstructionList createUnaryOp(Operator op,
                                                             org.apache.bcel.generic.Type type)

createBinaryOp

public static org.apache.bcel.generic.InstructionList createBinaryOp(Operator op,
                                                                     org.apache.bcel.generic.Type type)
Create binary operation for cases not handled by the underlying InstructionFactory.

Parameters:
op - operation, such as "&&", "<"