org.exolab.javasource
Class JParameter
java.lang.Object
org.exolab.javasource.JParameter
public class JParameter
extends java.lang.Object
Represents a parameter to a JMethod.
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:56 $JParameter(JType type, String name) - Creates a new JParameter with the given type, and name
|
String | getName() - Returns the name of the parameter
|
JType | getType() - Returns the parameter type
|
void | setName(String name) - Sets the name of this parameter
|
void | setType(JType type) - Sets the type of this parameter
|
String | toString() - Returns the String representation of this JParameter.
|
JParameter
public JParameter(JType type,
String name)
throws IllegalArgumentException
Creates a new JParameter with the given type, and name
type
- the type to associate with this JParameter
getName
public String getName()
Returns the name of the parameter
- the name of the parameter
getType
public JType getType()
Returns the parameter type
setName
public void setName(String name)
Sets the name of this parameter
name
- the new name of the parameter
setType
public void setType(JType type)
throws IllegalArgumentException
Sets the type of this parameter
type
- the new type of this parameter
toString
public String toString()
Returns the String representation of this JParameter. The
String returns will consist of the String representation
of the parameter type, followed by the name of the parameter
- the String representation of this JParameter
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com