Package java.lang.reflect
Interface GenericDeclaration
-
- All Known Implementing Classes:
Class,Constructor,Method
public interface GenericDeclarationCommon interface for language constructs that declare type parameters.- Since:
- 1.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TypeVariable<?>[]getTypeParameters()Returns the declared type parameters in declaration order.
-
-
-
Method Detail
-
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
-
-