public interface MethodLikeDeclaration extends Declaration, TypeParametrizable, HasAccessLevel
| Modifier and Type | Method and Description |
|---|---|
TypeDeclaration |
declaringType()
The type in which the method is declared.
|
default ParameterDeclaration |
getLastParam()
The last parameter can be variadic and sometimes it needs to be handled in a special way.
|
int |
getNoParams() |
ParameterDeclaration |
getParam(int i) |
default String |
getQualifiedName() |
default String |
getQualifiedSignature() |
default String |
getSignature() |
default boolean |
hasVariadicParameter()
Note that when a method has a variadic parameter it should have an array type.
|
asField, asMethod, asParameter, asType, getName, hasName, isField, isMethod, isParameter, isTypegetTypeParametersaccessLeveldefault String getQualifiedName()
default String getSignature()
default String getQualifiedSignature()
TypeDeclaration declaringType()
int getNoParams()
ParameterDeclaration getParam(int i)
default ParameterDeclaration getLastParam()
default boolean hasVariadicParameter()
Copyright © 2016. All rights reserved.