|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.src.Element org.openide.src.MemberElement org.openide.src.FieldElement
Describes a field (variable) in a class.
Nested Class Summary | |
static interface |
FieldElement.Impl
Implementation of a field element. |
Nested classes inherited from class org.openide.src.Element |
Element.Impl2 |
Field Summary |
Fields inherited from class org.openide.src.Element |
impl, impl2 |
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 |
Constructor Summary | |
FieldElement()
Create a new field element represented in memory. |
|
FieldElement(FieldElement.Impl impl,
ClassElement declaringClass)
Create a new field element. |
Method Summary | |
Object |
clone()
Clone the field element. |
String |
getInitValue()
Get the initial value of the field. |
JavaDoc.Field |
getJavaDoc()
Get the JavaDoc for the field. |
int |
getModifiersMask()
Get the permitted modifiers for this type of element. |
Type |
getType()
Get the value type of the field. |
void |
print(ElementPrinter printer)
Print this element (and all its subelements) into an element printer. |
void |
setInitValue(String value)
Set the initial value of the field. |
void |
setName(Identifier name)
Set the name of this member. |
void |
setType(Type type)
Set the value type of the field. |
Methods inherited from class org.openide.src.MemberElement |
getDeclaringClass, getModifiers, getName, setModifiers |
Methods inherited from class org.openide.src.Element |
addPropertyChangeListener, addVetoableChangeListener, getCookie, markCurrent, removePropertyChangeListener, removeVetoableChangeListener, toString, writeReplace |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FieldElement()
public FieldElement(FieldElement.Impl impl, ClassElement declaringClass)
impl
- the pluggable implementationdeclaringClass
- declaring class of this field, or null
Method Detail |
public Object clone()
clone
in class MemberElement
public Type getType()
public void setType(Type type) throws SourceException
type
- the type
SourceException
- if impossiblepublic String getInitValue()
public void setInitValue(String value) throws SourceException
value
- the initial value (as source text), or an empty string if uninitialized
SourceException
- if impossiblepublic int getModifiersMask()
MemberElement
getModifiersMask
in class MemberElement
java.lang.reflect.Modifier
public final void setName(Identifier name) throws SourceException
setName
in class MemberElement
name
- the name
SourceException
- if impossiblepublic JavaDoc.Field getJavaDoc()
public void print(ElementPrinter printer) throws ElementPrinterInterruptException
Element
printer
- the element printer
ElementPrinterInterruptException
- if the printer canceled the printing
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |