|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openide.src.Element
Base class for representations of elements in the Java language. All elements are items which are structural features of a class (or the class itself), rather than corresponding to bytecode (i.e. statements are not represented). The same representation is suited to any language using the Java VM.
| Nested Class Summary | |
static interface |
Element.Impl
Pluggable implementation of the storage of element properties. |
static interface |
Element.Impl2
Extended version of the implementation interface. |
| Field Summary | |
protected Element.Impl |
impl
Implementation |
protected Element.Impl2 |
impl2
Implementation extension #2 |
| 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 | |
protected |
Element(Element.Impl impl)
Create a new element with the provided implementation. |
| Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener l)
Add a property change listener. |
void |
addVetoableChangeListener(VetoableChangeListener l)
Attaches a VetoableChange listener to the element. |
Node.Cookie |
getCookie(Class type)
Look for a cookie providing added behavior for this element. |
void |
markCurrent(boolean beforeAfter)
Mark the current element in the context of this element. |
abstract void |
print(ElementPrinter printer)
Print this element (and all its subelements) into an element printer. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove a property change listener. |
void |
removeVetoableChangeListener(VetoableChangeListener l)
Removes the vetoable listener from the element. |
String |
toString()
Get a string representation of the element. |
protected Object |
writeReplace()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Element.Impl impl
protected Element.Impl2 impl2
| Constructor Detail |
protected Element(Element.Impl impl)
impl - the implementation to use| Method Detail |
public final void addPropertyChangeListener(PropertyChangeListener l)
l - the listener to addElementPropertiespublic final void removePropertyChangeListener(PropertyChangeListener l)
l - the listener to removeElementPropertiespublic final void addVetoableChangeListener(VetoableChangeListener l)
l - instance of listener to attach.public final void removeVetoableChangeListener(VetoableChangeListener l)
l - listener to remove.public void markCurrent(boolean beforeAfter)
beforeAfter - true means that new element is inserted before
the specified element, false means after.public Node.Cookie getCookie(Class type)
delegated to the current implementation.
Also note that Element implements Node.Cookie, and that
if the implementation does not provide a cookie, but the requested cookie class is
actually a superclass/interface of this element type, then the element itself may be
returned as the cookie.
type - the cookie class to look for
null if the cookie
is not supportedprotected Object writeReplace()
public abstract void print(ElementPrinter printer) throws ElementPrinterInterruptException
printer - the element printer
ElementPrinterInterruptException - if the printer canceled the printingpublic String toString()
print(org.openide.src.ElementPrinter),
DefaultElementPrinter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||