Module org.eclipse.xtend.lib.macro
Interface MutableMethodDeclaration
- All Superinterfaces:
AnnotationTarget,Declaration,Element,ExecutableDeclaration,MemberDeclaration,MethodDeclaration,MutableAnnotationTarget,MutableDeclaration,MutableElement,MutableExecutableDeclaration,MutableMemberDeclaration,MutableNamedElement,MutableTypeParameterDeclarator,NamedElement,TypeParameterDeclarator
@Beta
public interface MutableMethodDeclaration
extends MutableExecutableDeclaration, MethodDeclaration
- Author:
- Sven Efftinge
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetAbstract(boolean isAbstract) voidsetDefault(boolean isDefault) voidsetFinal(boolean isFinal) voidsetNative(boolean isNative) voidsetReturnType(TypeReference type) voidsetStatic(boolean isStatic) voidsetStrictFloatingPoint(boolean isStrictFloatingPoint) voidsetSynchronized(boolean isSynchronized) Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.AnnotationTarget
findAnnotation, getAnnotationsMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.ExecutableDeclaration
getBody, getExceptions, isVarArgsMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MemberDeclaration
getDocComment, getModifiers, getVisibility, isDeprecatedMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MethodDeclaration
getOverriddenOrImplementedMethods, getReturnType, isAbstract, isDefault, isFinal, isNative, isStatic, isStrictFloatingPoint, isSynchronizedMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableAnnotationTarget
addAnnotation, removeAnnotationMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableDeclaration
markAsReadMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableElement
removeMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableExecutableDeclaration
addParameter, addParameter, getParameters, setBody, setBody, setBody, setExceptions, setVarArgsMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableMemberDeclaration
getDeclaringType, setDeprecated, setDocComment, setVisibilityMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableNamedElement
setSimpleNameMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableTypeParameterDeclarator
addTypeParameter, getTypeParametersMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.NamedElement
getCompilationUnit, getSimpleName
-
Method Details
-
setReturnType
- Parameters:
type- the return type of this method, must be notnull- Throws:
IllegalArgumentException- if thetypeisnull
-
setStatic
void setStatic(boolean isStatic) - Parameters:
isStatic- whether this method declaration isstatic
-
setFinal
void setFinal(boolean isFinal) - Parameters:
isFinal- whether this method declaration isfinal
-
setStrictFloatingPoint
void setStrictFloatingPoint(boolean isStrictFloatingPoint) - Parameters:
isStrictFloatingPoint- whether this method declaration isstrictfp
-
setNative
void setNative(boolean isNative) - Parameters:
isNative- whether this method declaration isnative
-
setAbstract
void setAbstract(boolean isAbstract) - Parameters:
isAbstract- whether this method declaration isabstract
-
setSynchronized
void setSynchronized(boolean isSynchronized) - Parameters:
isSynchronized- whether this method declaration issynchronized
-
setDefault
void setDefault(boolean isDefault) - Parameters:
isDefault- whether this method declaration isdefault
-