org.openide.src
Class  FieldElement
java.lang.Object
  |
  +--org.openide.src.Element
        |
        +--org.openide.src.MemberElement
              |
              +--org.openide.src.FieldElement
- All Implemented Interfaces: 
- Cloneable, ElementProperties, Node.Cookie, Serializable
- public final class FieldElement- extends MemberElement
Describes a field (variable) in a class.
- See Also: 
- Serialized Form
| Inner Class Summary | 
| static interface | FieldElement.ImplImplementation of a field element.
 | 
 
 
 
 
| Fields inherited from interface org.openide.src.ElementProperties | 
| PROP_ALL_CLASSES, PROP_BODY, PROP_CLASS_OR_INTERFACE, PROP_CLASSES, PROP_CONSTRUCTORS, PROP_EXCEPTIONS, PROP_FIELDS, PROP_IMPORTS, PROP_INIT_VALUE, PROP_INITIALIZERS, PROP_INTERFACES, PROP_JAVADOC, PROP_MEMBERS, PROP_METHODS, PROP_MODIFIERS, PROP_NAME, PROP_PACKAGE, PROP_PARAMETERS, PROP_RETURN, PROP_STATIC, PROP_STATUS, PROP_SUPERCLASS, PROP_TYPE, PROP_VALID | 
 
 
 
 
 
 
FieldElement
public FieldElement()
- Create a new field element represented in memory.
FieldElement
public FieldElement(FieldElement.Impl impl,
                    ClassElement declaringClass)
- Create a new field element.- 
- Parameters:
- impl- the pluggable implementation
- declaringClass- declaring class of this field, or- null
 
clone
public Object clone()
- Clone the field element.- 
- Overrides:
- clonein class- MemberElement
 
- 
- Returns:
- a new element that has the same values as the original
   but is represented in memory
 
getType
public Type getType()
- Get the value type of the field.- 
- Returns:
- the type
 
setType
public void setType(Type type)
             throws SourceException
- Set the value type of the field.- 
- Parameters:
- type- the type
- Throws:
- SourceException- if impossible
 
getInitValue
public String getInitValue()
- Get the initial value of the field.- 
- Returns:
- the initial value (as source text), or an empty string if uninitialized
 
setInitValue
public void setInitValue(String value)
                  throws SourceException
- Set the initial value of the field.- 
- Parameters:
- value- the initial value (as source text), or an empty string if uninitialized
- Throws:
- SourceException- if impossible
 
getModifiersMask
public int getModifiersMask()
- Description copied from class: MemberElement
- Get the permitted modifiers for this type of element.- 
- Overrides:
- getModifiersMaskin class- MemberElement
 
- Following copied from class: org.openide.src.MemberElement
- 
- Returns:
- disjunction of constants from Modifier
 
setName
public final void setName(Identifier name)
                   throws SourceException
- Set the name of this member.- 
- Overrides:
- setNamein class- MemberElement
 
- 
- Parameters:
- name- the name
- Throws:
- SourceException- if impossible
 
getJavaDoc
public JavaDoc.Field getJavaDoc()
- Get the JavaDoc for the field.- 
- Returns:
- the JavaDoc
 
print
public void print(ElementPrinter printer)
           throws ElementPrinterInterruptException
- Description copied from class: Element
- Print this element (and all its subelements) into an element printer.- 
- Overrides:
- printin class- Element
 
- Following copied from class: org.openide.src.Element
- 
- Parameters:
- printer- the element printer
- Throws:
- ElementPrinterInterruptException- if the printer canceled the printing
 
Built on December 12 2001.  |  Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.