|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.exolab.javasource.JAnnotatedElementHelper
org.exolab.javasource.JParameter
public final class JParameter
Represents a parameter to a JMethod.
| Constructor Summary | |
|---|---|
JParameter(JType type,
java.lang.String name)
Creates a new JParameter with the given type, and name. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.exolab.javasource.JAnnotatedElementHelper |
|---|
addAnnotation, getAnnotation, getAnnotations, hasAnnotations, isAnnotationPresent, printAnnotations, removeAnnotation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JParameter(JType type,
java.lang.String name)
type - The JType to associate with this JParameter.name - Name of the JParameter.| Method Detail |
|---|
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
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||