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;
}
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;
}
Aggregations