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() |
getTypeParameters
getContainingClass
hasModifier
getAnnotation, getAnnotations, hasAnnotation
getSourceElement
static final JvmMethod[] EMPTY_ARRAY
boolean isConstructor()
true
if this method is a constructorjava.lang.String getName()
getName
in interface JvmMember
getName
in interface JvmNamedElement
Executable.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 JvmElement
accept
in interface JvmMember