| Modifier and Type | Method and Description |
|---|---|
TypeVariable |
TypeVariable.asTypeVariable() |
TypeVariable |
Type.asTypeVariable()
Casts this type to a
TypeVariable and returns it if the kind is
Type.Kind.TYPE_VARIABLE. |
TypeVariable |
TypeVariableReference.follow()
Returns the type variable referred to by this reference.
|
| 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[] parameterTypes,
Type returnType,
short flags,
TypeVariable[] typeParameters,
Type[] exceptions)
Construct a new mock Method instance.
|
static MethodInfo |
MethodInfo.create(ClassInfo clazz,
String name,
Type[] parameterTypes,
Type returnType,
short flags,
TypeVariable[] typeParameters,
Type[] exceptions)
Construct a new mock Method instance.
|
Copyright © 2018–2022. All rights reserved.