org.exolab.javasource
public final class JConstructor extends JAnnotatedElementHelper
Version: $Revision: 6324 $ $Date: 2005-05-08 05:24:54 -0600 (Sun, 08 May 2005) $
Constructor Summary | |
---|---|
protected | JConstructor(JClass declaringClass)
Creates a new JConstructor for the provided declaring class. |
Method Summary | |
---|---|
void | addException(JClass exp)
Adds the given Exception to this JConstructor's throws clause.
|
void | addParameter(JParameter parameter)
Adds the given parameter to this JConstructor's list of parameters.
|
JClass | getDeclaringClass()
Returns the class in which this JConstructor has been declared.
|
JClass[] | getExceptions()
Returns the exceptions that this JConstructor lists in its throws clause.
|
JModifiers | getModifiers()
Returns the modifiers for this JConstructor.
|
JParameter[] | getParameters()
Returns an array of JParameters consisting of the parameters of this
JConstructor in declared order.
|
JSourceCode | getSourceCode()
Returns the source code for this JConstructor. |
void | print(JSourceWriter jsw)
Prints this JConstructor to the provided JSourceWriter. |
void | setModifiers(JModifiers modifiers)
Sets the modifiers on this JConstructor.
|
void | setSourceCode(String sourceCode)
Sets the source code for this constructor.
|
void | setSourceCode(JSourceCode sourceCode)
Sets the source code for this constructor.
|
String | toString()
Return the string representation of this constructor.
|
Parameters: declaringClass the class this constructor creates
Parameters: exp the JClass representing the Exception
Parameters: parameter the parameter to add to the this JConstructor's list of parameters.
Returns: the class in which this JConstructor has been declared.
Returns: the exceptions that this JConstructor lists in its throws clause.
Returns: the modifiers for this JConstructor.
Returns: a JParameter array consisting of the parameters of this JConstructor in declared order.
Returns: the source code.
Parameters: jsw the JSourceWriter to print the constructor to
Parameters: modifiers modifiers to set on this constructor
Parameters: sourceCode source code to apply to this constructor
Parameters: sourceCode source code to apply to this constructor
See Also: java.lang.Object#toString()
{@inheritDoc }