Search in sources :

Example 1 with ASMClassWriter

use of st.gravel.support.compiler.ASMClassWriter in project gravel by gravel-st.

the class JavaSystemMappingCompilerTools method writeClass_.

@Override
public Class writeClass_(JVMClass jvmClass) {
    JVMDefinedObjectType key = jvmClass.type();
    CompiledClass current = jvmClasses.get(key);
    if (current == null) {
        current = new CompiledClass(jvmClass, new ASMClassWriter(jvmClass).createClass());
        jvmClasses.put(key, current);
    }
    return current.javaClass;
}
Also used : JVMDefinedObjectType(st.gravel.support.compiler.jvm.JVMDefinedObjectType) ASMClassWriter(st.gravel.support.compiler.ASMClassWriter)

Aggregations

ASMClassWriter (st.gravel.support.compiler.ASMClassWriter)1 JVMDefinedObjectType (st.gravel.support.compiler.jvm.JVMDefinedObjectType)1