Examples of invokevirtual()


Examples of anvil.codec.Code.invokevirtual()

      code.iconst(n);
      code.invokespecial(pool.addMethodRef(clazz, "<init>", "(I)V"));
      for(int i=0; i<n; i++) {
        parameters[i].compile(this, Node.GET);
        if (parameters[i].typeOf() == Node.EXPR_SPLICE) {
          code.invokevirtual(splicemethod);
        } else {
          code.invokevirtual(addmethod);
        }
      }
      code.invokevirtual(pool.addMethodRef(clazz, "toArray",
View Full Code Here

Examples of anvil.codec.Code.invokevirtual()

      for(int i=0; i<n; i++) {
        parameters[i].compile(this, Node.GET);
        if (parameters[i].typeOf() == Node.EXPR_SPLICE) {
          code.invokevirtual(splicemethod);
        } else {
          code.invokevirtual(addmethod);
        }
      }
      code.invokevirtual(pool.addMethodRef(clazz, "toArray",
        "()[Lanvil/core/Any;"));
    } else {
View Full Code Here

Examples of anvil.codec.Code.invokevirtual()

          code.invokevirtual(splicemethod);
        } else {
          code.invokevirtual(addmethod);
        }
      }
      code.invokevirtual(pool.addMethodRef(clazz, "toArray",
        "()[Lanvil/core/Any;"));
    } else {
      code.iconst(n);
      code.anewarray(TYPE_ANY);
      for(int i=0; i<n; i++) {
View Full Code Here

Examples of anvil.codec.Code.invokevirtual()


  public void any2boolean()
  {
    Code code = getCode();
    code.invokevirtual(code.getPool().addMethodRef("anvil/core/Any", "toBoolean", "()Z"));
  }


  public void boolean2any()
  {
View Full Code Here

Examples of anvil.codec.Code.invokevirtual()

      Node node = getChild(i);
      if (node.typeOf() == Node.EXPR_MAPPING) {
        MappingNode mapnode = (MappingNode)node;
        mapnode.getLeft().compile(context, GET);
        mapnode.getRight().compile(context, GET);
        code.invokevirtual(append2);
      } else {
        node.compile(context, GET);
        code.invokevirtual(append1);
      }
    }
View Full Code Here

Examples of anvil.codec.Code.invokevirtual()

        mapnode.getLeft().compile(context, GET);
        mapnode.getRight().compile(context, GET);
        code.invokevirtual(append2);
      } else {
        node.compile(context, GET);
        code.invokevirtual(append1);
      }
    }
    if (operation == GET_BOOLEAN) {
      context.any2boolean();
    }
View Full Code Here

Examples of anvil.codec.Code.invokevirtual()

  public void compile(ByteCompiler context, int operation)
  {
    super.compile(context, GET);
    Code code = context.getCode();
    code.invokevirtual(code.getPool().addMethodRef(context.TYPE_OBJECT,
      "equals", "(Ljava/lang/Object;)Z"));
    if (operation != GET_BOOLEAN) {
      context.boolean2any();
    }
  }
View Full Code Here

Examples of anvil.codec.Code.invokevirtual()

          public void compile(ByteCompiler context, int operation)
          {
            code.aload_first();
            code.aload(tmp);
            code.iconst(c);
            code.invokevirtual(nth);
          }
        });
        code.pop();
      }
      code.aload(tmp);
View Full Code Here

Examples of anvil.codec.Code.invokevirtual()

    code.dup();
    code.invokespecial(pool.addMethodRef(clazz, "<init>", "()V"));
    int n = childs();
    for(int i=0; i<n; i++) {
      getChild(i).compile(context, GET);
      code.invokevirtual(appendmethod);
    }
    code.invokevirtual(code.getPool().addMethodRef(context.TYPE_OBJECT,
      "toString", "()Ljava/lang/String;"));
    code.invokestatic(code.getPool().addMethodRef(context.TYPE_ANY,
      "create", "(Ljava/lang/String;)Lanvil/core/Any;"));
View Full Code Here

Examples of anvil.codec.Code.invokevirtual()

    int n = childs();
    for(int i=0; i<n; i++) {
      getChild(i).compile(context, GET);
      code.invokevirtual(appendmethod);
    }
    code.invokevirtual(code.getPool().addMethodRef(context.TYPE_OBJECT,
      "toString", "()Ljava/lang/String;"));
    code.invokestatic(code.getPool().addMethodRef(context.TYPE_ANY,
      "create", "(Ljava/lang/String;)Lanvil/core/Any;"));
    if (operation == GET_BOOLEAN) {
      context.any2boolean();
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.