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
 Class<?> getTypeAtPosition(int index)
          Returns the declared type at a given position.
 

Method Detail

getTypeAtPosition

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 © 2011 VidaGeek.net. All Rights Reserved.