Class JParameter


  • public class JParameter
    extends Object
    Represents a parameter to a JMethod.
    Version:
    $Revision$ $Date$
    Author:
    Keith Visco
    • Method Detail

      • getName

        public String getName()
        Returns the name of the parameter
        Returns:
        the name of the parameter
      • getType

        public JType getType()
        Returns the parameter type
        Returns:
        the parameter type
      • setName

        public void setName​(String name)
        Sets the name of this parameter
        Parameters:
        name - the new name of the parameter
      • toString

        public String 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
        Overrides:
        toString in class Object
        Returns:
        the String representation of this JParameter
      • getAnnotations

        public JAnnotations getAnnotations()
        Returns:
        the annotations
      • appendAnnotation

        public void appendAnnotation​(String annotation)
        Parameters:
        annotation - the annotation to append
      • setAnnotations

        public void setAnnotations​(JAnnotations annotations)
        Parameters:
        annotations - the annotations to set