|
|||||||||||
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.InitializerElement
Element which represents an initializer block. This may be a static class initializer, or (as of Java 1.1) a nonstatic initializer (usually used in anonymous inner classes).
Nested Class Summary | |
static interface |
InitializerElement.Impl
Pluggable implementation of initializers. |
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 | |
InitializerElement()
Create an initializer represented in memory. |
|
InitializerElement(InitializerElement.Impl impl,
ClassElement declaringClass)
Create an initializer. |
Method Summary | |
Object |
clone()
Clone this initializer. |
String |
getBody()
Get the body of this initializer. |
ClassElement |
getDeclaringClass()
Get the declaring class. |
JavaDoc |
getJavaDoc()
Get the class documentation. |
boolean |
isStatic()
Test whether this initializer is static. |
void |
print(ElementPrinter printer)
Print this element (and all its subelements) into an element printer. |
void |
setBody(String s)
Set the body of this initializer. |
void |
setStatic(boolean stat)
Set the static flag for this initializer. |
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 InitializerElement()
public InitializerElement(InitializerElement.Impl impl, ClassElement declaringClass)
impl
- the pluggable implementationdeclaringClass
- the class containing it, or null
Method Detail |
public Object clone()
public void setStatic(boolean stat) throws SourceException
static
flag for this initializer.
stat
- true
to make static
SourceException
- if impossiblepublic boolean isStatic()
true
if it ispublic void setBody(String s) throws SourceException
s
- the new body
SourceException
- if impossiblepublic String getBody()
public JavaDoc getJavaDoc()
public final ClassElement getDeclaringClass()
null
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 |