public static enum FormatterTreeUtil.InvocationType extends Enum<FormatterTreeUtil.InvocationType>
Enum Constant and Description |
---|
ARRAY
The parameters are passed as array.
|
NULLARRAY
A null array is passed to the format method.
|
VARARG
The parameters are passed as varargs.
|
Modifier and Type | Method and Description |
---|---|
static FormatterTreeUtil.InvocationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FormatterTreeUtil.InvocationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FormatterTreeUtil.InvocationType VARARG
String.format("%s %d", "Example", 7);
public static final FormatterTreeUtil.InvocationType ARRAY
Object[] a = new Object[]{"Example",7}; String.format("%s %d", a);
public static final FormatterTreeUtil.InvocationType NULLARRAY
String.format("%s %d", (Object[])null);
public static FormatterTreeUtil.InvocationType[] values()
for (FormatterTreeUtil.InvocationType c : FormatterTreeUtil.InvocationType.values()) System.out.println(c);
public static FormatterTreeUtil.InvocationType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null