public interface ParameterizedType extends Type
'Set<String>'.| Modifier and Type | Method and Description |
|---|---|
Type[] |
getActualTypeArguments()
Returns an array of the actual type arguments for this type.
|
Type |
getOwnerType()
Returns the parent / owner type, if this type is an inner type, otherwise
null is returned if this is a top-level type. |
Type |
getRawType()
Returns the declaring type of this parameterized type.
|
Type[] getActualTypeArguments()
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 foundMalformedParameterizedTypeException - if one of the type arguments cannot be instantiated for some
reasonType getOwnerType()
null is returned if this is a top-level type.null if this is a top-level typeTypeNotPresentException - if one of the type arguments cannot be foundMalformedParameterizedTypeException - if the owner type cannot be instantiated for some reasonType getRawType()
The raw type of Set<String> field; is Set.