Interface FieldDeclaration
-
- All Superinterfaces:
AnnotationTarget,Declaration,Element,MemberDeclaration,NamedElement
- All Known Subinterfaces:
MutableFieldDeclaration
@Beta public interface FieldDeclaration extends MemberDeclaration
- Noimplement:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExpressiongetInitializer()TypeReferencegetType()booleanisFinal()booleanisStatic()booleanisTransient()booleanisVolatile()-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.AnnotationTarget
findAnnotation, getAnnotations
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.MemberDeclaration
getDeclaringType, getDocComment, getModifiers, getVisibility, isDeprecated
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.NamedElement
getCompilationUnit, getSimpleName
-
-
-
-
Method Detail
-
isFinal
boolean isFinal()
- Returns:
- whether this field is declared 'final'
-
isStatic
boolean isStatic()
- Returns:
- whether this field is declared 'static'
-
isTransient
boolean isTransient()
- Returns:
- whether this field is declared 'transient'
-
isVolatile
boolean isVolatile()
- Returns:
- whether this field is declared 'volatile'
-
getInitializer
Expression getInitializer()
- Returns:
- the initializer.
nullif no initializer is present or this is an external element.
-
getType
TypeReference getType()
- Returns:
- the type of this expression.
nullif this is a source field declaration and the type is inferred from the initializer.
-
-