| Modifier and Type | Field and Description |
|---|---|
private ClassReflectionHelper |
helper |
private java.util.Map<java.lang.String,Instance> |
instances |
private java.lang.Object |
metadata |
private java.lang.String |
name |
| Constructor and Description |
|---|
TypeImpl(Type baseType,
ClassReflectionHelper helper) |
| Modifier and Type | Method and Description |
|---|---|
(package private) ClassReflectionHelper |
getHelper() |
Instance |
getInstance(java.lang.String key)
Gets the instance associated with this key, or null if there is none
|
java.util.Map<java.lang.String,Instance> |
getInstances()
Returns a read-only map of the instances that are associated with this type
|
java.lang.Object |
getMetadata()
Gets information about this type.
|
java.lang.String |
getName()
A unique identifier for this type
|
void |
setMetadata(java.lang.Object metadata)
Sets an object containing information about this
type.
|
java.lang.String |
toString() |
private final java.lang.String name
private final java.util.Map<java.lang.String,Instance> instances
private final ClassReflectionHelper helper
private java.lang.Object metadata
TypeImpl(Type baseType, ClassReflectionHelper helper)
public java.lang.String getName()
Typepublic java.util.Map<java.lang.String,Instance> getInstances()
TypegetInstances in interface Typepublic Instance getInstance(java.lang.String key)
TypegetInstance in interface Typekey - The non-null key for the instanceClassReflectionHelper getHelper()
public java.lang.Object getMetadata()
TypegetMetadata in interface Typepublic void setMetadata(java.lang.Object metadata)
TypesetMetadata in interface Typemetadata - The possibly null metadata
to be associated with this typepublic java.lang.String toString()
toString in class java.lang.Object