Top Description Fields Constructors Methods
org.apache.groovy.metaclass

public final Class Realm

extends Object
Class Inheritance
Annotations
@Incubating
Imports
org.apache.groovy.internal.metaclass.MetaClassConstant, org.apache.groovy.internal.util.Function, .ReevaluatingReference, .Supplier, org.apache.groovy.lang.annotation.Incubating, java.lang.invoke.SwitchPoint, java.util.Objects

A Realm is the representation of a metaclass layer in a tree of realm objects.

Field Summary

Modifier and TypeField and Description
private final ClassValue<MetaClassConstant<?>>
private final String
private final Realm
private static final Realm

Constructor Summary

AccessConstructor and Description
private
Realm(String name, Realm parent)

Method Summary

Modifier and TypeMethod and Description
public <T> MetaClass<T>
getMetaClass(final Class<T> theClass)

public static Realm
newRealm(String name, Realm parent)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

cvback to summary
private final ClassValue<MetaClassConstant<?>> cv
nameback to summary
private final String name
parentback to summary
private final Realm parent
ROOTback to summary
private static final Realm ROOT

Constructor Detail

Realmback to summary
private Realm(String name, Realm parent)

Method Detail

getMetaClassback to summary
public <T> MetaClass<T> getMetaClass(final Class<T> theClass)
newRealmback to summary
public static Realm newRealm(String name, Realm parent)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override