Package org.apache.bcel.generic

Examples of org.apache.bcel.generic.ConstantPoolGen.addInterfaceMethodref()


  final int setFilter = cpg.addInterfaceMethodref(DOM_INTF,
             "setFilter",
             "(Lorg/apache/xalan/xsltc/StripFilter;)V");

  final int gitr = cpg.addInterfaceMethodref(DOM_INTF,
              "getIterator",
              "()"+NODE_ITERATOR_SIG);
  il.append(toplevel.loadDOM());
  il.append(new INVOKEINTERFACE(gitr, 1));
        il.append(toplevel.nextNode());
View Full Code Here


 
  //store to _dom variable
  il.append(new PUTFIELD(domField));

  // continue with globals initialization
  final int gitr = cpg.addInterfaceMethodref(DOM_INTF,
              "getIterator",
              "()"+NODE_ITERATOR_SIG);
  il.append(transf.loadDOM());
  il.append(new INVOKEINTERFACE(gitr, 1));
        il.append(transf.nextNode());
View Full Code Here

        int buildKeyIndex) {
  final ConstantPoolGen cpg = classGen.getConstantPool();
  final InstructionList il = methodGen.getInstructionList();

  // DOM.getStringValueX(nodeIndex) => String
  final int getNodeValue = cpg.addInterfaceMethodref(DOM_INTF,
                 GET_NODE_VALUE,
                 "(I)"+STRING_SIG);
                
  final int getNodeIdent = cpg.addInterfaceMethodref(DOM_INTF,
                 "getNodeIdent",
View Full Code Here

  // DOM.getStringValueX(nodeIndex) => String
  final int getNodeValue = cpg.addInterfaceMethodref(DOM_INTF,
                 GET_NODE_VALUE,
                 "(I)"+STRING_SIG);
                
  final int getNodeIdent = cpg.addInterfaceMethodref(DOM_INTF,
                 "getNodeIdent",
                 "(I)"+NODE_SIG)
                
  // AbstractTranslet.SetKeyIndexDom(name, Dom) => void
  final int keyDom = cpg.addMethodref(TRANSLET_CLASS,
View Full Code Here

  // AbstractTranslet.SetKeyIndexDom(name, Dom) => void
  final int keyDom = cpg.addMethodref(TRANSLET_CLASS,
           "setKeyIndexDom",
           "("+STRING_SIG+DOM_INTF_SIG+")V");
          
  final int getNodeIdent = cpg.addInterfaceMethodref(DOM_INTF,
                 "getNodeIdent",
                 "(I)"+NODE_SIG);                   

  // DOM.getAxisIterator(root) => NodeIterator
  final int git = cpg.addInterfaceMethodref(DOM_INTF,
View Full Code Here

  final int getNodeIdent = cpg.addInterfaceMethodref(DOM_INTF,
                 "getNodeIdent",
                 "(I)"+NODE_SIG);                   

  // DOM.getAxisIterator(root) => NodeIterator
  final int git = cpg.addInterfaceMethodref(DOM_INTF,
              "getAxisIterator",
              "(I)"+NODE_ITERATOR_SIG);

  il.append(methodGen.loadCurrentNode());
  il.append(methodGen.loadIterator());
View Full Code Here

    public static void compileGetChildren(ClassGenerator classGen,
            MethodGenerator methodGen,
            int node) {
  final ConstantPoolGen cpg = classGen.getConstantPool();
  final InstructionList il = methodGen.getInstructionList();
  final int git = cpg.addInterfaceMethodref(DOM_INTF,
              GET_CHILDREN,
              GET_CHILDREN_SIG);
  il.append(methodGen.loadDOM());
  il.append(new ILOAD(node));
  il.append(new INVOKEINTERFACE(git, 2));
View Full Code Here

                MethodGenerator methodGen,
                InstructionHandle next) {
  final ConstantPoolGen cpg = classGen.getConstantPool();
  final InstructionList il = new InstructionList();
  final String applyTemplatesSig = classGen.getApplyTemplatesSig();
  final int git = cpg.addInterfaceMethodref(DOM_INTF,
              GET_CHILDREN,
              GET_CHILDREN_SIG);
  final int applyTemplates = cpg.addMethodref(getClassName(),
                functionName(),
                applyTemplatesSig);
View Full Code Here

                 MethodGenerator methodGen,
                 InstructionHandle next) {
  final ConstantPoolGen cpg = classGen.getConstantPool();
  final InstructionList il = new InstructionList();

  final int chars = cpg.addInterfaceMethodref(DOM_INTF,
                CHARACTERS,
                CHARACTERS_SIG);
  il.append(methodGen.loadDOM());
  il.append(new ILOAD(_currentIndex));
  il.append(methodGen.loadHandler());
View Full Code Here

      // Return "null" if no test sequences were compiled
      if (!compiled) return(null);
   
      // Append first code in applyTemplates() - get type of current node
      final int getNS = cpg.addInterfaceMethodref(DOM_INTF,
              "getNamespaceType",
              "(I)I");
      il.append(methodGen.loadDOM());
      il.append(new ILOAD(_currentIndex));
      il.append(new INVOKEINTERFACE(getNS, 2));
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.