Module org.eclipse.xtend.lib.macro
Interface MutableMemberDeclaration
- All Superinterfaces:
AnnotationTarget,Declaration,Element,MemberDeclaration,MutableAnnotationTarget,MutableDeclaration,MutableElement,MutableNamedElement,NamedElement
- All Known Subinterfaces:
MutableAnnotationTypeDeclaration,MutableAnnotationTypeElementDeclaration,MutableClassDeclaration,MutableConstructorDeclaration,MutableEnumerationTypeDeclaration,MutableEnumerationValueDeclaration,MutableExecutableDeclaration,MutableFieldDeclaration,MutableInterfaceDeclaration,MutableMethodDeclaration,MutableTypeDeclaration,MutableTypeParameterDeclarator
- Author:
- Sven Efftinge
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetDeprecated(boolean deprecated) Set the deprecated flag of this member.voidsetDocComment(String docComment) Sets the JavaDoc comment for this membervoidsetVisibility(Visibility visibility) Sets theVisibilityof this member.Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.AnnotationTarget
findAnnotation, getAnnotationsMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MemberDeclaration
getDocComment, getModifiers, getVisibility, isDeprecatedMethods 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.MutableNamedElement
setSimpleNameMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.NamedElement
getCompilationUnit, getSimpleName
-
Method Details
-
setDocComment
Sets the JavaDoc comment for this member- Parameters:
docComment-
-
setVisibility
Sets theVisibilityof this member.- Parameters:
visibility-
-
getDeclaringType
MutableTypeDeclaration getDeclaringType()- Specified by:
getDeclaringTypein interfaceMemberDeclaration- Returns:
- the type declaring this member
-
setDeprecated
void setDeprecated(boolean deprecated) Set the deprecated flag of this member. It will add or remove theDeprecatedannotation if appropriate.- Parameters:
deprecated-trueif this member should be marked as deprecated.- Since:
- 2.7
-