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, setCommentgetChildren, getContents, getFlags, getName, getParent, getQualifiedName, setFlags, setNamejava.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 nameCopyright © 2019. Licensed under the Eclipse Public License v2.0. All rights reserved.
Submit a bug or feature