net.vidageek.mirror.provider
Interface ParameterizedElementReflectionProvider
- All Known Implementing Classes:
- PureJavaParameterizedElementReflectionProvider
public interface ParameterizedElementReflectionProvider
Interface that defines reflection operations related to elements with
generics declarations.
- Author:
- dnfeitosa
|
Method Summary |
java.lang.Class<?> |
getTypeAtPosition(int index)
Returns the declared type at a given position. |
getTypeAtPosition
java.lang.Class<?> getTypeAtPosition(int index)
- Returns the declared type at a given position. The
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.
- Parameters:
index - Position of declared type.
- Returns:
- The class of declaration.
- Throws:
MirrorException - If the element does not have generic type declaration.
MirrorException - If position is invalid.- See Also:
Class.getGenericSuperclass(),
Field.getGenericType(),
ParameterizedType.getActualTypeArguments()
Copyright © 2009 VidaGeek.net. All Rights Reserved.