|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<RecurUtil.ArrayStringMode>
edu.rice.cs.plt.recur.RecurUtil.ArrayStringMode
public static 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 |
|---|
public static final RecurUtil.ArrayStringMode CLASS_NAME
toString method
public static final RecurUtil.ArrayStringMode TYPE_AND_SIZE
"String[10]"
public static final RecurUtil.ArrayStringMode SHALLOW_BRACKETED
Arrays#toString(Object[]), like
"[1, 2, 3]"; nested arrays use CLASS_NAME
public static final RecurUtil.ArrayStringMode DEEP_BRACKETED
Arrays#deepToString, like "[1, 2, 3]";
nested arrays also use #DEEP_BRACKETED
public static final RecurUtil.ArrayStringMode SHALLOW_BRACED
"{ 1, 2, 3 }");
nested arrays use TYPE_AND_SIZE
public static final RecurUtil.ArrayStringMode DEEP_BRACED
"{ 1, 2, 3 }");
nested arrays also use DEEP_BRACED
public static final RecurUtil.ArrayStringMode DEEP_MULTILINE
DEEP_BRACED
public static final RecurUtil.ArrayStringMode SHALLOW_MULTILINE
SHALLOW_BRACED
| Method Detail |
|---|
public static RecurUtil.ArrayStringMode[] values()
for (RecurUtil.ArrayStringMode c : RecurUtil.ArrayStringMode.values()) System.out.println(c);
public static RecurUtil.ArrayStringMode valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullprotected abstract String prefix()
protected abstract String delimiter()
protected abstract String suffix()
protected abstract RecurUtil.ArrayStringMode nestedMode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||