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

public Interface MutableAnnotationTypeElementDeclaration

extends MutableMemberDeclaration, AnnotationTypeElementDeclaration
Annotations
@Beta
Imports
org.eclipse.xtend.lib.macro.expression.Expression, org.eclipse.xtend2.lib.StringConcatenationClient, com.google.common.annotations.Beta

Represents an annotation property.
Author
Sven Efftinge

Method Summary

Modifier and TypeMethod and Description
public void
setDefaultValueExpression(Expression
the expression to set as the default value of this annotation property
value
)

Setting an expression will alter the scope of it accordingly.

public void
setDefaultValueExpression(CompilationStrategy
the compilation strategy, must not be null
compilationStrategy
)

Sets the given CompilationStrategy as the default value.

public void
setDefaultValueExpression(StringConcatenationClient
the compilation strategy, must not be null
compilationTemplate
)

Sets the given StringConcatenationClient as the default value.

public void
setType(TypeReference
the type of this annotation property, must be not null
type
)

Inherited from org.eclipse.xtend.lib.macro.declaration.AnnotationTypeElementDeclaration:
getDefaultValuegetDefaultValueExpressiongetType
Inherited from org.eclipse.xtend.lib.macro.declaration.MutableMemberDeclaration:
getDeclaringTypesetDeprecatedsetDocCommentsetVisibility

Method Detail

setDefaultValueExpressionback to summary
public void setDefaultValueExpression(Expression value)

Setting an expression will alter the scope of it accordingly. Each expression can only be assigned to one element, if this MutableExecutableDeclaration has already set another expression or compilation strategy the old one will be detached. If the given expression is already assigned to another MutableExecutableDeclaration or MutableFieldDeclaration it will be automatically detached from it.

Parameters
value:Expression

the expression to set as the default value of this annotation property

Since
2.12
setDefaultValueExpressionback to summary
public void setDefaultValueExpression(CompilationStrategy compilationStrategy)

Sets the given CompilationStrategy as the default value. The given CompilationStrategy will be executed later during code generation, not immediately. If this MutableExecutableDeclaration has already set another expression or compilation strategy the old one will be detached.

Parameters
compilationStrategy:CompilationStrategy

the compilation strategy, must not be null

Exceptions
IllegalArgumentException:
if compilationStrategy is null
Since
2.12
setDefaultValueExpressionback to summary
public void setDefaultValueExpression(StringConcatenationClient compilationTemplate)

Sets the given StringConcatenationClient as the default value. The given StringConcatenationClient will be executed later during code generation, not immediately. If this MutableExecutableDeclaration has already set another expression or compilation strategy the old one will be detached.

Parameters
compilationTemplate:StringConcatenationClient

the compilation strategy, must not be null

Exceptions
IllegalArgumentException:
if compilationStrategy is null
Since
2.12
setTypeback to summary
public void setType(TypeReference type)
Parameters
type:TypeReference

the type of this annotation property, must be not null

Exceptions
IllegalArgumentException:
if the type is null
Since
2.12