public interface JField extends JMember
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInitializer()
Returns the initializer expression for this field.
|
java.lang.String |
getType()
Returns the type name of this field.
|
void |
setInitializer(java.lang.String initializer)
Sets the initializer expression for this field.
|
void |
setType(java.lang.String typeName)
Sets the type name of this field.
|
getComment, setComment
getChildren, getContents, getFlags, getName, getParent, getQualifiedName, setFlags, setName
java.lang.String getInitializer()
Note: The expression does not include a "=
".
null
if this field does
not have an initializervoid setInitializer(java.lang.String initializer)
Note: The expression does not include a "=
".
initializer
- the initializer expression, or null
indicating
the field does not have an initializerjava.lang.String getType()
void setType(java.lang.String typeName)
"String"
, "int[]"
, or "java.io.File"
.typeName
- the type name