1. /*
  2. * @(#)Parameter.java 1.11 04/04/30
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.javadoc;
  8. /**
  9. * Parameter information.
  10. * This includes a parameter type and parameter name.
  11. *
  12. * @author Robert Field
  13. */
  14. public interface Parameter {
  15. /**
  16. * Get the type of this parameter.
  17. */
  18. Type type();
  19. /**
  20. * Get local name of this parameter.
  21. * For example if parameter is the short 'index', returns "index".
  22. */
  23. String name();
  24. /**
  25. * Get type name of this parameter.
  26. * For example if parameter is the short 'index', returns "short".
  27. * <p>
  28. * This method returns a complete string
  29. * representation of the type, including the dimensions of arrays and
  30. * the type arguments of parameterized types. Names are qualified.
  31. */
  32. String typeName();
  33. /**
  34. * Returns a string representation of the parameter.
  35. * <p>
  36. * For example if parameter is the short 'index', returns "short index".
  37. *
  38. * @return type and parameter name of this parameter.
  39. */
  40. String toString();
  41. /**
  42. * Get the annotations of this parameter.
  43. * Return an empty array if there are none.
  44. *
  45. * @return the annotations of this parameter.
  46. * @since 1.5
  47. */
  48. AnnotationDesc[] annotations();
  49. }