@Beta public interface MutableMethodDeclaration extends MutableExecutableDeclaration, MethodDeclaration
Modifier and Type | Method and Description |
---|---|
void |
setAbstract(boolean isAbstract) |
void |
setDefault(boolean isDefault) |
void |
setFinal(boolean isFinal) |
void |
setNative(boolean isNative) |
void |
setReturnType(TypeReference type) |
void |
setStatic(boolean isStatic) |
void |
setStrictFloatingPoint(boolean isStrictFloatingPoint) |
void |
setSynchronized(boolean isSynchronized) |
addParameter, getParameters, setBody, setBody, setBody, setExceptions, setVarArgs
addTypeParameter, getTypeParameters
getDeclaringType, setDeprecated, setDocComment, setVisibility
markAsRead
addAnnotation, removeAnnotation
setSimpleName
remove
getReturnType, isAbstract, isDefault, isFinal, isNative, isStatic, isStrictFloatingPoint, isSynchronized
getBody, getExceptions, isVarArgs
getDocComment, getModifiers, getVisibility, isDeprecated
findAnnotation, getAnnotations
getCompilationUnit, getSimpleName
void setReturnType(TypeReference type)
type
- the return type of this method, must be not null
java.lang.IllegalArgumentException
- if the type
is null
void setStatic(boolean isStatic)
isStatic
- whether this method declaration is static
void setFinal(boolean isFinal)
isFinal
- whether this method declaration is final
void setStrictFloatingPoint(boolean isStrictFloatingPoint)
isStrictFloatingPoint
- whether this method declaration is strictfp
void setNative(boolean isNative)
isNative
- whether this method declaration is native
void setAbstract(boolean isAbstract)
isAbstract
- whether this method declaration is abstract
void setSynchronized(boolean isSynchronized)
isSynchronized
- whether this method declaration is synchronized
void setDefault(boolean isDefault)
isDefault
- whether this method declaration is default