Examples of INVOKESTATIC


Examples of org.apache.bcel.generic.INVOKESTATIC

     */
    public void translateTo(ClassGenerator classGen, MethodGenerator methodGen,
          RealType type) {
  final ConstantPoolGen cpg = classGen.getConstantPool();
  final InstructionList il = methodGen.getInstructionList();
  il.append(new INVOKESTATIC(cpg.addMethodref(BASIS_LIBRARY_CLASS,
                STRING_TO_REAL,
                STRING_TO_REAL_SIG)));
    }
View Full Code Here

Examples of org.apache.bcel.generic.INVOKESTATIC

        // Process the rest of the parameters on the stack
        il.append(new PUSH(cpg, getStylesheet().getSystemId()));
        il.append(classGen.loadTranslet());
        il.append(DUP);
        il.append(new GETFIELD(domField));
        il.append(new INVOKESTATIC(docIdx));
    }
View Full Code Here

Examples of org.apache.bcel.generic.INVOKESTATIC

        InstructionHandle outlinedMethodRef;

        if (isStaticMethod) {
            outlinedMethodRef =
                oldMethCopyOutIL.append(
                    new INVOKESTATIC(cpg.addMethodref(
                                          classGen.getClassName(),
                                          outlinedMethodName,
                                          outlinedMethodGen.getSignature())));
        } else {
            oldMethCopyOutIL.append(InstructionConstants.THIS);
View Full Code Here

Examples of org.apache.bcel.generic.INVOKESTATIC

               "("
               + OBJECT_SIG
               + NODE_SIG
               + DOM_INTF_SIG
               + ")" + STRING_SIG);
  il.append(new INVOKESTATIC(stringF));
    }
View Full Code Here

Examples of org.apache.bcel.generic.INVOKESTATIC

  int index = cpg.addMethodref(BASIS_LIBRARY_CLASS, "numberF",
             "("
             + OBJECT_SIG
             + DOM_INTF_SIG
             + ")D");
  il.append(new INVOKESTATIC(index));
    }
View Full Code Here

Examples of org.apache.bcel.generic.INVOKESTATIC

  int index = cpg.addMethodref(BASIS_LIBRARY_CLASS, "booleanF",
             "("
             + OBJECT_SIG
             + ")Z");
  il.append(new INVOKESTATIC(index));
    }
View Full Code Here

Examples of org.apache.bcel.generic.INVOKESTATIC

  int index = cpg.addMethodref(BASIS_LIBRARY_CLASS, "referenceToNodeSet",
             "("
             + OBJECT_SIG
             + ")"
             + 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.INVOKESTATIC

          ResultTreeType type) {
  final ConstantPoolGen cpg = classGen.getConstantPool();
  final InstructionList il = methodGen.getInstructionList();
  int index = cpg.addMethodref(BASIS_LIBRARY_CLASS, "referenceToResultTree",
             "(" + OBJECT_SIG + ")" + DOM_INTF_SIG);
  il.append(new INVOKESTATIC(index));
    }
View Full Code Here

Examples of org.apache.bcel.generic.INVOKESTATIC

       
  if (clazz.getName().equals("java.lang.Object")) {
      il.append(NOP);
  }
  else if (clazz == Double.TYPE) {
      il.append(new INVOKESTATIC(referenceToDouble));
  }
  else if (clazz.getName().equals("java.lang.Double")) {
      il.append(new INVOKESTATIC(referenceToDouble));
            Type.Real.translateTo(classGen, methodGen, Type.Reference);
  }
  else if (clazz == Float.TYPE) {
      il.append(new INVOKESTATIC(referenceToDouble));
            il.append(D2F);
  }
  else if (clazz.getName().equals("java.lang.String")) {
      int index = cpg.addMethodref(BASIS_LIBRARY_CLASS, "referenceToString",
                 "("
                 + OBJECT_SIG
                 + DOM_INTF_SIG
                 + ")"
                 + "Ljava/lang/String;");
      il.append(methodGen.loadDOM());
      il.append(new INVOKESTATIC(index));
  }
  else if (clazz.getName().equals("org.w3c.dom.Node")) {
      int index = cpg.addMethodref(BASIS_LIBRARY_CLASS, "referenceToNode",
                 "("
                 + OBJECT_SIG
                 + DOM_INTF_SIG
                 + ")"
                 + "Lorg/w3c/dom/Node;");
      il.append(methodGen.loadDOM());
      il.append(new INVOKESTATIC(index));
  }
  else if (clazz.getName().equals("org.w3c.dom.NodeList")) {
      int index = cpg.addMethodref(BASIS_LIBRARY_CLASS, "referenceToNodeList",
                 "("
                 + OBJECT_SIG
                 + DOM_INTF_SIG
                 + ")"
                 + "Lorg/w3c/dom/NodeList;");
      il.append(methodGen.loadDOM());
      il.append(new INVOKESTATIC(index));
  }
  else if (clazz.getName().equals("org.apache.xalan.xsltc.DOM")) {
      translateTo(classGen, methodGen, Type.ResultTree);
  }
  else if (clazz == Long.TYPE) {
      il.append(new INVOKESTATIC(referenceToLong));
        }
  else if (clazz == Integer.TYPE) {
      il.append(new INVOKESTATIC(referenceToLong));
            il.append(L2I);
  }
        else if (clazz == Short.TYPE) {
      il.append(new INVOKESTATIC(referenceToLong));
            il.append(L2I);
            il.append(I2S);
        }
        else if (clazz == Byte.TYPE) {
      il.append(new INVOKESTATIC(referenceToLong));
            il.append(L2I);
            il.append(I2B);
        }
        else if (clazz == Character.TYPE) {
      il.append(new INVOKESTATIC(referenceToLong));
            il.append(L2I);
            il.append(I2C);
        }
  else if (clazz == java.lang.Boolean.TYPE) {
      il.append(new INVOKESTATIC(referenceToBoolean));
  }
  else if (clazz.getName().equals("java.lang.Boolean")) {
      il.append(new INVOKESTATIC(referenceToBoolean));
            Type.Boolean.translateTo(classGen, methodGen, Type.Reference);
  }
  else {
      ErrorMsg err = new ErrorMsg(ErrorMsg.DATA_CONVERSION_ERR,
          toString(), clazz.getName());
View Full Code Here

Examples of org.apache.bcel.generic.INVOKESTATIC

     
      final int unsupportedElem = cpg.addMethodref(BASIS_LIBRARY_CLASS, "unsupported_ElementF",
                                                         "(" + STRING_SIG + "Z)V");  
      il.append(new PUSH(cpg, getQName().toString()));
      il.append(new PUSH(cpg, _isExtension));
      il.append(new INVOKESTATIC(unsupportedElem));   
  }
    }
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.