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> |
MethodInfo.typeParameters()
Returns the generic type parameters defined by this method.
|
List<TypeVariable> |
ClassInfo.typeParameters()
Returns the generic type parameters of this class, if any.
|
Modifier and Type | Method and Description |
---|---|
static MethodInfo |
MethodInfo.create(ClassInfo clazz,
String name,
String[] parameterNames,
Type[] args,
Type returnType,
short flags,
TypeVariable[] typeParameters,
Type[] exceptions)
Construct a new mock Method instance.
|
static MethodInfo |
MethodInfo.create(ClassInfo clazz,
String name,
Type[] args,
Type returnType,
short flags,
TypeVariable[] typeParameters,
Type[] exceptions)
Construct a new mock Method instance.
|
Copyright © 2020 JBoss by Red Hat. All rights reserved.