public interface IDOMField extends IDOMMember
COMPILATION_UNIT, FIELD, IMPORT, INITIALIZER, METHOD, PACKAGE, TYPE| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getInitializer()
Deprecated.
Returns the initializer expression for this field.
|
java.lang.String |
getName()
Deprecated.
The
IDOMField refinement of this IDOMNode
method returns the name of this field. |
java.lang.String |
getType()
Deprecated.
Returns the type name of this field.
|
void |
setInitializer(java.lang.String initializer)
Deprecated.
Sets the initializer expression for this field.
|
void |
setName(java.lang.String name)
Deprecated.
The
IDOMField refinement of this IDOMNode
method sets the name of this field. |
void |
setType(java.lang.String typeName)
Deprecated.
Sets the type name of this field.
|
getComment, getFlags, setComment, setFlagsaddChild, canHaveChildren, clone, getCharacters, getChild, getChildren, getContents, getFirstChild, getJavaElement, getNextNode, getNodeType, getParent, getPreviousNode, insertSibling, isAllowableChild, isSignatureEqual, removejava.lang.String getInitializer()
Note: The expression does not include a "=".
null if this field does
not have an initializerjava.lang.String getName()
IDOMField refinement of this IDOMNode
method returns the name of this field. The syntax for the name of a field
corresponds to VariableDeclaratorId (JLS2 8.3).java.lang.String getType()
void 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 initializervoid setName(java.lang.String name)
throws java.lang.IllegalArgumentException
IDOMField refinement of this IDOMNode
method sets the name of this field. The syntax for the name of a field
corresponds to VariableDeclaratorId (JLS2 8.3).void setType(java.lang.String typeName)
throws java.lang.IllegalArgumentException
"String", "int[]", or "java.io.File".typeName - the type namejava.lang.IllegalArgumentException - if null is specified