| java.lang.Object org.exolab.javasource.JAnnotatedElementHelper org.exolab.javasource.JParameter
JParameter | final public class JParameter extends JAnnotatedElementHelper (Code) | | Represents a parameter to a JMethod.
author: Keith Visco version: $Revision: 6675 $ $Date: 2005-03-05 06:42:06 -0700 (Sat, 05 Mar 2005) $ |
Constructor Summary | |
public | JParameter(JType type, String name) Creates a new JParameter with the given type, and name. |
Method Summary | |
public String | getName() Returns the name of the parameter. | public JType | getType() Returns the parameter type. | public void | setName(String name) Sets the name of this parameter. | public void | setType(JType type) Sets the type of this parameter. | public String | toString()
Returns the String representation of this JParameter. |
JParameter | public JParameter(JType type, String name)(Code) | | Creates a new JParameter with the given type, and name.
Parameters: type - The JType to associate with this JParameter. Parameters: name - Name of the JParameter. |
getName | public String getName()(Code) | | Returns the name of the parameter.
The name of the parameter. |
getType | public JType getType()(Code) | | Returns the parameter type.
The parameter type. |
setName | public void setName(String name)(Code) | | Sets the name of this parameter.
Parameters: name - The new name of the parameter. |
setType | public void setType(JType type)(Code) | | Sets the type of this parameter.
Parameters: type - The new JType of this parameter. |
toString | public String toString()(Code) | |
Returns the String representation of this JParameter. The String returned
will consist of the String representation of the parameter type followed
by the name of the parameter.
|
|
|