java.lang.reflect
Interface GenericDeclaration

All Known Implementing Classes:
Class sample code for java.lang.Class definition code for java.lang.Class , Constructor sample code for java.lang.reflect.Constructor definition code for java.lang.reflect.Constructor , Method sample code for java.lang.reflect.Method definition code for java.lang.reflect.Method

public interface GenericDeclaration

A common interface for all entities that declare type variables.

Since:
1.5

Method Summary
 TypeVariable sample code for java.lang.reflect.TypeVariable definition code for java.lang.reflect.TypeVariable <?>[] getTypeParameters sample code for java.lang.reflect.GenericDeclaration.getTypeParameters() definition code for java.lang.reflect.GenericDeclaration.getTypeParameters() ()
          Returns an array of TypeVariable objects that represent the type variables declared by the generic declaration represented by this GenericDeclaration object, in declaration order.
 

Method Detail

getTypeParameters sample code for java.lang.reflect.GenericDeclaration.getTypeParameters() definition code for java.lang.reflect.GenericDeclaration.getTypeParameters()

TypeVariable sample code for java.lang.reflect.TypeVariable definition code for java.lang.reflect.TypeVariable <?>[] getTypeParameters()
Returns an array of TypeVariable objects that represent the type variables declared by the generic declaration represented by this GenericDeclaration object, in declaration order. Returns an array of length 0 if the underlying generic declaration declares no type variables.

Returns:
an array of TypeVariable objects that represent the type variables declared by this generic declaration
Throws:
GenericSignatureFormatError sample code for java.lang.reflect.GenericSignatureFormatError definition code for java.lang.reflect.GenericSignatureFormatError - if the generic signature of this generic declaration does not conform to the format specified in the Java Virtual Machine Specification, 3rd edition