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
Author:
Sven Efftinge
  • Method Details

    • setDocComment

      void setDocComment(String docComment)
      Sets the JavaDoc comment for this member
      Parameters:
      docComment -
    • setVisibility

      void setVisibility(Visibility visibility)
      Sets the Visibility of this member.
      Parameters:
      visibility -
    • getDeclaringType

      MutableTypeDeclaration getDeclaringType()
      Specified by:
      getDeclaringType in interface MemberDeclaration
      Returns:
      the type declaring this member
    • setDeprecated

      void setDeprecated(boolean deprecated)
      Set the deprecated flag of this member. It will add or remove the Deprecated annotation if appropriate.
      Parameters:
      deprecated - true if this member should be marked as deprecated.
      Since:
      2.7