public interface JvmMethod extends JvmTypeParametersOwner
Method,
Constructor,
Executable| Modifier and Type | Field and Description |
|---|---|
static JvmMethod[] |
EMPTY_ARRAY |
| Modifier and Type | Method and Description |
|---|---|
default <T> T |
accept(JvmElementVisitor<T> visitor) |
java.lang.String |
getName() |
JvmParameter [] |
getParameters() |
JvmType |
getReturnType() |
JvmReferenceType [] |
getThrowsTypes() |
default boolean |
hasParameters() |
boolean |
isConstructor() |
boolean |
isVarArgs() |
getTypeParametersgetContainingClasshasModifiergetAnnotation, getAnnotations, hasAnnotationgetSourceElementstatic final JvmMethod[] EMPTY_ARRAY
boolean isConstructor()
true if this method is a constructorjava.lang.String getName()
getName in interface JvmMembergetName in interface JvmNamedElementExecutable.getName()JvmType getReturnType()
null if this JvmMethod represents a constructorMethod.getGenericReturnType(),
Method.getAnnotatedReturnType()default boolean hasParameters()
JvmParameter [] getParameters()
Executable.getParameters()boolean isVarArgs()
Executable.isVarArgs()JvmReferenceType [] getThrowsTypes()
Method.getGenericExceptionTypes(),
Executable.getAnnotatedExceptionTypes()default <T> T accept(JvmElementVisitor<T> visitor)
accept in interface JvmElementaccept in interface JvmMember