Top Methods
org.eclipse.xtend.lib.macro.declaration

public Interface FieldDeclaration

extends MemberDeclaration
Known Direct Subinterfaces
org.eclipse.xtend.lib.macro.declaration.MutableFieldDeclaration
Annotations
@Beta
Imports
org.eclipse.xtend.lib.macro.expression.Expression, com.google.common.annotations.Beta

Author
Sven Efftinge

Method Summary

Modifier and TypeMethod and Description
public Expression

Returns:

the initializer. null if no initializer is present or this is an external element.
getInitializer
()

public TypeReference

Returns:

the type of this expression. null if this is a source field declaration and the type is inferred from the initializer.
getType
()

public boolean

Returns:

whether this field is declared 'final'
isFinal
()

public boolean

Returns:

whether this field is declared 'static'
isStatic
()

public boolean

Returns:

whether this field is declared 'transient'
isTransient
()

public boolean

Returns:

whether this field is declared 'volatile'
isVolatile
()

Inherited from org.eclipse.xtend.lib.macro.declaration.MemberDeclaration:
getDeclaringTypegetDocCommentgetModifiersgetVisibilityisDeprecated

Method Detail

getInitializerback to summary
public Expression getInitializer()
Returns:Expression

the initializer. null if no initializer is present or this is an external element.

getTypeback to summary
public TypeReference getType()
Returns:TypeReference

the type of this expression. null if this is a source field declaration and the type is inferred from the initializer.

isFinalback to summary
public boolean isFinal()
Returns:boolean

whether this field is declared 'final'

isStaticback to summary
public boolean isStatic()
Returns:boolean

whether this field is declared 'static'

isTransientback to summary
public boolean isTransient()
Returns:boolean

whether this field is declared 'transient'

isVolatileback to summary
public boolean isVolatile()
Returns:boolean

whether this field is declared 'volatile'