Module org.eclipse.xtend.lib.macro
Interface FieldDeclaration
- All Superinterfaces:
AnnotationTarget,Declaration,Element,MemberDeclaration,NamedElement
- All Known Subinterfaces:
MutableFieldDeclaration
- Author:
- Sven Efftinge
-
Method Summary
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.AnnotationTarget
findAnnotation, getAnnotationsMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.MemberDeclaration
getDeclaringType, getDocComment, getModifiers, getVisibility, isDeprecatedMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.NamedElement
getCompilationUnit, getSimpleName
-
Method Details
-
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.
-