public class JParameter extends Object
Constructor | Description |
---|---|
JParameter(JType type,
String name) |
Creates a new JParameter with the given type, and name
|
Modifier and Type | Method | Description |
---|---|---|
void |
appendAnnotation(String annotation) |
|
JAnnotations |
getAnnotations() |
|
String |
getName() |
Returns the name of the parameter
|
JType |
getType() |
Returns the parameter type
|
void |
setAnnotations(JAnnotations annotations) |
|
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.
|
public JParameter(JType type, String name) throws IllegalArgumentException
type
- the type to associate with this JParametername
- the name of the JParameterIllegalArgumentException
public String getName()
public JType getType()
public void setName(String name)
name
- the new name of the parameterpublic void setType(JType type) throws IllegalArgumentException
type
- the new type of this parameterIllegalArgumentException
public String toString()
public JAnnotations getAnnotations()
public void appendAnnotation(String annotation)
annotation
- the annotation to appendpublic void setAnnotations(JAnnotations annotations)
annotations
- the annotations to setCopyright © 2001–2018 Codehaus Plexus. All rights reserved.