@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, setVarArgsaddTypeParameter, getTypeParametersgetDeclaringType, setDeprecated, setDocComment, setVisibilitymarkAsReadaddAnnotation, removeAnnotationsetSimpleNameremovegetReturnType, isAbstract, isDefault, isFinal, isNative, isStatic, isStrictFloatingPoint, isSynchronizedgetBody, getExceptions, isVarArgsgetDocComment, getModifiers, getVisibility, isDeprecatedfindAnnotation, getAnnotationsgetCompilationUnit, getSimpleNamevoid setReturnType(TypeReference type)
type - the return type of this method, must be not nulljava.lang.IllegalArgumentException - if the type is nullvoid setStatic(boolean isStatic)
isStatic - whether this method declaration is staticvoid setFinal(boolean isFinal)
isFinal - whether this method declaration is finalvoid setStrictFloatingPoint(boolean isStrictFloatingPoint)
isStrictFloatingPoint - whether this method declaration is strictfpvoid setNative(boolean isNative)
isNative - whether this method declaration is nativevoid setAbstract(boolean isAbstract)
isAbstract - whether this method declaration is abstractvoid setSynchronized(boolean isSynchronized)
isSynchronized - whether this method declaration is synchronizedvoid setDefault(boolean isDefault)
isDefault - whether this method declaration is default