Returns the resolved type parameters for a given operation. If this operation represents an overridden operation,
the type parameters are the ones that are declared on the initially requested resolved operation.
Consider the following interface and implementation class:
interface I {
<T extends CharSequence> T method()
}
class C implements I {
public <V extends CharSequence> V method() {
return null;
}
}
If the initially requested method was
C#method
and the current handle points to
I#method
, the type parameters will contain
V
instead of
T
.
The list may contain a different number of type parameters than the actual operation.
interface I {
<T> T method()
}
class C implements I {
public String method() {
return null;
}
}
The method
I#method
in the context of class
C
will yield an empty list of resolved type
parameters even though it
#getTypeParameters()
T
.