|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ParameterizedElementReflectionProvider
Interface that defines reflection operations related to elements with generics declarations.
| Method Summary | |
|---|---|
Class<?> |
getTypeAtPosition(int index)
Returns the declared type at a given position. |
| Method Detail |
|---|
Class<?> getTypeAtPosition(int index)
index argument
is the position where type has been declared, starting by 0. For example:
HashMap field;
String refers to position 0 and Object to position 1.
index - Position of declared type.
MirrorException - If the element does not have generic type declaration.
MirrorException - If position is invalid.Class.getGenericSuperclass(),
Field.getGenericType(),
ParameterizedType.getActualTypeArguments()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||