Public Member Functions

org.exolab.javasource.JParameter Class Reference

List of all members.

Public Member Functions

 JParameter (JType type, String name) throws IllegalArgumentException
String getName ()
JType getType ()
void setName (String name)
void setType (JType type) throws IllegalArgumentException
String toString ()

Detailed Description

Represents a parameter to a JMethod.

Author:
Keith Visco
Version:
Revision:
1.2
Date:
2004/12/03 18:54:19

Constructor & Destructor Documentation

org.exolab.javasource.JParameter.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
the name of the JParameter

References org.exolab.javasource.JParameter.setName(), and org.exolab.javasource.JParameter.setType().


Member Function Documentation

String org.exolab.javasource.JParameter.getName (  ) 
JType org.exolab.javasource.JParameter.getType (  ) 
void org.exolab.javasource.JParameter.setName ( String  name  ) 

Sets the name of this parameter

Parameters:
name the new name of the parameter

Referenced by org.exolab.javasource.JParameter.JParameter().

void org.exolab.javasource.JParameter.setType ( JType  type  )  throws IllegalArgumentException

Sets the type of this parameter

Parameters:
type the new type of this parameter

Referenced by org.exolab.javasource.JParameter.JParameter().

String org.exolab.javasource.JParameter.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

References org.exolab.javasource.JType.toString().

Referenced by org.exolab.javasource.JMethodSignature.print(), and org.exolab.javasource.JConstructor.print().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties