java.lang.reflect
Interface MethodTypeVariable
- All Superinterfaces:
- Type, TypeVariable
- public interface MethodTypeVariable
- extends TypeVariable
The MethodTypeVariable
interface represents a type variable
declared as a formal parameter to a generic method.
Example: A
in Collection<A>
.
Note that implementations of this interface are free to return
distinct objects for the same type variable; the identity of
objects implementing this interface may not be used to test for identity
among the type variables they represent.
Method Summary |
Method |
getDeclaringMethod()
Returns a Method object representing the method
that declared the type variable represented by this
object. |
getDeclaringMethod
public Method getDeclaringMethod()
- Returns a
Method
object representing the method
that declared the type variable represented by this
object.
- Returns:
- The method that declared the type variable