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()
Type
public java.util.Map<java.lang.String,Instance> getInstances()
Type
getInstances
in interface Type
public Instance getInstance(java.lang.String key)
Type
getInstance
in interface Type
key
- The non-null key for the instanceClassReflectionHelper getHelper()
public java.lang.Object getMetadata()
Type
getMetadata
in interface Type
public void setMetadata(java.lang.Object metadata)
Type
setMetadata
in interface Type
metadata
- The possibly null metadata
to be associated with this typepublic java.lang.String toString()
toString
in class java.lang.Object