xtc.type
Enum NumberT.Kind

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

public static enum NumberT.Kind
extends java.lang.Enum<NumberT.Kind>

The number kind.


Enum Constant Summary
BYTE
          A signed byte.
CHAR
          A char.
DOUBLE
          A double.
DOUBLE_COMPLEX
          A double complex.
FLOAT
          A float.
FLOAT_COMPLEX
          A float complex.
INT
          An int.
LONG
          A signed long.
LONG_DOUBLE
          A long double.
LONG_DOUBLE_COMPLEX
          A long double complex.
LONG_LONG
          A signed long long.
S_CHAR
          A signed char.
S_INT
          A signed int.
SHORT
          A signed short.
U_CHAR
          An unsigned char.
U_INT
          An unsigned int.
U_LONG
          An unsigned long.
U_LONG_LONG
          An unsigned long long.
U_SHORT
          An unsigned short.
 
Method Summary
static NumberT.Kind valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static NumberT.Kind[] 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

BYTE

public static final NumberT.Kind BYTE
A signed byte.


CHAR

public static final NumberT.Kind CHAR
A char.


S_CHAR

public static final NumberT.Kind S_CHAR
A signed char.


U_CHAR

public static final NumberT.Kind U_CHAR
An unsigned char.


SHORT

public static final NumberT.Kind SHORT
A signed short.


U_SHORT

public static final NumberT.Kind U_SHORT
An unsigned short.


INT

public static final NumberT.Kind INT
An int. Per C99 6.7.2, it depends on the implementation whether int appearing by itself in a bit-field is signed or unsigned. Hence we distinguish between ints and signed ints. (Whatever.)


S_INT

public static final NumberT.Kind S_INT
A signed int.


U_INT

public static final NumberT.Kind U_INT
An unsigned int.


LONG

public static final NumberT.Kind LONG
A signed long.


U_LONG

public static final NumberT.Kind U_LONG
An unsigned long.


LONG_LONG

public static final NumberT.Kind LONG_LONG
A signed long long.


U_LONG_LONG

public static final NumberT.Kind U_LONG_LONG
An unsigned long long.


FLOAT

public static final NumberT.Kind FLOAT
A float.


DOUBLE

public static final NumberT.Kind DOUBLE
A double.


LONG_DOUBLE

public static final NumberT.Kind LONG_DOUBLE
A long double.


FLOAT_COMPLEX

public static final NumberT.Kind FLOAT_COMPLEX
A float complex.


DOUBLE_COMPLEX

public static final NumberT.Kind DOUBLE_COMPLEX
A double complex.


LONG_DOUBLE_COMPLEX

public static final NumberT.Kind LONG_DOUBLE_COMPLEX
A long double complex.

Method Detail

values

public static NumberT.Kind[] 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 (NumberT.Kind c : NumberT.Kind.values())
    System.out.println(c);

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

valueOf

public static NumberT.Kind 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.