java.lang.Object
org.kink_lang.kink.internal.compile.classgen.ClassGenerator
Generates a fun class from IR.
-
Constructor Summary
ConstructorDescriptionClassGenerator
(Vm vm, MethodHandles.Lookup packageLookup) Constructs a generator. -
Method Summary
Modifier and TypeMethodDescriptiongenerate
(JavaClassIr jcir) Generates a fun class, initializing static fields.
-
Constructor Details
-
ClassGenerator
Constructs a generator.- Parameters:
vm
- the vm.packageLookup
- the lookup with privilege of org.kink_lang.kink package.
-
-
Method Details
-
generate
Generates a fun class, initializing static fields.- Parameters:
jcir
- the IR of the fun.- Returns:
- the lookup of the generated class.
- Throws:
Exception
- reflection exception.
-