JAnnotatedElement
public final class JParameter extends JAnnotatedElementHelper
Constructor | Description |
---|---|
JParameter(JType type,
java.lang.String name) |
Creates a new JParameter with the given type, and name.
|
Modifier and Type | Method | 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, printAnnotations, removeAnnotation
public JParameter(JType type, java.lang.String name)
type
- The JType to associate with this JParameter.name
- Name of the JParameter.public java.lang.String getName()
public JType getType()
public void setName(java.lang.String name)
name
- The new name of the parameter.public void setType(JType type)
type
- The new JType of this parameter.public java.lang.String toString()
toString
in class java.lang.Object
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com