CS 536 Fall 2007, Project 5

Enum Type.Kind

Object
  extended by Enum<Type.Kind>
      extended by Type.Kind
All Implemented Interfaces:
Serializable, Comparable<Type.Kind>
Enclosing class:
Type

public static enum Type.Kind
extends Enum<Type.Kind>

One of SCALAR, PROCEDURE, or ARRAY.


Enum Constant Summary
ARRAY
          An array of baseType.
PROCEDURE
          A FUNC or PROC returning baseType.
SCALAR
          A simple type (integer, string, etc).
 
Method Summary
static Type.Kind valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Type.Kind[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SCALAR

public static final Type.Kind SCALAR
A simple type (integer, string, etc).


PROCEDURE

public static final Type.Kind PROCEDURE
A FUNC or PROC returning baseType.


ARRAY

public static final Type.Kind ARRAY
An array of baseType.

Method Detail

values

public static final Type.Kind[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Type.Kind c : Type.Kind.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Type.Kind valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

CS 536 Fall 2007, Project 5