xtc.type
Enum Type.Tag

java.lang.Object
  extended by java.lang.Enum<Type.Tag>
      extended by xtc.type.Type.Tag
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Type.Tag>
Enclosing class:
Type

public static enum Type.Tag
extends java.lang.Enum<Type.Tag>

A type's tag. Only leaves of the type hierarchy have their own tags. A type's tag is accessed through Type.tag() and Type.wtag().


Enum Constant Summary
ALIAS
          An alias.
ANNOTATED
          An annotated type.
ARRAY
          An array.
BOOLEAN
          A boolean.
CLASS
          A class.
ENUM
          An enum.
ENUMERATOR
          An enumerator.
ERROR
          An error.
FLOAT
          A float.
FUNCTION
          A function.
INSTANTIATED
          An instantiated type.
INTEGER
          An integer.
INTERFACE
          An interface.
INTERNAL
          An internal type.
INTERNAL_PARAMETER
          An internal parameter.
LABEL
          A label.
METHOD
          A method.
NAMED_PARAMETER
          A named parameter.
PACKAGE
          A package.
PARAMETERIZED
          A parameterized type.
POINTER
          A pointer.
STRUCT
          A struct.
TUPLE
          A tuple.
UNION
          A union.
UNIT
          A unit type.
VARIABLE
          A variable.
VARIANT
          A variant.
VOID
          A void type.
WILDCARD
          A wildcard.
 
Method Summary
static Type.Tag valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Type.Tag[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BOOLEAN

public static final Type.Tag BOOLEAN
A boolean.


ARRAY

public static final Type.Tag ARRAY
An array.


CLASS

public static final Type.Tag CLASS
A class.


INTERFACE

public static final Type.Tag INTERFACE
An interface.


FUNCTION

public static final Type.Tag FUNCTION
A function.


METHOD

public static final Type.Tag METHOD
A method.


NAMED_PARAMETER

public static final Type.Tag NAMED_PARAMETER
A named parameter.


INTERNAL_PARAMETER

public static final Type.Tag INTERNAL_PARAMETER
An internal parameter.


WILDCARD

public static final Type.Tag WILDCARD
A wildcard.


POINTER

public static final Type.Tag POINTER
A pointer.


STRUCT

public static final Type.Tag STRUCT
A struct.


TUPLE

public static final Type.Tag TUPLE
A tuple.


UNION

public static final Type.Tag UNION
A union.


VARIANT

public static final Type.Tag VARIANT
A variant.


ERROR

public static final Type.Tag ERROR
An error.


INTERNAL

public static final Type.Tag INTERNAL
An internal type.


LABEL

public static final Type.Tag LABEL
A label.


FLOAT

public static final Type.Tag FLOAT
A float.


INTEGER

public static final Type.Tag INTEGER
An integer.


PACKAGE

public static final Type.Tag PACKAGE
A package.


UNIT

public static final Type.Tag UNIT
A unit type.


VOID

public static final Type.Tag VOID
A void type.


ALIAS

public static final Type.Tag ALIAS
An alias.


ANNOTATED

public static final Type.Tag ANNOTATED
An annotated type.


ENUMERATOR

public static final Type.Tag ENUMERATOR
An enumerator.


ENUM

public static final Type.Tag ENUM
An enum.


INSTANTIATED

public static final Type.Tag INSTANTIATED
An instantiated type.


PARAMETERIZED

public static final Type.Tag PARAMETERIZED
A parameterized type.


VARIABLE

public static final Type.Tag VARIABLE
A variable.

Method Detail

values

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

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

valueOf

public static Type.Tag valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2012. All Rights Reserved.