Public Member Functions | |
JParameter (JType type, String name) throws IllegalArgumentException | |
String | getName () |
JType | getType () |
void | setName (String name) |
void | setType (JType type) throws IllegalArgumentException |
String | toString () |
Represents a parameter to a JMethod.
org.exolab.javasource.JParameter.JParameter | ( | JType | type, | |
String | name | |||
) | throws IllegalArgumentException |
Creates a new JParameter with the given type, and name
type | the type to associate with this JParameter | |
the | name of the JParameter |
References org.exolab.javasource.JParameter.setName(), and org.exolab.javasource.JParameter.setType().
String org.exolab.javasource.JParameter.getName | ( | ) |
Returns the name of the parameter
Referenced by org.exolab.castor.builder.CollectionInfoODMG30.createSetArrayMethod(), org.exolab.castor.builder.CollectionInfoJ2.createSetArrayMethod(), org.exolab.castor.builder.CollectionInfo.createSetArrayMethod(), org.exolab.castor.builder.CollectionInfoJ2.createSetCollectionMethod(), org.exolab.castor.builder.CollectionInfo.createSetCollectionMethod(), org.exolab.castor.builder.CollectionInfoJ2.createSetCollectionReferenceMethod(), and org.exolab.castor.builder.CollectionInfo.createSetCollectionReferenceMethod().
JType org.exolab.javasource.JParameter.getType | ( | ) |
Returns the parameter type
Referenced by org.exolab.castor.builder.CollectionInfoJ2.createAccessMethods(), org.exolab.castor.builder.CollectionInfo.createAccessMethods(), org.exolab.javasource.JMethodSignature.toString(), and org.exolab.javasource.JConstructor.toString().
void org.exolab.javasource.JParameter.setName | ( | String | name | ) |
Sets the name of this parameter
name | the new name of the parameter |
Referenced by org.exolab.javasource.JParameter.JParameter().
void org.exolab.javasource.JParameter.setType | ( | JType | type | ) | throws IllegalArgumentException |
Sets the type of this parameter
type | the new type of this parameter |
Referenced by org.exolab.javasource.JParameter.JParameter().
String org.exolab.javasource.JParameter.toString | ( | ) |
Returns the String representation of this JParameter. The String returns will consist of the String representation of the parameter type, followed by the name of the parameter
References org.exolab.javasource.JType.toString().
Referenced by org.exolab.javasource.JMethodSignature.print(), and org.exolab.javasource.JConstructor.print().