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