Class JParameter
java.lang.Object
org.exolab.javasource.JAnnotatedElementHelper
org.exolab.javasource.JParameter
- All Implemented Interfaces:
JAnnotatedElement
Represents a parameter to a JMethod.
- Version:
- $Revision: 7918 $ $Date: 2005-03-05 06:42:06 -0700 (Sat, 05 Mar 2005) $
- Author:
- Keith Visco
-
Constructor Summary
ConstructorsConstructorDescriptionJParameter(JType type, String name) Creates a new JParameter with the given type, and name. -
Method Summary
Methods inherited from class JAnnotatedElementHelper
addAnnotation, getAnnotation, getAnnotations, hasAnnotations, isAnnotationPresent, printAnnotations, removeAnnotationModifier and TypeMethodDescriptionfinal voidaddAnnotation(JAnnotation annotation) Adds a JAnnotation to this source element.final JAnnotationgetAnnotation(JAnnotationType annotationType) Retrieves a JAnnotation for the given JAnnotationType, returns null if no annotation has been set.final JAnnotation[]Returns a list of JAnnotation's already set on this source element.final booleanReturns true if this source element has any annotations.final booleanisAnnotationPresent(JAnnotationType annotationType) Returns true if a JAnnotation exists for the given JAnnotationType.final booleanOutputs the list of annotations maintained by this object.final JAnnotationremoveAnnotation(JAnnotationType annotationType) Removes the JAnnotation from this source element for the given JAnnotationType.
-
Constructor Details
-
JParameter
-
-
Method Details
-
getName
-
getType
-
setName
Sets the name of this parameter.- Parameters:
name- The new name of the parameter.
-
setType
Sets the type of this parameter.- Parameters:
type- The new JType of this parameter.
-
toString
-