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
- Noimplement:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TypeDeclarationgetDeclaringType()java.lang.StringgetDocComment()java.util.Set<Modifier>getModifiers()VisibilitygetVisibility()booleanisDeprecated()Returnstrueif this member is marked as deprecated.-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.AnnotationTarget
findAnnotation, getAnnotations
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.NamedElement
getCompilationUnit, getSimpleName
-
-
-
-
Method Detail
-
getDocComment
java.lang.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
nullif this is a top level element
-
getModifiers
java.util.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 modifiersModifier.VALandModifier.PUBLIC - Since:
- 2.7
-
isDeprecated
boolean isDeprecated()
Returnstrueif this member is marked as deprecated.- Returns:
trueif this member is marked as deprecated.- Since:
- 2.7
-
-