edu.rice.cs.plt.recur
Enum RecurUtil.ArrayStringMode

java.lang.Object
  extended by java.lang.Enum<RecurUtil.ArrayStringMode>
      extended by edu.rice.cs.plt.recur.RecurUtil.ArrayStringMode
All Implemented Interfaces:
Serializable, Comparable<RecurUtil.ArrayStringMode>
Enclosing class:
RecurUtil

public static enum RecurUtil.ArrayStringMode
extends Enum<RecurUtil.ArrayStringMode>

Defines the representation to be used in array string-generating methods


Enum Constant Summary
CLASS_NAME
          Arrays are printed according to the array toString method
DEEP_BRACED
          Arrays are printed like array initializers, using braces ("{ 1, 2, 3 }"); nested arrays also use DEEP_BRACED
DEEP_BRACKETED
          Arrays are printed as in Arrays#deepToString, like "[1, 2, 3]"; nested arrays also use #DEEP_BRACKETED
DEEP_MULTILINE
          Arrays are printed with a single entry on each line; nested arrays use DEEP_BRACED
SHALLOW_BRACED
          Arrays are printed like array initializers, using braces ("{ 1, 2, 3 }"); nested arrays use TYPE_AND_SIZE
SHALLOW_BRACKETED
          Arrays are printed as in Arrays#toString(Object[]), like "[1, 2, 3]"; nested arrays use CLASS_NAME
SHALLOW_MULTILINE
          Arrays are printed with a single entry on each line; nested arrays use SHALLOW_BRACED
TYPE_AND_SIZE
          Arrays are printed with an element type name and a size, like "String[10]"
 
Method Summary
protected abstract  String delimiter()
           
protected abstract  RecurUtil.ArrayStringMode nestedMode()
           
protected abstract  String prefix()
           
protected abstract  String suffix()
           
static RecurUtil.ArrayStringMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RecurUtil.ArrayStringMode[] 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

CLASS_NAME

public static final RecurUtil.ArrayStringMode CLASS_NAME
Arrays are printed according to the array toString method


TYPE_AND_SIZE

public static final RecurUtil.ArrayStringMode TYPE_AND_SIZE
Arrays are printed with an element type name and a size, like "String[10]"


SHALLOW_BRACKETED

public static final RecurUtil.ArrayStringMode SHALLOW_BRACKETED
Arrays are printed as in Arrays#toString(Object[]), like "[1, 2, 3]"; nested arrays use CLASS_NAME


DEEP_BRACKETED

public static final RecurUtil.ArrayStringMode DEEP_BRACKETED
Arrays are printed as in Arrays#deepToString, like "[1, 2, 3]"; nested arrays also use #DEEP_BRACKETED


SHALLOW_BRACED

public static final RecurUtil.ArrayStringMode SHALLOW_BRACED
Arrays are printed like array initializers, using braces ("{ 1, 2, 3 }"); nested arrays use TYPE_AND_SIZE


DEEP_BRACED

public static final RecurUtil.ArrayStringMode DEEP_BRACED
Arrays are printed like array initializers, using braces ("{ 1, 2, 3 }"); nested arrays also use DEEP_BRACED


DEEP_MULTILINE

public static final RecurUtil.ArrayStringMode DEEP_MULTILINE
Arrays are printed with a single entry on each line; nested arrays use DEEP_BRACED


SHALLOW_MULTILINE

public static final RecurUtil.ArrayStringMode SHALLOW_MULTILINE
Arrays are printed with a single entry on each line; nested arrays use SHALLOW_BRACED

Method Detail

values

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

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

valueOf

public static RecurUtil.ArrayStringMode 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
NullPointerException - if the argument is null

prefix

protected abstract String prefix()

delimiter

protected abstract String delimiter()

suffix

protected abstract String suffix()

nestedMode

protected abstract RecurUtil.ArrayStringMode nestedMode()