Modifier and Type | Method and Description |
---|---|
TypeVariable |
Type.asTypeVariable()
Casts this type to a
ParameterizedType and returns it if the kind is
Type.Kind.TYPE_VARIABLE
Throws an exception otherwise. |
TypeVariable |
TypeVariable.asTypeVariable() |
Modifier and Type | Method and Description |
---|---|
List<TypeVariable> |
ClassInfo.typeParameters()
Returns the generic type parameters of this class, if any.
|
List<TypeVariable> |
MethodInfo.typeParameters()
Returns the generic type parameters defined by this method.
|
Copyright © 2018 JBoss by Red Hat. All rights reserved.