org.exolab.javasource
Class JConstructor
java.lang.Object
org.exolab.javasource.JConstructor
public class JConstructor
extends java.lang.Object
A class for handling source code for a constructor of a JClass
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:54 $JConstructor(JClass declaringClass) - Creates a new method with the given name and returnType.
|
JConstructor
protected JConstructor(JClass declaringClass)
Creates a new method with the given name and returnType.
For "void" return types, simply pass in null as the returnType
addParameter
public void addParameter(JParameter parameter)
throws IllegalArgumentException
Adds the given parameter to this Methods list of parameters
parameter
- the parameter to add to the this Methods
list of parameters.
getDeclaringClass
public JClass getDeclaringClass()
Returns the class in which this JMember has been declared
- the class in which this JMember has been declared
getModifiers
public JModifiers getModifiers()
Returns the modifiers for this JConstructor
- the modifiers for this JConstructor
getParameters
public JParameter[] getParameters()
Returns an array of JParameters consisting of the parameters
of this Method in declared order
- a JParameter array consisting of the parameters
of this Method in declared order
setModifiers
public void setModifiers(JModifiers modifiers)
setSourceCode
public void setSourceCode(String sourceCode)
setSourceCode
public void setSourceCode(JSourceCode sourceCode)
toString
public String toString()
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com