@Beta public interface FieldDeclaration extends MemberDeclaration
Modifier and Type | Method and Description |
---|---|
Expression |
getInitializer() |
TypeReference |
getType() |
boolean |
isFinal() |
boolean |
isStatic() |
boolean |
isTransient() |
boolean |
isVolatile() |
getDeclaringType, getDocComment, getModifiers, getVisibility, isDeprecated
findAnnotation, getAnnotations
getCompilationUnit, getSimpleName
boolean isFinal()
boolean isStatic()
boolean isTransient()
boolean isVolatile()
Expression getInitializer()
null
if no initializer is present or this is an external element.TypeReference getType()
null
if this is a source field declaration and the type is inferred from the initializer.