Extension SDK

oracle.jdeveloper.jot
Interface JotFieldDeclaration

All Superinterfaces:
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.JotVariableDeclaration
addVariable, addVariable, getAsFieldDeclaration, getAsLocalVariableDeclaration, getType, getVariables, removeVariable, setType
 
Methods inherited from interface oracle.jdeveloper.jot.JotHasModifiers
getModifiers, setModifiers
 
Methods inherited from interface oracle.jdeveloper.jot.JotElement
getElementName, getElementType, getEndOffset, getID, getJotWorkArea, getParent, getStartOffset, isExistent, isReadOnly, isStructureKnown, setParent
 
Methods inherited from interface oracle.jdeveloper.jot.JotMember
getDeclaringClass, isDeprecated, isSource
 


Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.