Package org.apache.bcel.generic

Examples of org.apache.bcel.generic.POP


                if (target.equals(next)) {
                    int consumed = ii.consumeStack(methodGen.getConstantPool());
                    if (consumed != 1 && consumed != 2) {
                        throw new IllegalStateException();
                    }
                    head.swapInstruction(consumed == 1 ? new POP() : new POP2());
                }

            }
            if (i instanceof IFNULL || i instanceof IFNONNULL) {
                IfInstruction ii = (IfInstruction) i;
View Full Code Here


        ReferenceType targetType = new ObjectType(declaringClassName);
        Class fieldTypeClass = field.getType();
        Type fieldType = computeType(fieldTypeClass);
        if (isStaticField) {
            // handle static fields -- simply pop rather than checkcast
            instructionList.append(new POP());
            instructionList.append(
                instructionFactory.createGetStatic(declaringClassName,
                    field.getName(), fieldType));
        }
        else {
View Full Code Here

  @SuppressWarnings("unused")
  // Called using reflection
  private Instruction createInstructionPop(Element inst) throws IllegalXMLVMException
  {
    return new POP();
  }
View Full Code Here

TOP

Related Classes of org.apache.bcel.generic.POP

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.