Modifier and Type | Method and Description |
---|---|
MethodInfo |
AnnotationTarget.asMethod()
Casts and returns this target as a
MethodInfo if it is of kind METHOD |
MethodInfo |
ClassInfo.asMethod() |
MethodInfo |
TypeTarget.asMethod() |
MethodInfo |
FieldInfo.asMethod() |
MethodInfo |
MethodInfo.asMethod() |
MethodInfo |
MethodParameterInfo.asMethod() |
static MethodInfo |
MethodInfo.create(ClassInfo clazz,
String name,
Type[] args,
Type returnType,
short flags)
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 argument list.
|
Modifier and Type | Method and Description |
---|---|
List<MethodInfo> |
ClassInfo.methods()
Returns a list of all methods declared in this class.
|
Modifier and Type | Method and Description |
---|---|
static MethodParameterInfo |
MethodParameterInfo.create(MethodInfo method,
short parameter)
Constructs a new mock method parameter info
|
Copyright © 2018 JBoss by Red Hat. All rights reserved.