Examples of addInterfaceMethodref()


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

                                      Util.getJCRefType(NODE_SORT_FACTORY_SIG),
                                      null, null);

  // Get the current node iterator
  if (nodeSet == null) {  // apply-templates default
      final int children = cpg.addInterfaceMethodref(DOM_INTF,
                 "getAxisIterator",
                 "(I)"+
                 NODE_ITERATOR_SIG);
      il.append(methodGen.loadDOM());
      il.append(new PUSH(cpg, Axis.CHILD));
View Full Code Here

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

  final LocalVariableGen current =
      toplevel.addLocalVariable("current",
              org.apache.bcel.generic.Type.INT,
              null, null);

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

  final int gitr = cpg.addInterfaceMethodref(DOM_INTF,
              "getIterator",
View Full Code Here

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

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

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

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

        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

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

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

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

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

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

  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

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

    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

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

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