Examples of invokespecial()


Examples of anvil.codec.Code.invokespecial()

      _expression.compile(context, Expression.GET);
      code.invokespecial(pool.addMethodRef(clazz, "<init>", "(Lanvil/core/Any;)V"));
    } else {
      code.anew(clazz);
      code.dup();
      code.invokespecial(pool.addMethodRef(clazz, "<init>", "()V"));
    }
    code.athrow();
 

   
View Full Code Here

Examples of anvil.codec.Code.invokespecial()

    int cge = pool.addClass("anvil/script/ClassGraphEnumeration");
    code.anew(cge);
    code.dup();
    code.getstatic(pool.addFieldRef(clazz.getIndex(), "_class", "Lanvil/script/compiler/CompiledClassType;"));
    code.self();
    code.invokespecial(pool.addMethodRef(cge, "<init>", "(Lanvil/script/ClassType;Lanvil/core/AnyClass;)V"));
    code.areturn();

    method = clazz.createMethod("classOf", "()Lanvil/script/ClassType;", Code.ACC_PUBLIC);
    code = method.getCode();
    code.getstatic(pool.addFieldRef(clazz.getIndex(), "_class", "Lanvil/script/compiler/CompiledClassType;"));
View Full Code Here

Examples of anvil.codec.Code.invokespecial()

    code.anew(clazz);
    code.dup();
    _child.compile(context, CHECK);
    code.invokevirtual(pool.addMethodRef(context.TYPE_ANY, "type",
      "()Lanvil/script/Type;"));
    code.invokespecial(pool.addMethodRef(clazz, "<init>",
      "(Lanvil/script/Type;)V"));
    if (operation == GET_BOOLEAN) {
      context.any2boolean();
    }     
  }
View Full Code Here

Examples of anvil.codec.Code.invokespecial()

    code.anew(anyfunctionclazz);
    code.dup();
    _child.compile(context, operation);
    code.getstatic(pool.addFieldRef(_method.getParent().getTypeRef(pool),
      "m_"+_method.getName()"Lanvil/script/Function;"));
    code.invokespecial(pool.addMethodRef(anyfunctionclazz, "<init>", "(Lanvil/core/Any;Lanvil/script/Function;)V"));
    if (operation == GET_BOOLEAN) {
      context.any2boolean();
    }
  }
View Full Code Here

Examples of anvil.codec.Code.invokespecial()

      code.invokeinterface(pool.addInterfaceMethodRef("anvil/script/Function",
        "execute", "(Lanvil/script/Context;Lanvil/core/Any;[Lanvil/core/Any;)Lanvil/core/Any;"));
    } else {*/
    code.self();
    context.compileArgumentList(_method, getChilds(0));
    code.invokespecial(_method.getTypeRef(pool));
    //}
    if (operation == GET_BOOLEAN) {
      context.any2boolean();
    }
  }
View Full Code Here

Examples of anvil.codec.Code.invokespecial()

        code.dup();
        code.iconst(i);
        getChild(i).compile(context, GET);
        code.aastore();
      }
      code.invokespecial(pool.addMethodRef(clazz, "<init>",
        "([Lanvil/core/Any;)V"));
    } else {
      code.getstatic(pool.addFieldRef(context.TYPE_ANY, "EMPTY_TUPLE",
        "Lanvil/core/AnyTuple;"));
    }
View Full Code Here

Examples of anvil.codec.Code.invokespecial()

    Field clsidfield = clazz.createField("_id", "Ljava/lang/String;", ACC_PUBLIC|ACC_STATIC|ACC_FINAL);
    clsidfield.setConstantValue(pool.addString(clsid.toString()));

    context.pushCode(code);
    code.self();
    code.invokespecial(pool.addMethodRef("anvil/script/compiler/CompiledModule",
      "<init>", "()V"));
    context.popCode();
   
    Method versionmethod = clazz.createMethod("getVersion", "()I", ACC_PUBLIC);
    code = versionmethod.getCode();
View Full Code Here

Examples of anvil.codec.Code.invokespecial()

      code.anew(refclass);
      code.dup();
      code.aload(_context.getFrameIndex());
      code.iconst(_depth);
      code.iconst(_index);
      code.invokespecial(pool.addMethodRef(refclass, "<init>", "(Lanvil/script/StackFrame;II)V"));
      break;

    case GET_BOOLEAN:
      code.aload(_context.getFrameIndex());
      code.iconst(_depth);
View Full Code Here

Examples of com.caucho.bytecode.CodeWriterAttribute.invokespecial()

        code.pushObjectVar(1);
        code.putField(thisClassName, factoryField.getName(),
                      factoryField.getDescriptor());
       
        code.pushObjectVar(0);
        code.invokespecial(superClassName, "<init>", "()V", 1, 0);
        code.addReturn();
        code.close();

        createGetDelegateMethod(jClass);
        createSerialize(jClass);
View Full Code Here

Examples of org.apache.tapestry5.plastic.InstructionBuilder.invokeSpecial()

    {
        InstructionBuilder builder = newBuilder(methodDescription, methodNode);

        builder.loadThis();
        builder.loadArguments();
        builder.invokeSpecial(superClassName, methodDescription);
        builder.returnResult();
    }

    /**
     * Iterates over all non-introduced methods, including the original constructor. For each
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.