public final class JParameter extends JAnnotatedElementHelper
Constructor and Description |
---|
JParameter(JType type,
String name)
Creates a new JParameter with the given type, and name.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of the parameter.
|
JType |
getType()
Returns the parameter type.
|
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. |
addAnnotation, getAnnotation, getAnnotations, hasAnnotations, isAnnotationPresent, printAnnotations, removeAnnotation
public String getName()
public JType getType()
public void setName(String name)
name
- The new name of the parameter.public void setType(JType type)
type
- The new JType of this parameter.Copyright © 2021. All rights reserved.