public static native loadSourceClass(sourceFilename as String, typeName as String) as Type throws Exception
Compiles or reuses a cached Klyn source object, loads it into the active JIT and returns its declared entry type.
| Parameter | Description |
|---|---|
sourceFilename | Source compile unit to load. |
typeName | Fully qualified entry type declared by the source graph. |
Reflected entry type.
typeInfo = ClassLoader.loadSourceClass( "plugins/example/src/ExamplePlugin.kn", "ExamplePlugin" )