klyn.reflection.TypeLoader.load
method
public load(name as String) as Type throws TypeNotFoundException
Description

Method to load a type by its name.

Parameters
ParameterDescription
nameThe name of the type to load.
Returns

The loaded Type object.

Throws
  • TypeNotFoundException If the type is not found.
Example
import klyn.reflection

metadata = TypeLoader().load("klyn.String")
assert metadata == String.type