Top Methods
org.eclipse.xtend.lib.macro.declaration

public Interface MutableMethodDeclaration

extends MutableExecutableDeclaration, MethodDeclaration
Annotations
@Beta
Imports
com.google.common.annotations.Beta

Author
Sven Efftinge

Method Summary

Modifier and TypeMethod and Description
public void
setAbstract(boolean
whether this method declaration is abstract
isAbstract
)

public void
setDefault(boolean
whether this method declaration is default
isDefault
)

public void
setFinal(boolean
whether this method declaration is final
isFinal
)

public void
setNative(boolean
whether this method declaration is native
isNative
)

public void
setReturnType(TypeReference
the return type of this method, must be not null
type
)

public void
setStatic(boolean
whether this method declaration is static
isStatic
)

public void
setStrictFloatingPoint(boolean
whether this method declaration is strictfp
isStrictFloatingPoint
)

public void
setSynchronized(boolean
whether this method declaration is synchronized
isSynchronized
)

Inherited from org.eclipse.xtend.lib.macro.declaration.MethodDeclaration:
getOverriddenOrImplementedMethodsgetReturnTypeisAbstractisDefaultisFinalisNativeisStaticisStrictFloatingPointisSynchronized
Inherited from org.eclipse.xtend.lib.macro.declaration.MutableExecutableDeclaration:
addParameteraddParametergetParameterssetBodysetBodysetBodysetExceptionssetVarArgs

Method Detail

setAbstractback to summary
public void setAbstract(boolean isAbstract)
Parameters
isAbstract:boolean

whether this method declaration is abstract

setDefaultback to summary
public void setDefault(boolean isDefault)
Parameters
isDefault:boolean

whether this method declaration is default

setFinalback to summary
public void setFinal(boolean isFinal)
Parameters
isFinal:boolean

whether this method declaration is final

setNativeback to summary
public void setNative(boolean isNative)
Parameters
isNative:boolean

whether this method declaration is native

setReturnTypeback to summary
public void setReturnType(TypeReference type)
Parameters
type:TypeReference

the return type of this method, must be not null

Exceptions
IllegalArgumentException:
if the type is null
setStaticback to summary
public void setStatic(boolean isStatic)
Parameters
isStatic:boolean

whether this method declaration is static

setStrictFloatingPointback to summary
public void setStrictFloatingPoint(boolean isStrictFloatingPoint)
Parameters
isStrictFloatingPoint:boolean

whether this method declaration is strictfp

setSynchronizedback to summary
public void setSynchronized(boolean isSynchronized)
Parameters
isSynchronized:boolean

whether this method declaration is synchronized