org.exolab.javasource

Class JParameter


public class JParameter
extends java.lang.Object

Represents a parameter to a JMethod.

Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:56 $

Author:
Keith Visco

Constructor Summary

JParameter(JType type, String name)
Creates a new JParameter with the given type, and name

Method Summary

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.

Constructor Details

JParameter

public JParameter(JType type,
                  String name)
            throws IllegalArgumentException
Creates a new JParameter with the given type, and name

Parameters:
type - the type to associate with this JParameter

Method Details

getName

public String getName()
Returns the name of the parameter

Returns:
the name of the parameter


getType

public JType getType()
Returns the parameter type

Returns:
the parameter type


setName

public void setName(String name)
Sets the name of this parameter

Parameters:
name - the new name of the parameter


setType

public void setType(JType type)
            throws IllegalArgumentException
Sets the type of this parameter

Parameters:
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

Returns:
the String representation of this JParameter


Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com