Package st.gravel.support.compiler.jvm

Examples of st.gravel.support.compiler.jvm.JVMMethodCompiler$JVMMethodCompiler_Factory


  }

  public JVMClass compileBlock() {
    final JVMMethod _m;
    final JVMField[] _fields;
    final JVMMethodCompiler _methodCompiler;
    final JVMClass _jvmClass;
    _fields = st.gravel.support.jvm.ArrayExtensions.collect_(_block.copiedVariables(), ((st.gravel.support.jvm.Block1<JVMField, JVMVariable>) (new st.gravel.support.jvm.Block1<JVMField, JVMVariable>() {

      @Override
      public JVMField value_(final JVMVariable _each) {
        return (JVMField) _each.asField_isStatic_(_block.ownerType(), false);
      }
    })));
    _methodCompiler = JVMMethodCompiler.factory.parent_(_parent);
    _methodCompiler.isStatic_(false);
    _m = _methodCompiler.buildBlock_copiedVariables_blockType_(_block.blockNode(), _fields, _block.ownerType());
    _jvmClass = JVMClass.factory.type_superType_fields_methods_astConstants_(_block.ownerType(), this.superType(), _fields, st.gravel.support.jvm.ArrayFactory.with_with_(_m, this.createInit()), new BlockSendArgument[] {});
    if (_block.blockNode().sourcePosition() != null) {
      _jvmClass.source_(_block.blockNode().sourcePosition().sourceFile().name());
    }
    return _jvmClass;
View Full Code Here


    this.compileBlocks();
    return this.createContainerClass();
  }

  public JVMClassCompiler compileMethod_(final MethodNode _aMethodNode) {
    JVMMethodCompiler _temp1 = JVMMethodCompiler.factory.parent_(this);
    _temp1.visit_(_aMethodNode);
    _jvmMethods.add(_temp1.buildMethod());
    return this;
  }
View Full Code Here

TOP

Related Classes of st.gravel.support.compiler.jvm.JVMMethodCompiler$JVMMethodCompiler_Factory

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.