| java.lang.reflect.ParameterizedType |
This interface represents a parameterized type such as
'Set<String>'
.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Returns an array of the actual type arguments for this type.
|
||||||||||
|
|
Returns the parent / owner type, if this type is an inner type, otherwise
null
is returned if this is a top-level type.
|
||||||||||
|
|
Returns the declaring type of this parameterized type.
|
||||||||||
Returns an array of the actual type arguments for this type.
If this type models a non parameterized type nested within a
parameterized type, this method returns a zero length array. The generic
type of the following
field
declaration is an example for a
parameterized type without type arguments.
A<String>.B field;
class A<T> {
class B {
}
}
| TypeNotPresentException | if one of the type arguments cannot be found |
|---|---|
| MalformedParameterizedTypeException | if one of the type arguments cannot be instantiated for some reason |
Returns the parent / owner type, if this type is an inner type, otherwise
null
is returned if this is a top-level type.
null
if this is a top-level type
| TypeNotPresentException | if one of the type arguments cannot be found |
|---|---|
| MalformedParameterizedTypeException | if the owner type cannot be instantiated for some reason |
Returns the declaring type of this parameterized type.
The raw type of
Set
is
Set
.