@Beta public interface MutableAnnotationTypeElementDeclaration extends MutableMemberDeclaration, AnnotationTypeElementDeclaration
| Modifier and Type | Method and Description |
|---|---|
void |
setDefaultValueExpression(CompilationStrategy compilationStrategy)
Sets the given
CompilationStrategy as the default value. |
void |
setDefaultValueExpression(Expression value)
Setting an expression will alter the scope of it accordingly.
|
void |
setDefaultValueExpression(org.eclipse.xtend2.lib.StringConcatenationClient compilationTemplate)
Sets the given
StringConcatenationClient as the default value. |
void |
setType(TypeReference type) |
getDeclaringType, setDeprecated, setDocComment, setVisibilitymarkAsReadaddAnnotation, removeAnnotationsetSimpleNameremovegetDefaultValue, getDefaultValueExpression, getTypegetDocComment, getModifiers, getVisibility, isDeprecatedfindAnnotation, getAnnotationsgetCompilationUnit, getSimpleNamevoid setDefaultValueExpression(Expression value)
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.value - the expression to set as the default value of this annotation propertyvoid setDefaultValueExpression(CompilationStrategy compilationStrategy)
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.compilationStrategy - the compilation strategy, must not be nulljava.lang.IllegalArgumentException - if compilationStrategy is nullvoid setDefaultValueExpression(org.eclipse.xtend2.lib.StringConcatenationClient compilationTemplate)
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.compilationTemplate - the compilation strategy, must not be nulljava.lang.IllegalArgumentException - if compilationStrategy is nullvoid setType(TypeReference type)
type - the type of this annotation property, must be not nulljava.lang.IllegalArgumentException - if the type is null