Package org.apache.bcel.generic

Examples of org.apache.bcel.generic.ALOAD


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

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


  _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

    public int getIteratorIndex() {
  return ITERATOR_INDEX;    // not available
    }

    public void setDomIndex(int domIndex) {
  _aloadDom = new ALOAD(domIndex);
    }
View Full Code Here

  return(STRING_CLASS);
    }


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

           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

  }
  return super.getLocalIndex(name);
    }

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

        argTypes, argNames, methodName,
        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

  return(NODE_ITERATOR);
    }


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

                                           il.getEnd(), null);
        il.append(new ASTORE(pathTemp.getIndex()));

  il.append(new NEW(cpg.addClass(STEP_ITERATOR_CLASS)));
  il.append(DUP);
        il.append(new ALOAD(filterTemp.getIndex()));
        il.append(new ALOAD(pathTemp.getIndex()));

  // Initialize StepIterator with iterators from the stack
  il.append(new INVOKESPECIAL(initSI));

  // This is a special case for the //* path with or without predicates
View Full Code Here

            il.getEnd());
           
            // store the name into a variable first so _name.translate only needs to be called once 
            _name.translate(classGen, methodGen);
            il.append(new ASTORE(nameValue.getIndex()));
            il.append(new ALOAD(nameValue.getIndex()));
           
            // call checkNCName if the name is an AVT
            final int check = cpg.addMethodref(BASIS_LIBRARY_CLASS, "checkNCName",
                                "("
                                +STRING_SIG
                                +")V");                
                                il.append(new INVOKESTATIC(check));
           
            // Save the current handler base on the stack
            il.append(methodGen.loadHandler());
            il.append(DUP);     // first arg to "attributes" call           
           
            // load name value again   
            il.append(new ALOAD(nameValue.getIndex()));           
        } else {   
            // Save the current handler base on the stack
            il.append(methodGen.loadHandler());
            il.append(DUP);     // first arg to "attributes" call
           
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.