org.apache.harmony.lang.reflect.repository |
|
Java Source File Name | Type | Comment |
ParameterizedTypeRepository.java | Class | (This all should be considered as an experimental approach which could be changed on
java.lang.ref using)
ParameterizedTypeRepository provides the keeping iformation about a parameterized types.
For now the following approach for keeping is realized.
A concreet PT instance is included into repository if somebody do the *first* request for
the reflect's method like Class.getGenericSuperclass()->Class.ReflectionData.initGenericSuperclass()
(Field.getGenericType()->Field.FieldData.initGenericType()
Method.getGenericReturnType()->Class.MethodData.initGenericReturnType()
...
Constructor.getGenericParameterTypes()->Class.ConstructorData.initGenericParameterTypes()
...
). |
TypeVariableRepository.java | Class | (This all should be considered as an experimental approach which could be changed on
java.lang.ref using)
TypeVariableRepository keeps iformation about type variables.
For now the following approach for keeping is realized.
A concreet TV instance is included into repository if somebody do the *first* request for
the reflect's method like Method.getGenericReturnType()->Class.MethodData.initGenericReturnType()
(Field.getGenericType()->Field.FieldData.initGenericType()
Method.getGenericExceptionTypes()->Class.MethodData.initGenericExceptionTypes()
...
Constructor.getGenericParameterTypes()->Class.ConstructorData.initGenericParameterTypes()
...
). |
WildcardTypeRepository.java | Class | (This all should be considered as an experimental approach which could be changed on
java.lang.ref using)
WildcardTypeRepository keeps iformation about wild cards.
For now the following approach for keeping is realized.
A concreet WC instance is included into repository if somebody do the *first* request for
the reflect's method like Class.getGenericSuperclass()->Class.ReflectionData.initGenericSuperclass()
(Field.getGenericType()->Field.FieldData.initGenericType()
Method.getGenericReturnType()->Class.MethodData.initGenericReturnType()
...
Constructor.getGenericParameterTypes()->Class.ConstructorData.initGenericParameterTypes()
...
) and there are ParameterizedTypes with wild cards.
The wild card creation and allocation within repository is located within AuxiliaryCreator.createTypeArg method.
If the identical WC is accessed anyhow then the pointer from repository is used. |