org.exolab.javasource
public class JConstructor extends Object
Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:54 $
| Constructor Summary | |
|---|---|
| protected | JConstructor(JClass declaringClass)
Creates a new method with the given name and returnType.
|
| Method Summary | |
|---|---|
| void | addParameter(JParameter parameter)
Adds the given parameter to this Methods list of parameters |
| JClass | getDeclaringClass()
Returns the class in which this JMember has been declared |
| JModifiers | getModifiers()
Returns the modifiers for this JConstructor |
| JParameter[] | getParameters()
Returns an array of JParameters consisting of the parameters
of this Method in declared order |
| JSourceCode | getSourceCode() |
| void | print(JSourceWriter jsw) |
| void | setModifiers(JModifiers modifiers) |
| void | setSourceCode(String sourceCode) |
| void | setSourceCode(JSourceCode sourceCode) |
| String | toString() |
Parameters: parameter the parameter to add to the this Methods list of parameters.
Throws: IllegalArgumentException when a parameter already exists for this Method with the same name as the new parameter
Returns: the class in which this JMember has been declared
Returns: the modifiers for this JConstructor
Returns: a JParameter array consisting of the parameters of this Method in declared order