public interface Methods
Modifier and Type | Method and Description |
---|---|
static Methods |
byDescription(Method method)
specifies a method by an sample method object
|
static Methods |
byDescription(String className,
String methodName,
String methodDescriptor)
specifies a method by description
|
static Methods |
byName(String name)
specifies a set of methods by name
|
boolean |
matches(Method method)
defines matching with runtime (reflection) methods.
|
boolean |
matches(String className,
String methodName,
String methodDescriptor)
defines matching with compile time method specifications.
|
boolean matches(Method method)
method
- a method specified via reflectionboolean matches(String className, String methodName, String methodDescriptor)
className
- the internal name of the class (e.g. java/lang/String for java.lang.String)methodName
- the name of the method (e.g getBytes)methodDescriptor
- the method descriptor of the method (e.g. (Ljava/nio/Charset;)[B; for byte[] getBytes(Charset charset))static Methods byName(String name)
name
- the name of the method (it may be qualified with the declaring class, but signature spec is not accepted)static Methods byDescription(String className, String methodName, String methodDescriptor)
className
- the internal name of the class (e.g. java/lang/String for java.lang.String)methodName
- the name of the method (e.g getBytes)methodDescriptor
- the method descriptor of the method (e.g. (Ljava/nio/Charset;)[B; for byte[] getBytes(Charset charset))Copyright © 2020. All rights reserved.