Package anvil.codec

Examples of anvil.codec.ClassRoom


  }
   
 
  public void compileInit(ByteCompiler context)
  {
    ClassRoom clazz = context.getClassRoom();
    Method method = clazz.createMethod("init", "(Lanvil/script/Context;)V", ACC_PUBLIC|ACC_FINAL|ACC_SYNCHRONIZED);
    Code code = method.getCode();
    context.pushCode(code);
    code.addLocal();
    if (_init != null) {
      _init.compile(context);
View Full Code Here


  }
   

  private void compileDependencies(ByteCompiler context)
  {
    ClassRoom clazz = context.getClassRoom();
    Code code = context.getCode();
    ConstantPool pool = code.getPool();
    Field field = clazz.createField("_imports", "[Ljava/lang/String;", Code.ACC_PUBLIC|Code.ACC_STATIC);
    code.iconst(_dependencies.size()*2);
    code.anewarray("java/lang/String");
    Iterator iter = _dependencies.values().iterator();
    for(int i=0; iter.hasNext(); ) {
      Dependency dep = (Dependency)iter.next();
View Full Code Here

TOP

Related Classes of anvil.codec.ClassRoom

Copyright © 2018 www.massapicom. 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.