Examples of INVOKEINTERFACE


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

      // Handle elements="ns:*" type rule
      if (rule.getStrength() == RULE_NAMESPACE) {
    il.append(new ALOAD(paramDom));
    il.append(new ILOAD(paramCurrent));
    il.append(new INVOKEINTERFACE(gns,2));
    il.append(new PUSH(cpg, rule.getNamespace()));
    il.append(new INVOKEVIRTUAL(strcmp));
    il.append(ICONST_0);

    if (rule.getAction() == STRIP_SPACE) {
View Full Code Here

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

                 "getAxisIterator",
                 "(I)"+
                 NODE_ITERATOR_SIG);
      il.append(methodGen.loadDOM());
      il.append(new PUSH(cpg, Axis.CHILD));
      il.append(new INVOKEINTERFACE(children, 2));
  }
  else {
      nodeSet.translate(classGen, methodGen);
  }
View Full Code Here

Examples of jbe.micro.InvokeInterface

    Execute.perform(new GetField());
    Execute.perform(new GetStatic());
    Execute.perform(new Array());
    Execute.perform(new InvokeVirtual());
    Execute.perform(new InvokeStatic());
    Execute.perform(new InvokeInterface());
  }
View Full Code Here

Examples of org.allspice.bytecode.instructions.InvokeInterface

    else {
      if (fd.stub.isPrivate || fd.isSuper || mref.name.equals("<init>")) {
        createInstanceCall(context,decl,mref.name,args,mref.parameters,new InvokeSpecial(mref),l) ;
      }
      else if (fd.stub.cl.getStub().isInterface) {
        createInstanceCall(context,decl,mref.name,args,mref.parameters,new InvokeInterface(mref),l) ;
      }
      else {
        createInstanceCall(context,decl,mref.name,args,mref.parameters,new InvokeVirtual(mref),l) ;
      }
    }
View Full Code Here

Examples of org.apache.bcel.generic.INVOKEINTERFACE

  if (className.equals("org.w3c.dom.Node")) {
      int index = cpg.addInterfaceMethodref(DOM_INTF,
              MAKE_NODE,
              MAKE_NODE_SIG2);
      il.append(new INVOKEINTERFACE(index, 2));
  }
        else if (className.equals("org.w3c.dom.NodeList") ||
                 className.equals("java.lang.Object")) {
      int index = cpg.addInterfaceMethodref(DOM_INTF,
              MAKE_NODE_LIST,
              MAKE_NODE_LIST_SIG2);
      il.append(new INVOKEINTERFACE(index, 2));
  }
        else if (className.equals("java.lang.String")) {
            int next = cpg.addInterfaceMethodref(NODE_ITERATOR,
                                                 "next", "()I");
            int index = cpg.addInterfaceMethodref(DOM_INTF,
                                                 GET_NODE_VALUE,
                                                 "(I)"+STRING_SIG);

            // Get next node from the iterator
            il.append(new INVOKEINTERFACE(next, 1));
            // Get the node's string value (from the DOM)
            il.append(new INVOKEINTERFACE(index, 2));
                      
        }
  else if (className.equals("int")) {
      int next = cpg.addInterfaceMethodref(NODE_ITERATOR,
              "next", "()I");
      int index = cpg.addInterfaceMethodref(DOM_INTF,
              GET_NODE_VALUE,
              "(I)"+STRING_SIG);
      int str = cpg.addMethodref(BASIS_LIBRARY_CLASS,
          STRING_TO_INT,
          STRING_TO_INT_SIG);

      // Get next node from the iterator
      il.append(new INVOKEINTERFACE(next, 1));
      // Get the node's string value (from the DOM)
      il.append(new INVOKEINTERFACE(index, 2));
      // Create a new Integer object from the string value
      il.append(new INVOKESTATIC(str));
  }
  else {
      ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,
View Full Code Here

Examples of org.apache.bcel.generic.INVOKEINTERFACE

     * This function is defined to avoid code repetition.
     */
    private void getFirstNode(ClassGenerator classGen, MethodGenerator methodGen) {
  final ConstantPoolGen cpg = classGen.getConstantPool();
  final InstructionList il = methodGen.getInstructionList();
  il.append(new INVOKEINTERFACE(cpg.addInterfaceMethodref(NODE_ITERATOR,
                NEXT,
                NEXT_SIG), 1));
    }
View Full Code Here

Examples of org.apache.bcel.generic.INVOKEINTERFACE

             + NODE_ITERATOR_SIG);
  il.append(new INVOKESTATIC(index));
 
  // Reset this iterator
  index = cpg.addInterfaceMethodref(NODE_ITERATOR, RESET, RESET_SIG);
  il.append(new INVOKEINTERFACE(index, 1));
    }
View Full Code Here

Examples of org.apache.bcel.generic.INVOKEINTERFACE

 
  if (_methodName == null) {
      int index = cpg.addInterfaceMethodref(DOM_INTF,
              "getStringValue",
              "()"+STRING_SIG);
      il.append(new INVOKEINTERFACE(index, 1));
  }
  else {
      final String className = classGen.getClassName();
      final int current = methodGen.getLocalIndex("current");
     
View Full Code Here

Examples of org.apache.bcel.generic.INVOKEINTERFACE

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

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

      // 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

Examples of org.apache.bcel.generic.INVOKEINTERFACE

  // Pass the type mappings to the DOM adapter
  final int mapping = cpg.addInterfaceMethodref(DOM_INTF,
                  "setupMapping",
                  "(["+STRING_SIG+
                  "["+STRING_SIG+")V");
  il.append(new INVOKEINTERFACE(mapping, 3));
  il.append(DUP);

  // Create an iterator for the root node of the DOM adapter
  final int iter = cpg.addInterfaceMethodref(DOM_INTF,
               "getIterator",
               "()"+NODE_ITERATOR_SIG);
  il.append(new INVOKEINTERFACE(iter, 1))
    }
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.