|
org.openide.src 1.8.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface ClassElement.Impl
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 |
---|
static final int ADD
static final int REMOVE
static final int SET
static final long serialVersionUID
Method Detail |
---|
void setSuperclass(Identifier superClass) throws SourceException
superClass
- the superclass, by name
SourceException
- if impossibleIdentifier getSuperclass()
void setClassOrInterface(boolean isClass) throws SourceException
isClass
- either ClassElement.CLASS
or ClassElement.INTERFACE
SourceException
- if impossibleboolean isClassOrInterface()
ClassElement.CLASS
or ClassElement.INTERFACE
void changeInitializers(InitializerElement[] elems, int action) throws SourceException
elems
- the new initializersaction
- ADD
, REMOVE
, or SET
SourceException
- if impossibleInitializerElement[] getInitializers()
void changeFields(FieldElement[] elems, int action) throws SourceException
elems
- the new fieldsaction
- ADD
, REMOVE
, or SET
SourceException
- if impossibleFieldElement[] getFields()
FieldElement getField(Identifier name)
name
- the name to look for
null
if it does not existvoid changeMethods(MethodElement[] elems, int action) throws SourceException
elems
- the new methodsaction
- ADD
, REMOVE
, or SET
SourceException
- if impossibleMethodElement[] getMethods()
MethodElement getMethod(Identifier name, Type[] arguments)
name
- the name to look forarguments
- the argument types to look for
null
if it does not existvoid changeConstructors(ConstructorElement[] elems, int action) throws SourceException
elems
- the new constructorsaction
- ADD
, REMOVE
, or SET
SourceException
- if impossibleConstructorElement[] getConstructors()
ConstructorElement getConstructor(Type[] arguments)
arguments
- the argument types to look for
null
if it does not existvoid changeClasses(ClassElement[] elems, int action) throws SourceException
elems
- the new inner classesaction
- ADD
, REMOVE
, or SET
SourceException
- if impossibleClassElement[] getClasses()
ClassElement getClass(Identifier name)
name
- the name to look for
null
if it does not existvoid changeInterfaces(Identifier[] ids, int action) throws SourceException
ids
- the new interfaces, by nameaction
- ADD
, REMOVE
, or SET
SourceException
- if impossibleIdentifier[] getInterfaces()
JavaDoc.Class getJavaDoc()
|
org.openide.src 1.8.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |