public class Field extends NonStatement
This AST element represents a Java field.
Fields can be created via the use of a Field.Builder
.
Note: Currently, fields are read-only elements.
Class
Modifier and Type | Class and Description |
---|---|
static class |
Field.Builder
This class is used to generate AST
Field elements. |
Modifier and Type | Method and Description |
---|---|
IExpression |
getInitialValue()
Get the static initialization value, if any.
|
java.lang.String |
getName()
Get the field name.
|
java.lang.String |
getSignature()
Get the field signature.
|
java.lang.String |
getType()
Get the field type.
|
attachTag, getSubElements, replaceSubElement, retrieveTag
public java.lang.String getType()
Get the field type.
public java.lang.String getName()
Get the field name.
public java.lang.String getSignature()
Get the field signature. Convenience routine.
Format: classSignature->fieldName:type
public IExpression getInitialValue()
Get the static initialization value, if any. Only for static fields.