get

abstract operator fun get(clazz: Class<*>): ClassReference

Returns the class definition for the given class, or throws if one does not exist.


abstract operator fun get(className: String): ClassReference

Returns the class definition for the given class name, or returns a virtual definition if one does not exist. Virtual definitions won't include all the information (like supertypes, declared functions, etc) that the real class would, they are simply a placeholder for referencing a type from another compilation unit.