Package org.apache.bcel.generic

Examples of org.apache.bcel.generic.ASTORE


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


         String method_name, String class_name,
         InstructionList il, ConstantPoolGen cpg) {
  super(access_flags, return_type, arg_types, arg_names, method_name,
        class_name, il, cpg);
 
  _astoreHandler  = new ASTORE(HANDLER_INDEX);
  _aloadHandler   = new ALOAD(HANDLER_INDEX);
  _astoreIterator = new ASTORE(ITERATOR_INDEX);
  _aloadIterator  = new ALOAD(ITERATOR_INDEX);
  _aloadDom       = new ALOAD(DOM_INDEX);
  _astoreDom      = new ASTORE(DOM_INDEX);
 
  final int startElement =
      cpg.addInterfaceMethodref(TRANSLET_OUTPUT_INTERFACE,
              "startElement",
              START_ELEMENT_SIG);
View Full Code Here

         String method_name, String class_name,
         InstructionList il, ConstantPoolGen cpg) {
  super(access_flags, return_type, arg_types, arg_names, method_name,
        class_name, il, cpg);
 
  _astoreHandler  = new ASTORE(HANDLER_INDEX);
  _aloadHandler   = new ALOAD(HANDLER_INDEX);
  _astoreIterator = new ASTORE(ITERATOR_INDEX);
  _aloadIterator  = new ALOAD(ITERATOR_INDEX);
  _aloadDom       = new ALOAD(DOM_INDEX);
  _astoreDom      = new ASTORE(DOM_INDEX);
 
  final int startElement =
      cpg.addInterfaceMethodref(TRANSLET_OUTPUT_INTERFACE,
              "startElement",
              START_ELEMENT_SIG);
View Full Code Here

    public Instruction LOAD(int slot) {
  return new ALOAD(slot);
    }

    public Instruction STORE(int slot) {
  return new ASTORE(slot);
    }
View Full Code Here

              + NODE_SIG
              + TRANSLET_OUTPUT_SIG
              + ")" + STRING_SIG);
  il.append(new INVOKEINTERFACE(cpy, 3));
  il.append(DUP);
  il.append(new ASTORE(name.getIndex()));
  final BranchHandle ifBlock1 = il.append(new IFNULL(null));

  // Get the length of the node name and save for later
  il.append(new ALOAD(name.getIndex()));
  final int lengthMethod = cpg.addMethodref(STRING_CLASS,"length","()I");
View Full Code Here

        new LoadStoreConstraint( varIdx, instructionIdx ) );
    }
    else { // the variable index is included in the instruction
      return finder.search(
        prefix + " " 
        + new ASTORE( varIdx ).toString( false )
        + " " + postfix );
    }
  }
View Full Code Here

            il.append(isInstanceof);
            createThrowException(ClassEnhancer.CN_ClassCastException, "oid is not instanceof " + oidClassName);

            isInstanceof.setTarget(il.append(InstructionConstants.ALOAD_2));
            il.append(factory.createCast(Type.OBJECT, oidType));
            lv_o[0] = il.append(new ASTORE(3));

            if (fields != null)
            {
                for (int i = 0; i < fields.length; i++)
                {
View Full Code Here

                    "java.lang.Class",
                    "getDeclaredField",
                    new ObjectType("java.lang.reflect.Field"),
                    new Type[] { Type.STRING },
                    Constants.INVOKEVIRTUAL));
                il.append(new ASTORE(4));
                il.append(new ALOAD(4));
                il.append(InstructionConstants.ICONST_1);
                il.append(factory.createInvoke(
                    "java.lang.reflect.Field",
                    "setAccessible",
View Full Code Here

                ClassEnhancer.CN_ClassCastException,
                "key class is not " + objectIdClass + " or null");

            oidClassIsNotNull.setTarget(il.append(InstructionConstants.ALOAD_1));
            il.append(factory.createCast(Type.OBJECT, objectIdClassType));
            lv_o[0] = il.append(new ASTORE(objectIdInstance));
            if (fields != null)
            {
                for (int i = 0; i < fields.length; i++)
                {
View Full Code Here

                "java.lang.Class",
                "getDeclaredField",
                new ObjectType("java.lang.reflect.Field"),
                new Type[] { Type.STRING },
                Constants.INVOKEVIRTUAL));
            il.append(new ASTORE(4));
            il.append(new ALOAD(4));
            il.append(InstructionConstants.ICONST_1);
            il.append(factory.createInvoke(
                "java.lang.reflect.Field",
                "setAccessible",
View Full Code Here

TOP

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

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.