Search in sources :

Example 6 with JVMClass

use of st.gravel.support.compiler.jvm.JVMClass in project gravel by gravel-st.

the class JVMClassCompiler method compileBlock_.

public JVMClass compileBlock_(final BlockInnerClass _aBlockInnerClass) {
    final JVMClass _blockClass;
    _blockClass = this.compileBlockNoAdd_(_aBlockInnerClass);
    _extraClasses.add(_blockClass);
    return _blockClass;
}
Also used : JVMClass(st.gravel.support.compiler.jvm.JVMClass)

Example 7 with JVMClass

use of st.gravel.support.compiler.jvm.JVMClass in project gravel by gravel-st.

the class JVMClassCompiler method createContainerClass.

public JVMClass createContainerClass() {
    final JVMClass _aClass;
    this.compileClinit();
    this.compileInit();
    this.compileClone();
    this.compileAstInit();
    _aClass = JVMClass.factory.type_superType_fields_methods_astConstants_(_ownerType, _superType, _fields.toArray(new JVMField[_fields.size()]), _jvmMethods.toArray(new JVMMethod[_jvmMethods.size()]), _astConstants.toArray(new BlockSendArgument[_astConstants.size()]));
    if (!((_classDescriptionNode == null) || (_classDescriptionNode.findSourceFile() == null))) {
        _aClass.source_(_classDescriptionNode.findSourceFile().name());
    }
    _jvmMethods = null;
    return _aClass;
}
Also used : JVMClass(st.gravel.support.compiler.jvm.JVMClass)

Aggregations

JVMClass (st.gravel.support.compiler.jvm.JVMClass)7 JVMClassCompiler (st.gravel.support.compiler.jvm.JVMClassCompiler)3 BlockInnerClass (st.gravel.support.compiler.jvm.BlockInnerClass)2 JVMVariable (st.gravel.support.compiler.jvm.JVMVariable)2 BlockNode (st.gravel.support.compiler.ast.BlockNode)1 BlockSendArgument (st.gravel.support.compiler.jvm.BlockSendArgument)1 JVMDefinedObjectType (st.gravel.support.compiler.jvm.JVMDefinedObjectType)1 JVMField (st.gravel.support.compiler.jvm.JVMField)1 JVMMethod (st.gravel.support.compiler.jvm.JVMMethod)1 JVMMethodCompiler (st.gravel.support.compiler.jvm.JVMMethodCompiler)1 JVMNonPrimitiveType (st.gravel.support.compiler.jvm.JVMNonPrimitiveType)1