public final class JParameter extends JAnnotatedElementHelper
| Constructor and Description |
|---|
JParameter(JType type,
java.lang.String name)
Creates a new JParameter with the given type, and name.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Returns the name of the parameter.
|
JType |
getType()
Returns the parameter type.
|
void |
setName(java.lang.String name)
Sets the name of this parameter.
|
void |
setType(JType type)
Sets the type of this parameter.
|
java.lang.String |
toString()
Returns the String representation of this JParameter.
|
addAnnotation, getAnnotation, getAnnotations, hasAnnotations, isAnnotationPresent, main, printAnnotations, removeAnnotationpublic JParameter(JType type, java.lang.String name)
type - the JType to associate with this JParametername - name of the JParameterpublic java.lang.String getName()
public JType getType()
public void setName(java.lang.String name)
name - the new name of the parameterpublic void setType(JType type)
type - the new JType of this parameterpublic java.lang.String toString()
toString in class java.lang.ObjectIntalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com