|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Pluggable behavior for class elements.
ClassElement| Field Summary | |
static int |
ADD
Add some items. |
static int |
REMOVE
Remove some items. |
static long |
serialVersionUID
Deprecated. Only public by accident. |
static int |
SET
Set some items, replacing the old ones. |
| Method Summary | |
void |
changeClasses(ClassElement[] elems,
int action)
Change the set of inner classes. |
void |
changeConstructors(ConstructorElement[] elems,
int action)
Change the set of constructors. |
void |
changeFields(FieldElement[] elems,
int action)
Change the set of fields. |
void |
changeInitializers(InitializerElement[] elems,
int action)
Change the set of initializers. |
void |
changeInterfaces(Identifier[] ids,
int action)
Change the set of implemented/extended interfaces. |
void |
changeMethods(MethodElement[] elems,
int action)
Change the set of methods. |
ClassElement |
getClass(Identifier name)
Find an inner class by name. |
ClassElement[] |
getClasses()
Get all inner classes. |
ConstructorElement |
getConstructor(Type[] arguments)
Find a constructor by signature. |
ConstructorElement[] |
getConstructors()
Get all constructors. |
FieldElement |
getField(Identifier name)
Find a field by name. |
FieldElement[] |
getFields()
Get all fields. |
InitializerElement[] |
getInitializers()
Get all initializers. |
Identifier[] |
getInterfaces()
Get all implemented/extended interfaces. |
JavaDoc.Class |
getJavaDoc()
Get the class's documentation block. |
MethodElement |
getMethod(Identifier name,
Type[] arguments)
Finds a method by signature. |
MethodElement[] |
getMethods()
Get all methods. |
Identifier |
getSuperclass()
Get the superclass for this class. |
boolean |
isClassOrInterface()
Test whether this is a class or interface. |
void |
setClassOrInterface(boolean isClass)
Set whether this is a class or interface. |
void |
setSuperclass(Identifier superClass)
Set the superclass for this class. |
| Methods inherited from interface org.openide.src.MemberElement.Impl |
getModifiers, getName, setModifiers, setName |
| Methods inherited from interface org.openide.src.Element.Impl |
addPropertyChangeListener, attachedToElement, getCookie, markCurrent, readResolve, removePropertyChangeListener |
| Field Detail |
public static final int ADD
public static final int REMOVE
public static final int SET
public static final long serialVersionUID
| Method Detail |
public void setSuperclass(Identifier superClass) throws SourceException
superClass - the superclass, by name
SourceException - if impossiblepublic Identifier getSuperclass()
public void setClassOrInterface(boolean isClass)
throws SourceException
isClass - either ClassElement.CLASS or ClassElement.INTERFACE
SourceException - if impossiblepublic boolean isClassOrInterface()
ClassElement.CLASS or ClassElement.INTERFACEpublic void changeInitializers(InitializerElement[] elems, int action) throws SourceException
elems - the new initializersaction - ADD, REMOVE, or SET
SourceException - if impossiblepublic InitializerElement[] getInitializers()
public void changeFields(FieldElement[] elems, int action) throws SourceException
elems - the new fieldsaction - ADD, REMOVE, or SET
SourceException - if impossiblepublic FieldElement[] getFields()
public FieldElement getField(Identifier name)
name - the name to look for
null if it does not existpublic void changeMethods(MethodElement[] elems, int action) throws SourceException
elems - the new methodsaction - ADD, REMOVE, or SET
SourceException - if impossiblepublic MethodElement[] getMethods()
public MethodElement getMethod(Identifier name, Type[] arguments)
name - the name to look forarguments - the argument types to look for
null if it does not existpublic void changeConstructors(ConstructorElement[] elems, int action) throws SourceException
elems - the new constructorsaction - ADD, REMOVE, or SET
SourceException - if impossiblepublic ConstructorElement[] getConstructors()
public ConstructorElement getConstructor(Type[] arguments)
arguments - the argument types to look for
null if it does not existpublic void changeClasses(ClassElement[] elems, int action) throws SourceException
elems - the new inner classesaction - ADD, REMOVE, or SET
SourceException - if impossiblepublic ClassElement[] getClasses()
public ClassElement getClass(Identifier name)
name - the name to look for
null if it does not existpublic void changeInterfaces(Identifier[] ids, int action) throws SourceException
ids - the new interfaces, by nameaction - ADD, REMOVE, or SET
SourceException - if impossiblepublic Identifier[] getInterfaces()
public JavaDoc.Class getJavaDoc()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||