Examples of ASTORE


Examples of org.apache.bcel.generic.ASTORE

           String method_name, String class_name,
           InstructionList il, ConstantPoolGen cp) {
  super(access_flags, return_type, arg_types, arg_names, method_name,
        class_name, il, cp);
 
  _astoreHandler = new ASTORE(HANDLER_INDEX);
  _aloadHandler  = new ALOAD(HANDLER_INDEX);
    }
View Full Code Here

Examples of org.apache.bcel.generic.ASTORE

    public Instruction loadParameter(int index) {
        return new ALOAD(index + PARAM_START_INDEX);
    }
   
    public Instruction storeParameter(int index) {
        return new ASTORE(index + PARAM_START_INDEX);
    }
View Full Code Here

Examples of org.apache.bcel.generic.ASTORE

         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

Examples of org.apache.bcel.generic.ASTORE

        } else if (type == Type.FLOAT) {
           return new FSTORE(index);
        } else if (type == Type.DOUBLE) {
           return new DSTORE(index);
        } else {
           return new ASTORE(index);
        }
    }
View Full Code Here

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

Examples of org.apache.bcel.generic.ASTORE

 
  _iloadCurrent  = new ILOAD(CURRENT_NODE_INDEX);
  _istoreCurrent = new ISTORE(CURRENT_NODE_INDEX);
  _iloadContext  = new ILOAD(CONTEXT_NODE_INDEX);
  _istoreContext  = new ILOAD(CONTEXT_NODE_INDEX);
  _astoreIterator = new ASTORE(ITERATOR_INDEX);
  _aloadIterator  = new ALOAD(ITERATOR_INDEX);
    }
View Full Code Here

Examples of org.apache.bcel.generic.ASTORE

      // Store new Handler into a local variable
      final LocalVariableGen handler =
    methodGen.addLocalVariable("rt_to_string_handler",
             Util.getJCRefType(STRING_VALUE_HANDLER_SIG),
             null, null);
      handler.setStart(il.append(new ASTORE(handler.getIndex())));

      // Call the method that implements this result tree
      index = cpg.addMethodref(className, _methodName,
             "("+DOM_INTF_SIG+TRANSLET_OUTPUT_SIG+")V");
      il.append(new INVOKEVIRTUAL(index));
View Full Code Here

Examples of org.apache.bcel.generic.ASTORE

      // Store new DOM into a local variable
      newDom = methodGen.addLocalVariable("rt_to_reference_dom",
            Util.getJCRefType(DOM_INTF_SIG),
            null, null);
      il.append(new CHECKCAST(cpg.addClass(DOM_INTF_SIG)));
      newDom.setStart(il.append(new ASTORE(newDom.getIndex())));

      // Overwrite old handler with DOM handler
      index = cpg.addInterfaceMethodref(DOM_INTF,
         "getOutputDomBuilder",
         "()" + TRANSLET_OUTPUT_SIG);

      il.append(new INVOKEINTERFACE(index,1));
      //index = cpg.addMethodref(DOM_IMPL,
    //         "getOutputDomBuilder",
    //         "()" + TRANSLET_OUTPUT_SIG);
      //il.append(new INVOKEVIRTUAL(index));
      il.append(DUP);
      il.append(DUP);

      // Store DOM handler in a local in order to call endDocument()
      domBuilder =
    methodGen.addLocalVariable("rt_to_reference_handler",
             Util.getJCRefType(TRANSLET_OUTPUT_SIG),
             null, null);
      domBuilder.setStart(il.append(new ASTORE(domBuilder.getIndex())));

      // Call startDocument on the new handler
      index = cpg.addInterfaceMethodref(TRANSLET_OUTPUT_INTERFACE,
                "startDocument", "()V");
      il.append(new INVOKEINTERFACE(index, 1));
View Full Code Here

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

Examples of org.apache.bcel.generic.ASTORE

        classGen.getClassName(),
        new InstructionList(),
        classGen.getConstantPool());
 
  _aloadDom       = new ALOAD(DOM_INDEX);
  _astoreDom      = new ASTORE(DOM_INDEX);
  _astoreIterator = new ASTORE(ITERATOR_INDEX);
  _aloadIterator  = new ALOAD(ITERATOR_INDEX);
  _astoreHandler  = new ASTORE(HANDLER_INDEX);
  _aloadHandler   = new ALOAD(HANDLER_INDEX);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.