GenericDeclaration | java.lang.reflect |
This interface is implemented by the classes that represent program elements that can be made generic: java.lang.Class as well as Method and Constructor. It provides access to the type variables declared by the generic type, method, or constructor. getTypeParameters( ) never returns null: if there are no declared type variables, it returns a zero-length array.public interface GenericDeclaration { // Public Instance Methods TypeVariable<?>[ ] getTypeParameters ( ); }
Implementations Class, Constructor, MethodReturned By TypeVariable.getGenericDeclaration( ) |