org.exolab.javasource

Class JParameter

Implemented Interfaces:
JAnnotatedElement

public final class JParameter
extends JAnnotatedElementHelper

Represents a parameter to a JMethod.
Version:
$Revision: 6324 $ $Date: 2005-03-05 06:42:06 -0700 (Sat, 05 Mar 2005) $
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.

Methods inherited from class org.exolab.javasource.JAnnotatedElementHelper

addAnnotation, getAnnotation, getAnnotations, hasAnnotations, isAnnotationPresent, main, printAnnotations, removeAnnotation

Constructor Details

JParameter

public JParameter(JType type,
                  String name)
Creates a new JParameter with the given type, and name.
Parameters:
type - the JType to associate with this JParameter
name - name of the 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)
Sets the type of this parameter.
Parameters:
type - the new JType of this parameter

toString

public String toString()
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.
Returns:
the String representation of this JParameter

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