org.exolab.javasource
Class JParameter

java.lang.Object
  extended byorg.exolab.javasource.JAnnotatedElementHelper
      extended byorg.exolab.javasource.JParameter
All Implemented Interfaces:
JAnnotatedElement

public class JParameter
extends JAnnotatedElementHelper

Represents a parameter to a JMethod. *

Author:
Keith Visco * @version $Revision: 1.4 $ $Date: 2005/03/05 13:41:59 $

Constructor Summary
JParameter(JType type, java.lang.String name)
          Creates a new JParameter with the given type, and name * @param type the type to associate with this JParameter * @param name name of the JParameter
 
Method Summary
 java.lang.String getName()
          Returns the name of the parameter *
 JType getType()
          Returns the parameter type * @return the parameter type
 void setName(java.lang.String name)
          Sets the name of this parameter * @param name the new name of the parameter
 void setType(JType type)
          Sets the type of this parameter * @param type the new type of this parameter
 java.lang.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JParameter

public JParameter(JType type,
                  java.lang.String name)
           throws java.lang.IllegalArgumentException
Creates a new JParameter with the given type, and name * @param type the type to associate with this JParameter * @param name name of the JParameter

Method Detail

getName

public java.lang.String getName()
Returns the name of the parameter *

Returns:
the name of the parameter

getType

public JType getType()
Returns the parameter type * @return the parameter type


setName

public void setName(java.lang.String name)
Sets the name of this parameter * @param name the new name of the parameter


setType

public void setType(JType type)
             throws java.lang.IllegalArgumentException
Sets the type of this parameter * @param type the new type of this parameter

Throws:
java.lang.IllegalArgumentException

toString

public java.lang.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 * @return the String representation of this JParameter



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