@Beta public interface MemberDeclaration extends Declaration
Modifier and Type | Method and Description |
---|---|
TypeDeclaration |
getDeclaringType() |
java.lang.String |
getDocComment() |
java.util.Set<Modifier> |
getModifiers() |
Visibility |
getVisibility() |
boolean |
isDeprecated()
Returns
true if this member is marked as deprecated. |
findAnnotation, getAnnotations
getCompilationUnit, getSimpleName
java.lang.String getDocComment()
Visibility getVisibility()
TypeDeclaration getDeclaringType()
null
if this is a top level elementjava.util.Set<Modifier> getModifiers()
public val foo = "foo"
has the modifiers Modifier.VAL
and Modifier.PUBLIC
boolean isDeprecated()
true
if this member is marked as deprecated.true
if this member is marked as deprecated.