|
org.openide.src 1.8.31 | |||||||||
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
Superclass for containable Java source members (fields, methods and classes). Provides support for associating this element with a declaring class.
Nested Class Summary | |
---|---|
static interface |
MemberElement.Impl
Pluggable implementation of member elements. |
Nested classes/interfaces 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 | |
---|---|
protected |
MemberElement(MemberElement.Impl impl,
ClassElement declaringClass)
Create a member element. |
Method Summary | |
---|---|
Object |
clone()
|
ClassElement |
getDeclaringClass()
Get the declaring class. |
int |
getModifiers()
Get the modifier flags for this element. |
abstract int |
getModifiersMask()
Get the permitted modifiers for this type of element. |
Identifier |
getName()
Get the name of this member. |
void |
setModifiers(int mod)
Set the modifier flags for this element. |
void |
setName(Identifier name)
Set the name of this member. |
Methods inherited from class org.openide.src.Element |
---|
addPropertyChangeListener, addVetoableChangeListener, getCookie, markCurrent, print, removePropertyChangeListener, removeVetoableChangeListener, toString, writeReplace |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected MemberElement(MemberElement.Impl impl, ClassElement declaringClass)
impl
- the pluggable implementationdeclaringClass
- the class this element belongs to, or null
if unattachedMethod Detail |
---|
public final int getModifiers()
getModifiersMask()
.
java.lang.reflect.Modifier
public final void setModifiers(int mod) throws SourceException
mod
- disjunction of constants from java.lang.reflect.Modifier
SourceException
- if impossible (e.g. if mod & ~ getModifiersMask() != 0
)public abstract int getModifiersMask()
java.lang.reflect.Modifier
public final Identifier getName()
public void setName(Identifier name) throws SourceException
name
- the name
SourceException
- if impossiblepublic Object clone() throws CloneNotSupportedException
CloneNotSupportedException
public final ClassElement getDeclaringClass()
null
if the element is not
attached to any class
|
org.openide.src 1.8.31 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |