| Modifier and Type | Method and Description |
|---|---|
MethodInfo |
RecordComponentInfo.accessor()
Returns the accessor method corresponding to this record component.
|
MethodInfo |
MethodParameterInfo.asMethod() |
MethodInfo |
MethodInfo.asMethod() |
MethodInfo |
RecordComponentInfo.asMethod() |
MethodInfo |
TypeTarget.asMethod() |
MethodInfo |
AnnotationTarget.asMethod()
Casts and returns this target as a
MethodInfo if it is of kind METHOD |
MethodInfo |
FieldInfo.asMethod() |
MethodInfo |
ClassInfo.asMethod() |
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)
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.
|
MethodInfo |
ThrowsTypeTarget.enclosingTarget() |
MethodInfo |
MethodParameterTypeTarget.enclosingTarget() |
MethodInfo |
ClassInfo.firstMethod(String name)
Retrieves the "first" occurrence of a method by the given name.
|
MethodInfo |
MethodParameterInfo.method()
Returns the method this parameter belongs to.
|
MethodInfo |
ClassInfo.method(String name,
Type... parameters)
Retrieves a method based on its signature, which includes a method name and an parameter type list.
|
| Modifier and Type | Method and Description |
|---|---|
List<MethodInfo> |
ClassInfo.constructors()
Returns a list of all constructors declared in this class (which have the special name
<init>). |
List<MethodInfo> |
ClassInfo.methods()
Returns a list of all methods declared in this class.
|
List<MethodInfo> |
ClassInfo.unsortedMethods()
Returns a list of all methods declared in this class, in the declaration order.
|
| Modifier and Type | Method and Description |
|---|---|
static MethodParameterInfo |
MethodParameterInfo.create(MethodInfo method,
short parameter)
Constructs a new mock method parameter info
|
static EquivalenceKey.MethodEquivalenceKey |
EquivalenceKey.of(MethodInfo method)
Returns an equivalence key for given method.
|
Copyright © 2018–2022. All rights reserved.