Examples of addMethodref()


Examples of anvil.codec.ConstantPool.addMethodRef()

      Code code = context.getCode();
      ConstantPool pool = code.getPool();
      code.aload_first();
      code.invokevirtual(pool.addMethodRef(context.TYPE_CONTEXT, "frame",
        "()Lanvil/script/StackFrame;"));
      code.invokevirtual(pool.addMethodRef("anvil/script/StackFrame", "peek",
        "()Lanvil/core/Any;"));
    }

  }
View Full Code Here

Examples of anvil.codec.ConstantPool.addMethodRef()

    Code code = context.getCode();
    ConstantPool pool = code.getPool();
    int clazz = pool.addClass("anvil/core/Array");
    code.anew(clazz);
    code.dup();
    code.invokespecial(pool.addMethodRef(clazz, "<init>", "()V"));
    int append1 = pool.addMethodRef(clazz, "append",
          "(Lanvil/core/Any;)Lanvil/core/Array;");
    int append2 = pool.addMethodRef(clazz, "append",
          "(Lanvil/core/Any;Lanvil/core/Any;)Lanvil/core/Array;");
    int n = childs();
View Full Code Here

Examples of anvil.codec.ConstantPool.addMethodRef()

    ConstantPool pool = code.getPool();
    int clazz = pool.addClass("anvil/core/Array");
    code.anew(clazz);
    code.dup();
    code.invokespecial(pool.addMethodRef(clazz, "<init>", "()V"));
    int append1 = pool.addMethodRef(clazz, "append",
          "(Lanvil/core/Any;)Lanvil/core/Array;");
    int append2 = pool.addMethodRef(clazz, "append",
          "(Lanvil/core/Any;Lanvil/core/Any;)Lanvil/core/Array;");
    int n = childs();
    for(int i=0; i<n; i++) {
View Full Code Here

Examples of anvil.codec.ConstantPool.addMethodRef()

    code.anew(clazz);
    code.dup();
    code.invokespecial(pool.addMethodRef(clazz, "<init>", "()V"));
    int append1 = pool.addMethodRef(clazz, "append",
          "(Lanvil/core/Any;)Lanvil/core/Array;");
    int append2 = pool.addMethodRef(clazz, "append",
          "(Lanvil/core/Any;Lanvil/core/Any;)Lanvil/core/Array;");
    int n = childs();
    for(int i=0; i<n; i++) {
      Node node = getChild(i);
      if (node.typeOf() == Node.EXPR_MAPPING) {
View Full Code Here

Examples of anvil.codec.ConstantPool.addMethodRef()

    ConstantPool pool = code.getPool();
    int clazz = pool.addClass("anvil/core/AnyMap");
    code.anew(clazz);
    code.dup();
    super.compile(context, GET);
    code.invokespecial(pool.addMethodRef(clazz, "<init>",
      "(Lanvil/core/Any;Lanvil/core/Any;)V"));
    if (operation == GET_BOOLEAN) {
      context.any2boolean();
    }
  }
View Full Code Here

Examples of com.caucho.bytecode.ConstantPool.addMethodRef()

      MethodRefConstant methodRef;

      String getterName = "__caucho_get_" + fieldName;

      methodRef = pool.addMethodRef(baseClass.getThisClass(),
                                    getterName,
                                    "()" + fieldRef.getType());

      _getterRef = methodRef.getIndex();
View Full Code Here

Examples of com.claritysys.jvm.classfile.ConstantPool.addMethodRef()

        ConstantPool cp = cf.getConstantPool();

        CfMethod method = cf.addMethod(JVM.ACC_PUBLIC, "<init>", "()V");
        CodeBuilder code = new CodeBuilder(method);
        code.add(JVM.ALOAD_0);
        code.add(JVM.INVOKESPECIAL, cp.addMethodRef(false,
                "java/lang/Object",
                "<init>",
                "()V"));
        code.add(JVM.RETURN);
        code.flush();
View Full Code Here

Examples of com.sun.org.apache.bcel.internal.generic.ConstantPoolGen.addMethodref()

    public void translate(ClassGenerator classGen,
        MethodGenerator methodGen) {
  final ConstantPoolGen cpg = classGen.getConstantPool();
  final InstructionList il = methodGen.getInstructionList();

  final int tst = cpg.addMethodref(BASIS_LIBRARY_CLASS,
           "testLanguage",
           "("+STRING_SIG+DOM_INTF_SIG+"I)Z");
  _lang.translate(classGen,methodGen);
  il.append(methodGen.loadDOM());
  if (classGen instanceof FilterGenerator)
View Full Code Here

Examples of com.sun.org.apache.bcel.internal.generic.ConstantPoolGen.addMethodref()

      // Returns the namespace for a node in the DOM
      final int gns = cpg.addInterfaceMethodref(DOM_INTF,
                  "getNamespaceName",
                  "(I)Ljava/lang/String;");

      final int strcmp = cpg.addMethodref("java/lang/String",
            "compareTo",
            "(Ljava/lang/String;)I");

      // Handle elements="ns:*" type rule
      if (rule.getStrength() == RULE_NAMESPACE) {
View Full Code Here

Examples of com.sun.org.apache.bcel.internal.generic.ConstantPoolGen.addMethodref()

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

  // SortingIterator.SortingIterator(NodeIterator,NodeSortRecordFactory);
  final int init = cpg.addMethodref(SORT_ITERATOR, "<init>",
            "("
            + NODE_ITERATOR_SIG
            + NODE_SORT_FACTORY_SIG
            + ")V")
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.