|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openide.src.Element
org.openide.src.MemberElement
org.openide.src.ConstructorElement
Describes the constructor of a class.
| Nested Class Summary | |
static interface |
ConstructorElement.Impl
Implementation of constructors. |
static class |
ConstructorElement.Key
Serves as a key for constructor elements. |
| 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 | |
ConstructorElement()
Create a constructor with an in-memory implementation. |
|
ConstructorElement(ConstructorElement.Impl impl,
ClassElement clazz)
Create a constructor. |
|
| Method Summary | |
Object |
clone()
Clone the constructor. |
String |
getBody()
Get the body of the constructor. |
Identifier[] |
getExceptions()
Get the thrown exceptions. |
JavaDoc.Method |
getJavaDoc()
Get this constructor's documentation. |
int |
getModifiersMask()
Get the permitted modifiers for this type of element. |
MethodParameter[] |
getParameters()
Get the method parameters. |
void |
print(ElementPrinter printer)
Print this element (and all its subelements) into an element printer. |
void |
setBody(String s)
Set the body of the constructor. |
void |
setExceptions(Identifier[] exceptions)
Set the array of thrown exceptions. |
void |
setParameters(MethodParameter[] params)
Set the method parameters. |
| Methods inherited from class org.openide.src.MemberElement |
getDeclaringClass, getModifiers, getName, setModifiers, setName |
| 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 ConstructorElement()
public ConstructorElement(ConstructorElement.Impl impl, ClassElement clazz)
impl - implementation of functionalityclazz - declaring class, or null| Method Detail |
public Object clone()
clone in class MemberElementpublic int getModifiersMask()
MemberElement
getModifiersMask in class MemberElementjava.lang.reflect.Modifierpublic final MethodParameter[] getParameters()
public final void setParameters(MethodParameter[] params) throws SourceException
params - the new parameters
SourceException - if impossiblepublic final Identifier[] getExceptions()
public final void setExceptions(Identifier[] exceptions) throws SourceException
exceptions - the new exceptions to throw, by name
SourceException - if impossiblepublic final void setBody(String s) throws SourceException
s - the new body (may be null for methods)
SourceException - if impossiblegetBody()public final String getBody()
this is actually a MethodElement, the body
may be null when the method is abstract.
A body consisting of an empty string, however, is just a concrete
but empty body.
null for methods)public final JavaDoc.Method getJavaDoc()
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 | ||||||||||