oracle.jdeveloper.jot
Interface JotFieldDeclaration
- All Superinterfaces:
- JotCodeElement, JotElement, JotHasModifiers, JotMember, JotVariableDeclaration
- public interface JotFieldDeclaration
- extends JotVariableDeclaration, JotMember
The JotFieldDeclaration
interface represents a field declaration. A field declaration is a member of a specific class. Each field declaration contains one or more fields. For example, the following declaration private int x
contains a single field named x
, while the declaration public AbstractButton button1 = new JButton(), button2 = new JRadioButton();
contains two fields, button1
and button2
.
A JotFieldDeclaration
will always contain at least one JotField
. If the last field is removed from the declaration, the declaration is automatically removed from the containing class and marked as invalid. Attempting to modify the invalid declaration will result in a JotException
.
Each field declaration has an associated type. Each field is either this type or an array type based on the declaration type. For example, in the declaration int x[];
, the declaration has type int
, while the field has type int[]
.
- Since:
- 5.0
- See Also:
JotField
, JotMethod
, "Sections 8.3 and 9.3 of the Java Language Specification"
Methods inherited from interface oracle.jdeveloper.jot.JotCodeElement |
addPrecedingComment, childrenContainErrors, delete, getContainingJotFile, getLeftWhitespace, getLength, getRightWhitespace, isInError, isSource, setLeftWhitespace, setRightWhitespace |
Methods inherited from interface oracle.jdeveloper.jot.JotElement |
getChildren, getContainedElements, getElementName, getElementType, getEndOffset, getID, getJotWorkArea, getParent, getStartOffset, isExistent, isReadOnly, isStructureKnown, setParent |
Copyright © 1997, 2004, Oracle. All rights reserved.