kawigi.language
Enum EditorDataType

java.lang.Object
  extended by java.lang.Enum<EditorDataType>
      extended by kawigi.language.EditorDataType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EditorDataType>

public enum EditorDataType
extends java.lang.Enum<EditorDataType>

This enum represents all the data types supported by TopCoder as input or output types. Technically, CharacterArray probably won't be used.


Enum Constant Summary
Character
          char type.
CharacterArray
          char[] or vector type.
Double
          double type.
DoubleArray
          double[] or vector type.
Integer
          int type.
IntegerArray
          int[] or vector type.
Long
          long (or long long) type.
LongArray
          long[] or vector type.
String
          String type.
StringArray
          String[] or vector type.
 
Method Summary
 EditorDataType getPrimitiveType()
          Returns the type of elements of this type if this is an array type.
 boolean isArrayType()
          Returns true if this type represents an array type.
 boolean isType(EditorDataType type)
          Returns true if type is the same as this type, or if either this type or the given type represents an array/vector of the other.
static EditorDataType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EditorDataType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

String

public static final EditorDataType String
String type.


Integer

public static final EditorDataType Integer
int type.


Double

public static final EditorDataType Double
double type.


Long

public static final EditorDataType Long
long (or long long) type.


Character

public static final EditorDataType Character
char type.


StringArray

public static final EditorDataType StringArray
String[] or vector type.


IntegerArray

public static final EditorDataType IntegerArray
int[] or vector type.


DoubleArray

public static final EditorDataType DoubleArray
double[] or vector type.


LongArray

public static final EditorDataType LongArray
long[] or vector type.


CharacterArray

public static final EditorDataType CharacterArray
char[] or vector type.

Method Detail

values

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

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

valueOf

public static EditorDataType 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

getPrimitiveType

public EditorDataType getPrimitiveType()
Returns the type of elements of this type if this is an array type.


isArrayType

public boolean isArrayType()
Returns true if this type represents an array type.


isType

public boolean isType(EditorDataType type)
Returns true if type is the same as this type, or if either this type or the given type represents an array/vector of the other.