| Package | Description |
|---|---|
| net.sf.mmm.util.reflect.api |
Provides the API for utilities that help to deal with reflection.
|
| net.sf.mmm.util.reflect.base |
Contains the base-implementations of the
Reflection-Util API. |
| net.sf.mmm.util.reflect.impl |
Contains implementations of the
Reflection-Util API and other internals of this
reflection-util. |
| Modifier and Type | Field and Description |
|---|---|
static GenericType<?>[] |
GenericType.NO_TYPES
An empty
GenericType-array. |
| Modifier and Type | Method and Description |
|---|---|
<T> GenericType<T> |
GenericTypeFactory.createGenericType(Class<T> type)
This method creates the
GenericType representing the given type. |
GenericType<?> |
GenericTypeFactory.createGenericType(Type type)
This method creates the
GenericType representing the given type. |
GenericType<?> |
GenericTypeFactory.createGenericType(Type type,
Class<?> definingType)
This method creates the
GenericType representing the given type in the context of the
given definingType. |
GenericType<?> |
GenericTypeFactory.createGenericType(Type type,
GenericType<?> definingType)
This method creates the
GenericType representing the given type in the context of the
given definingType. |
<E> GenericType<List<E>> |
GenericTypeFactory.createGenericTypeOfList(GenericType<E> elementType) |
<K,V> GenericType<Map<K,V>> |
GenericTypeFactory.createGenericTypeOfMap(GenericType<K> keyType,
GenericType<V> valueType) |
<E> GenericType<Set<E>> |
GenericTypeFactory.createGenericTypeOfSet(GenericType<E> elementType) |
GenericType<?> |
GenericType.getComponentType()
This method gets the component-type of this
GenericType if it represents an array,
Collection or Map. |
GenericType<?> |
GenericType.getKeyType()
This method gets the key-type of this
GenericType if it represents a Map. |
GenericType<?> |
GenericType.getTypeArgument(int index)
This method gets the type-argument at the given
index. |
| Modifier and Type | Method and Description |
|---|---|
GenericType<?> |
GenericTypeFactory.createGenericType(Type type,
GenericType<?> definingType)
This method creates the
GenericType representing the given type in the context of the
given definingType. |
<E> GenericType<List<E>> |
GenericTypeFactory.createGenericTypeOfList(GenericType<E> elementType) |
<K,V> GenericType<Map<K,V>> |
GenericTypeFactory.createGenericTypeOfMap(GenericType<K> keyType,
GenericType<V> valueType) |
<K,V> GenericType<Map<K,V>> |
GenericTypeFactory.createGenericTypeOfMap(GenericType<K> keyType,
GenericType<V> valueType) |
<E> GenericType<Set<E>> |
GenericTypeFactory.createGenericTypeOfSet(GenericType<E> elementType) |
boolean |
GenericType.isAssignableFrom(GenericType<?> subType)
This method determines if this
GenericType is equal to or a super-type of the given subType. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractGenericType<T>
This is the implementation of the
GenericType interface. |
class |
SimpleGenericTypeLimited<T>
This is a very simple implementation of
GenericType that is GWT compatible and therefore limited to
core features. |
| Modifier and Type | Field and Description |
|---|---|
private GenericType<?> |
SimpleGenericTypeLimited.componentType |
private GenericType<?> |
SimpleGenericTypeLimited.keyType |
static GenericType<Object> |
SimpleGenericTypeLimited.TYPE_OBJECT
The
GenericType for Object. |
static GenericType<Void> |
SimpleGenericTypeLimited.TYPE_VOID
The
GenericType for Void. |
| Modifier and Type | Method and Description |
|---|---|
GenericType<T> |
GenericTypeBuilder.build() |
protected abstract GenericType<?> |
AbstractGenericType.create(Type type)
This method creates the
GenericType that encapsulates the given type. |
<T> GenericType<T> |
ReflectionUtilImpl.createGenericType(Class<T> type) |
<T> GenericType<T> |
ReflectionUtilLimitedImpl.createGenericType(Class<T> type) |
GenericType<?> |
ReflectionUtilImpl.createGenericType(Type type) |
GenericType<?> |
ReflectionUtilLimitedImpl.createGenericType(Type type) |
GenericType<?> |
ReflectionUtilImpl.createGenericType(Type type,
Class<?> definingType) |
GenericType<?> |
ReflectionUtilLimitedImpl.createGenericType(Type type,
Class<?> definingType) |
GenericType<?> |
ReflectionUtilImpl.createGenericType(Type type,
GenericType<?> definingType) |
GenericType<?> |
ReflectionUtilLimitedImpl.createGenericType(Type type,
GenericType<?> definingType) |
<E> GenericType<List<E>> |
ReflectionUtilImpl.createGenericTypeOfList(GenericType<E> elementType) |
<E> GenericType<List<E>> |
ReflectionUtilLimitedImpl.createGenericTypeOfList(GenericType<E> elementType) |
<K,V> GenericType<Map<K,V>> |
ReflectionUtilImpl.createGenericTypeOfMap(GenericType<K> keyType,
GenericType<V> valueType) |
<K,V> GenericType<Map<K,V>> |
ReflectionUtilLimitedImpl.createGenericTypeOfMap(GenericType<K> keyType,
GenericType<V> valueType) |
<E> GenericType<Set<E>> |
ReflectionUtilImpl.createGenericTypeOfSet(GenericType<E> elementType) |
<E> GenericType<Set<E>> |
ReflectionUtilLimitedImpl.createGenericTypeOfSet(GenericType<E> elementType) |
GenericType<?> |
SimpleGenericTypeLimited.getComponentType() |
abstract GenericType<?> |
AbstractGenericType.getDefiningType()
This method gets the defining type.
|
GenericType<?> |
SimpleGenericTypeLimited.getKeyType() |
GenericType<?> |
SimpleGenericTypeLimited.getTypeArgument(int index) |
| Modifier and Type | Method and Description |
|---|---|
GenericType<?> |
ReflectionUtilImpl.createGenericType(Type type,
GenericType<?> definingType) |
GenericType<?> |
ReflectionUtilLimitedImpl.createGenericType(Type type,
GenericType<?> definingType) |
<E> GenericType<List<E>> |
ReflectionUtilImpl.createGenericTypeOfList(GenericType<E> elementType) |
<E> GenericType<List<E>> |
ReflectionUtilLimitedImpl.createGenericTypeOfList(GenericType<E> elementType) |
<K,V> GenericType<Map<K,V>> |
ReflectionUtilImpl.createGenericTypeOfMap(GenericType<K> keyType,
GenericType<V> valueType) |
<K,V> GenericType<Map<K,V>> |
ReflectionUtilImpl.createGenericTypeOfMap(GenericType<K> keyType,
GenericType<V> valueType) |
<K,V> GenericType<Map<K,V>> |
ReflectionUtilLimitedImpl.createGenericTypeOfMap(GenericType<K> keyType,
GenericType<V> valueType) |
<K,V> GenericType<Map<K,V>> |
ReflectionUtilLimitedImpl.createGenericTypeOfMap(GenericType<K> keyType,
GenericType<V> valueType) |
<E> GenericType<Set<E>> |
ReflectionUtilImpl.createGenericTypeOfSet(GenericType<E> elementType) |
<E> GenericType<Set<E>> |
ReflectionUtilLimitedImpl.createGenericTypeOfSet(GenericType<E> elementType) |
boolean |
AbstractGenericType.isAssignableFrom(GenericType<?> subType) |
boolean |
SimpleGenericTypeLimited.isAssignableFrom(GenericType<?> subType) |
protected Type |
AbstractGenericType.resolveTypeVariable(TypeVariable<?> typeVariable,
GenericType<?> declaringType)
This method resolves the given
typeVariable in the context of the given declaringType. |
private Type |
AbstractGenericType.resolveTypeVariable(TypeVariable<?> typeVariable,
GenericType<?> declaringType,
Class<?> declaringClass)
This method recursively resolves the given
typeVariable in the context of the given
declaringType. |
<V> GenericTypeBuilder<T> |
GenericTypeBuilder.with(GenericTypeVariable<V> variable,
GenericType<V> type) |
| Modifier and Type | Class and Description |
|---|---|
class |
GenericTypeImpl<T>
This is the implementation of the
GenericType interface. |
class |
RuntimeGenericType<T>
This class extends
GenericTypeImpl with the ability to bind and resolve TypeVariables at runtime. |
class |
SimpleGenericTypeImpl<T>
This is an implementation of the
GenericType interface for a simple Class. |
| Modifier and Type | Field and Description |
|---|---|
private GenericType<?> |
SimpleGenericTypeImpl.componentType |
private GenericType<?> |
GenericTypeImpl.componentType |
private GenericType<?> |
GenericTypeImpl.definingType |
private GenericType<?> |
SimpleGenericTypeImpl.keyType |
private GenericType<?> |
GenericTypeImpl.keyType |
static GenericType<?> |
SimpleGenericTypeImpl.TYPE_INT
The
GenericType for int. |
static GenericType<Object> |
SimpleGenericTypeImpl.TYPE_OBJECT
The
GenericType for Object. |
static GenericType<?> |
SimpleGenericTypeImpl.TYPE_VOID
The
GenericType for void. |
private GenericType<?>[] |
GenericTypeImpl.typesArguments |
| Modifier and Type | Method and Description |
|---|---|
protected GenericType<?> |
SimpleGenericTypeImpl.create(Type genericType) |
protected GenericType<?> |
GenericTypeImpl.create(Type genericType) |
GenericType<?> |
SimpleGenericTypeImpl.getComponentType() |
GenericType<?> |
GenericTypeImpl.getComponentType() |
GenericType<?> |
SimpleGenericTypeImpl.getDefiningType() |
GenericType<?> |
GenericTypeImpl.getDefiningType()
This method gets the defining type.
|
GenericType<?> |
SimpleGenericTypeImpl.getKeyType() |
GenericType<?> |
GenericTypeImpl.getKeyType() |
GenericType<?> |
SimpleGenericTypeImpl.getTypeArgument(int index) |
GenericType<?> |
GenericTypeImpl.getTypeArgument(int index) |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractGenericType<T> |
RuntimeGenericType.create(Type genericType,
GenericType<?> genericDefiningType) |
protected AbstractGenericType<T> |
GenericTypeImpl.create(Type genericType,
GenericType<?> genericDefiningType)
This method creates a new instance of this class.
|
| Constructor and Description |
|---|
GenericTypeImpl(Type valueType,
GenericType<?> definingType)
The constructor.
|
GenericTypeImpl(Type valueType,
GenericType<?> definingType,
boolean init)
The constructor.
|
RuntimeGenericType(Type valueType,
GenericType<?> definingType,
Map<GenericTypeVariable<?>,Type> variable2typeMap)
The constructor.
|
Copyright © 2001–2019 mmm-Team. All rights reserved.