Package com.sun.org.apache.bcel.internal.generic

Examples of com.sun.org.apache.bcel.internal.generic.ILOAD


  if (methodGen instanceof CompareGenerator) {
      il.append(((CompareGenerator)methodGen).loadCurrentNode());
  }
  else if (methodGen instanceof TestGenerator) {
      il.append(new ILOAD(POSITION_INDEX));
  }
  else {
      final ConstantPoolGen cpg = classGen.getConstantPool();
            final int index = cpg.addInterfaceMethodref(NODE_ITERATOR,
                                                       "getPosition",
View Full Code Here


  // If no current, conversion is a top-level
  if (current < 0) {
      il.append(new PUSH(cpg, DTM.ROOT_NODE))// push root node
  }
  else {
      il.append(new ILOAD(current));
  }
  il.append(methodGen.loadDOM());
  final int stringF = cpg.addMethodref(BASIS_LIBRARY_CLASS,
               "stringF",
               "("
View Full Code Here

      methodGen.addLocalVariable2("ppt",
          Util.getJCRefType(NODE_SIG),
          il.getEnd());
 
  final com.sun.org.apache.bcel.internal.generic.Instruction loadLocal =
      new ILOAD(local.getIndex());
  final com.sun.org.apache.bcel.internal.generic.Instruction storeLocal =
      new ISTORE(local.getIndex());

  if (_right.isWildcard()) {
      il.append(methodGen.loadDOM());
View Full Code Here

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

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

        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);
 
  _iloadCurrent = new ILOAD(CURRENT_INDEX);
  _istoreCurrent = new ISTORE(CURRENT_INDEX);
    }
View Full Code Here

    public Instruction loadCurrentNode() {
  if (_iloadCurrent == null) {
      int idx = getLocalIndex("current");
      if (idx > 0)
    _iloadCurrent = new ILOAD(idx);
      else
    _iloadCurrent = new ICONST(0);
  }
  return _iloadCurrent;
    }
View Full Code Here

       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);
 
  _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

                 BOOLEAN_VALUE,
                 BOOLEAN_VALUE_SIG)));
    }

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

    public Instruction NEG() {
  return InstructionConstants.INEG;
    }

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

          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);
 
  _iloadCurrent = new ILOAD(CURRENT_INDEX);
  _istoreCurrent = new ISTORE(CURRENT_INDEX);
  _aloadDom = new ALOAD(DOM_INDEX);
  _iloadLast = new ILOAD(LAST_INDEX);

  LocalVariableGen iterator =
      addLocalVariable("iterator",
           Util.getJCRefType(Constants.NODE_ITERATOR_SIG),
           null, null);
View Full Code Here

TOP

Related Classes of com.sun.org.apache.bcel.internal.generic.ILOAD

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.