public interface MethodDescriptor extends MethodTrait
| Modifier and Type | Method and Description |
|---|---|
String |
getDeclaredName()
Get the explicitly defined method name.
|
Optional<Object> |
getInstance()
The instance object associated with the method descriptor.
|
getAnnotatedElement, getParameters, getParameterTypes, getReturnType, hasParameterTypes, hasReturnType, invokegetDeclaringClass, getDeclaringClassLoader, getDeclaringClassName, getMember, getNamegetAnnotation, getAnnotations, getMetaAnnotations, hasAnyAnnotations, hasAnyAnnotationsOptional<Object> getInstance()
String getDeclaredName()
Get the explicitly defined method name. Please note that method names are explicitly
defined by annotating the method with Name.
In the event a method name is not explicitly defined the value returned by calling
Method.getName() will be returned. Please note that name
detection only works if your code is compiled with parameter names or debug information
(javac -parameters or javac -g:vars).
Copyright © 2016–2018 Testify Project. All rights reserved.