Package java.lang.reflect
Interface GenericDeclaration
- All Known Implementing Classes:
Class,Constructor,Method
public interface GenericDeclaration
Common interface for language constructs that declare type parameters.
- Since:
- 1.5
-
Method Summary
Modifier and Type Method Description TypeVariable<?>[]getTypeParameters()Returns the declared type parameters in declaration order.
-
Method Details
-
getTypeParameters
TypeVariable<?>[] getTypeParameters()Returns the declared type parameters in declaration order. If there are no type parameters, this method returns a zero length array.- Returns:
- the declared type parameters in declaration order
- Throws:
GenericSignatureFormatError- if the signature is malformed
-