Package org.aspectj.apache.bcel.generic

Examples of org.aspectj.apache.bcel.generic.InstructionCP


  }

  public static Instruction createInstanceof(InstructionFactory fact, ReferenceType t) {
    int cpoolEntry = (t instanceof ArrayType) ? fact.getConstantPool().addArrayClass((ArrayType) t) : fact.getConstantPool()
        .addClass((ObjectType) t);
    return new InstructionCP(Constants.INSTANCEOF, cpoolEntry);
  }
View Full Code Here


        inst = new InstructionByte(Constants.BIPUSH, (byte) value);
      } else if (value <= Short.MAX_VALUE && value >= Short.MIN_VALUE) {
        inst = new InstructionShort(Constants.SIPUSH, (short) value);
      } else {
        int ii = fact.getClassGen().getConstantPool().addInteger(value);
        inst = new InstructionCP(value <= Constants.MAX_BYTE ? Constants.LDC : Constants.LDC_W, ii);
      }
      break;
    }
    return inst;
  }
View Full Code Here

      if (fresh.isConstantPoolInstruction()) {
        // need to reset index to go to new constant pool. This is
        // totally
        // a computation leak... we're testing this LOTS of times. Sigh.
        if (isAcrossClass) {
          InstructionCP cpi = (InstructionCP) fresh;
          cpi.setIndex(recipientCpg.addConstant(donorCpg.getConstant(cpi.getIndex()), donorCpg));
        }
      }
      if (src.getInstruction() == Range.RANGEINSTRUCTION) {
        dest = ret.append(Range.RANGEINSTRUCTION);
      } else if (fresh.isReturnInstruction()) {
View Full Code Here

      if (fresh.isConstantPoolInstruction()) {
        // need to reset index to go to new constant pool. This is
        // totally
        // a computation leak... we're testing this LOTS of times. Sigh.
        if (isAcrossClass) {
          InstructionCP cpi = (InstructionCP) fresh;
          cpi.setIndex(recipientCpg.addConstant(donorCpg.getConstant(cpi.getIndex()), donorCpg));
        }
      }
      if (src.getInstruction() == Range.RANGEINSTRUCTION) {
        dest = ret.append(Range.RANGEINSTRUCTION);
      } else if (fresh.isReturnInstruction()) {
View Full Code Here

  }

  public static Instruction createInstanceof(InstructionFactory fact, ReferenceType t) {
    int cpoolEntry = (t instanceof ArrayType) ? fact.getConstantPool().addArrayClass((ArrayType) t) : fact.getConstantPool()
        .addClass((ObjectType) t);
    return new InstructionCP(Constants.INSTANCEOF, cpoolEntry);
  }
View Full Code Here

        inst = new InstructionByte(Constants.BIPUSH, (byte) value);
      } else if (value <= Short.MAX_VALUE && value >= Short.MIN_VALUE) {
        inst = new InstructionShort(Constants.SIPUSH, (short) value);
      } else {
        int ii = fact.getClassGen().getConstantPool().addInteger(value);
        inst = new InstructionCP(value <= Constants.MAX_BYTE ? Constants.LDC : Constants.LDC_W, ii);
      }
      break;
    }
    return inst;
  }
View Full Code Here

      if (fresh.isConstantPoolInstruction()) {
        // need to reset index to go to new constant pool. This is
        // totally
        // a computation leak... we're testing this LOTS of times. Sigh.
        if (isAcrossClass) {
          InstructionCP cpi = (InstructionCP) fresh;
          cpi.setIndex(recipientCpg.addConstant(donorCpg.getConstant(cpi.getIndex()), donorCpg));
        }
      }
      if (src.getInstruction() == Range.RANGEINSTRUCTION) {
        dest = ret.append(Range.RANGEINSTRUCTION);
      } else if (fresh.isReturnInstruction()) {
View Full Code Here

TOP

Related Classes of org.aspectj.apache.bcel.generic.InstructionCP

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.