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
@Beta public interface MutableMemberDeclaration extends MutableDeclaration, MemberDeclaration
- Noimplement:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MutableTypeDeclarationgetDeclaringType()voidsetDeprecated(boolean deprecated)Set the deprecated flag of this member.voidsetDocComment(java.lang.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, getAnnotations
-
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.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.MutableNamedElement
setSimpleName
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.NamedElement
getCompilationUnit, getSimpleName
-
-
-
-
Method Detail
-
setDocComment
void setDocComment(java.lang.String docComment)
Sets the JavaDoc comment for this member- Parameters:
docComment-
-
setVisibility
void setVisibility(Visibility visibility)
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
-
-