Interface MemberDeclaration

All Superinterfaces:
AnnotationTarget, Declaration, Element, NamedElement
All Known Subinterfaces:
AnnotationTypeDeclaration, AnnotationTypeElementDeclaration, ClassDeclaration, ConstructorDeclaration, EnumerationTypeDeclaration, EnumerationValueDeclaration, ExecutableDeclaration, FieldDeclaration, InterfaceDeclaration, MethodDeclaration, MutableAnnotationTypeDeclaration, MutableAnnotationTypeElementDeclaration, MutableClassDeclaration, MutableConstructorDeclaration, MutableEnumerationTypeDeclaration, MutableEnumerationValueDeclaration, MutableExecutableDeclaration, MutableFieldDeclaration, MutableInterfaceDeclaration, MutableMemberDeclaration, MutableMethodDeclaration, MutableTypeDeclaration, MutableTypeParameterDeclarator, TypeDeclaration, TypeParameterDeclarator

@Beta public interface MemberDeclaration extends Declaration
Author:
Sven Efftinge
  • Method Details

    • getDocComment

      String getDocComment()
      Returns:
      the JavaDoc comment
    • getVisibility

      Visibility getVisibility()
      Returns:
      the visibility of this member
    • getDeclaringType

      TypeDeclaration getDeclaringType()
      Returns:
      the type declaring this member or null if this is a top level element
    • getModifiers

      Set<Modifier> getModifiers()
      Returns:
      the modifiers of this Xtend element or an empty set of this is a Java element. E.g. public val foo = "foo" has the modifiers Modifier.VAL and Modifier.PUBLIC
      Since:
      2.7
    • isDeprecated

      boolean isDeprecated()
      Returns true if this member is marked as deprecated.
      Returns:
      true if this member is marked as deprecated.
      Since:
      2.7