@Incubating
public final class Realm
extends Object
A Realm is the representation of a metaclass layer in a tree of realm objects.
| Type Params | Return Type | Name and description |
|---|---|---|
<T> |
public MetaClass<T> |
getMetaClass(Class<T> theClass)Returns a MetaClass whose constant is cached on this realm's ClassValue and re-read when that constant's SwitchPoint is invalidated. |
|
public static Realm |
newRealm(String name, Realm parent)Creates a realm with the given name. |
|
public String |
toString() |
Returns a MetaClass whose constant is cached on this realm's ClassValue and re-read when that constant's SwitchPoint is invalidated.
T - the class the meta-class describestheClass - the class to look uptheClass Creates a realm with the given name. A null parent is replaced by the root realm.
A null name fails immediately.
name - realm name; must not be nullparent - parent realm, or null to attach the new realm under the root