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
- Noimplement:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetAbstract(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, getAnnotations
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.ExecutableDeclaration
getBody, getExceptions, isVarArgs
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MemberDeclaration
getDocComment, getModifiers, getVisibility, isDeprecated
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MethodDeclaration
getOverriddenOrImplementedMethods, getReturnType, isAbstract, isDefault, isFinal, isNative, isStatic, isStrictFloatingPoint, isSynchronized
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableAnnotationTarget
addAnnotation, removeAnnotation
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableDeclaration
markAsRead
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableElement
remove
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableExecutableDeclaration
addParameter, getParameters, setBody, setBody, setBody, setExceptions, setVarArgs
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableMemberDeclaration
getDeclaringType, setDeprecated, setDocComment, setVisibility
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableNamedElement
setSimpleName
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MutableTypeParameterDeclarator
addTypeParameter, getTypeParameters
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.NamedElement
getCompilationUnit, getSimpleName
-
-
-
-
Method Detail
-
setReturnType
void setReturnType(TypeReference type)
- Parameters:
type- the return type of this method, must be notnull- Throws:
java.lang.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
-
-