public load(name as String) as Type throws TypeNotFoundException
Method to load a type by its name.
| Parameter | Description |
|---|---|
name | The name of the type to load. |
The loaded Type object.
import klyn.reflection
metadata = TypeLoader().load("klyn.String")
assert metadata == String.type