Package org.apache.bcel.generic

Examples of org.apache.bcel.generic.ALOAD


            il
                    .append(new NEW(
                            cp
                                    .addClass("java.lang.reflect.UndeclaredThrowableException")));
            il.append(InstructionConstants.DUP);
            il.append(new ALOAD(1));
            il.append(new INVOKESPECIAL(cp.addMethodref(
                    "java.lang.reflect.UndeclaredThrowableException", "<init>",
                    "(Ljava/lang/Throwable;)V")));

            il.append(new ATHROW());
View Full Code Here


        case Constants.T_DOUBLE:
            return il.append(new DLOAD(index));

        default:
            return il.append(new ALOAD(index));
        }
    }
View Full Code Here

  return(NODE_ITERATOR);
    }


    public Instruction LOAD(int slot) {
  return new ALOAD(slot);
    }
View Full Code Here

  return(STRING_CLASS);
    }


    public Instruction LOAD(int slot) {
  return new ALOAD(slot);
    }
View Full Code Here

             MethodGenerator methodGen) {
    }


    public Instruction LOAD(int slot) {
  return new ALOAD(slot);
    }
View Full Code Here

        classGen.getClassName(),
        new InstructionList(),
        classGen.getConstantPool());
 
  _astoreHandler  = new ASTORE(HANDLER_INDEX);
  _aloadHandler   = new ALOAD(HANDLER_INDEX);
  _astoreIterator = new ASTORE(ITERATOR_INDEX);
  _aloadIterator  = new ALOAD(ITERATOR_INDEX);
    }
View Full Code Here

            MethodGenerator methodGen, Class clazz) {
  methodGen.getInstructionList().append(NOP);
    }

    public Instruction LOAD(int slot) {
  return new ALOAD(slot);
    }
View Full Code Here

      index = cpg.addMethodref(className, _methodName,
             "("+DOM_INTF_SIG+TRANSLET_OUTPUT_SIG+")V");
      il.append(new INVOKEVIRTUAL(index));
     
      // Restore new handler and call getValue()
      il.append(new ALOAD(handler.getIndex()));
      index = cpg.addMethodref(STRING_VALUE_HANDLER,
             "getValue",
             "()" + STRING_SIG);
      il.append(new INVOKEVIRTUAL(index));
  }
View Full Code Here

             + TRANSLET_OUTPUT_SIG
             +")V");
      il.append(new INVOKEVIRTUAL(index));

      // Call endDocument on the DOM handler
      il.append(new ALOAD(domBuilder.getIndex()));
      index = cpg.addInterfaceMethodref(TRANSLET_OUTPUT_INTERFACE,
                "endDocument", "()V");
      il.append(new INVOKEINTERFACE(index, 1));

      // Push the new DOM on the stack
      il.append(new ALOAD(newDom.getIndex()));
  }
    }
View Full Code Here

    public String getClassName() {
  return(DOM_INTF);
    }

    public Instruction LOAD(int slot) {
  return new ALOAD(slot);
    }
View Full Code Here

TOP

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

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.