Examples of invokestatic()


Examples of anvil.codec.Code.invokestatic()

    //Method _m_imports = clazz.createMethod("_imports", "()V", ACC_PUBLIC|ACC_STATIC);
   
    code = clazz.getStatic().getCode();
    //code.println("MODULE-START:"+classsig);
    code.invokestatic(_m_const.getIndex());
    code.invokestatic(_m_text.getIndex());
    code.invokestatic(_m_switch.getIndex());
    code.invokestatic(_m_symbols.getIndex());
    ((anvil.script.statements.ModuleStatement)getModule()).compile(this);
    //code.println("MODULE-END:"+classsig);
    code.vreturn();
View Full Code Here

Examples of anvil.codec.Code.invokestatic()

   
    code = clazz.getStatic().getCode();
    //code.println("MODULE-START:"+classsig);
    code.invokestatic(_m_const.getIndex());
    code.invokestatic(_m_text.getIndex());
    code.invokestatic(_m_switch.getIndex());
    code.invokestatic(_m_symbols.getIndex());
    ((anvil.script.statements.ModuleStatement)getModule()).compile(this);
    //code.println("MODULE-END:"+classsig);
    code.vreturn();
   
View Full Code Here

Examples of anvil.codec.Code.invokestatic()

    code = clazz.getStatic().getCode();
    //code.println("MODULE-START:"+classsig);
    code.invokestatic(_m_const.getIndex());
    code.invokestatic(_m_text.getIndex());
    code.invokestatic(_m_switch.getIndex());
    code.invokestatic(_m_symbols.getIndex());
    ((anvil.script.statements.ModuleStatement)getModule()).compile(this);
    //code.println("MODULE-END:"+classsig);
    code.vreturn();
   
    /* constants */
 
View Full Code Here

Examples of anvil.codec.Code.invokestatic()

      Enumeration e = _texts.keys();
      for(int i=0; e.hasMoreElements(); i++) {
        code.dup();
        code.iconst(i);
        code.astring((String)e.nextElement());
        code.invokestatic(getBytes);
        code.aastore();
      }
      code.putstatic(_f_text);
    }
    code.vreturn();
View Full Code Here

Examples of anvil.codec.Code.invokestatic()

      while(e.hasMoreElements()) {
        int index = ((Integer)e.nextKey()).intValue();
        String name = (String)e.nextElement();
        Field field = clazz.createField("r_"+name, "I", ACC_PUBLIC|ACC_STATIC|ACC_FINAL);
        code.astring(name);
        code.invokestatic(register);
        code.putstatic(field);
      }
    }
    code.vreturn();
   
View Full Code Here

Examples of anvil.codec.Code.invokestatic()


  public void boolean2any()
  {
    Code code = getCode();
    code.invokestatic(code.getPool().addMethodRef(
      "anvil/script/compiler/CompiledModule", "b2a", "(Z)Lanvil/core/Any;"));
  }


  public void accessInstance(ClassType context, ClassType target)
View Full Code Here

Examples of anvil.codec.Code.invokestatic()

 
  public void compile(ByteCompiler context, int operation)
  {
    super.compile(context, GET);
    Code code = context.getCode();
    code.invokestatic(code.getPool().addMethodRef(context.TYPE_ANY_OP, "sub",
      "(Lanvil/core/Any;Lanvil/core/Any;)Lanvil/core/Any;"));
    if (operation == GET_BOOLEAN) {
      context.any2boolean();
    }
  }
View Full Code Here

Examples of anvil.codec.Code.invokestatic()

  public void compile(ByteCompiler context, int operation)
  {
    super.compile(context, GET);
    Code code = context.getCode();
    code.invokestatic(code.getPool().addMethodRef(context.TYPE_ANY_OP, "mul",
      "(Lanvil/core/Any;Lanvil/core/Any;)Lanvil/core/Any;"));
    if (operation == GET_BOOLEAN) {
      context.any2boolean();
    }
  }
View Full Code Here

Examples of anvil.codec.Code.invokestatic()

      public void compile(ByteCompiler context, int operation)
      {
        left.compile(context, GET);
        right.compile(context, GET);
        Code code = context.getCode();
        code.invokestatic(code.getPool().addMethodRef(context.TYPE_ANY_OP,
          getAssignmentMethod(), "(Lanvil/core/Any;Lanvil/core/Any;)Lanvil/core/Any;"));
      }
    });
  }
 
View Full Code Here

Examples of anvil.codec.Code.invokestatic()

      right.compile(context, GET);
      AttributeNode attr = (AttributeNode)left;
      attr.getChild().compile(context, GET);
      code.astring(attr.getAttribute());
      code.aload_first();
      code.invokestatic(code.getPool().addMethodRef(context.TYPE_CONTEXT, getAssignmentMethod(),
        "(Lanvil/core/Any;Lanvil/core/Any;Ljava/lang/String;Lanvil/script/Context;)Lanvil/core/Any;"));
      break;
 
    case Node.EXPR_REFERENCE:
      right.compile(context, GET);
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.