Module org.eclipse.xtend.lib.macro
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
- Author:
- Sven Efftinge
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif this member is marked as deprecated.Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.AnnotationTarget
findAnnotation, getAnnotationsMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.NamedElement
getCompilationUnit, getSimpleName
-
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
nullif this is a top level element
-
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
-