1. /*
  2. * @(#)PrimitiveType.java 1.1 04/01/26
  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.mirror.type;
  8. /**
  9. * Represents a primitive type. These include
  10. * <tt>boolean</tt>, <tt>byte</tt>, <tt>short</tt>, <tt>int</tt>,
  11. * <tt>long</tt>, <tt>char</tt>, <tt>float</tt>, and <tt>double</tt>.
  12. *
  13. * @author Joseph D. Darcy
  14. * @author Scott Seligman
  15. * @version 1.1 04/01/26
  16. * @since 1.5
  17. */
  18. public interface PrimitiveType extends TypeMirror {
  19. /**
  20. * Returns the kind of primitive type that this object represents.
  21. *
  22. * @return the kind of primitive type that this object represents
  23. */
  24. Kind getKind();
  25. /**
  26. * An enumeration of the different kinds of primitive types.
  27. */
  28. enum Kind {
  29. /** The primitive type <tt>boolean</tt> */ BOOLEAN,
  30. /** The primitive type <tt>byte</tt> */ BYTE,
  31. /** The primitive type <tt>short</tt> */ SHORT,
  32. /** The primitive type <tt>int</tt> */ INT,
  33. /** The primitive type <tt>long</tt> */ LONG,
  34. /** The primitive type <tt>char</tt> */ CHAR,
  35. /** The primitive type <tt>float</tt> */ FLOAT,
  36. /** The primitive type <tt>double</tt> */ DOUBLE
  37. }
  38. }