public enum Case extends Enum<Case>
Enum Constant and Description |
---|
CAMEL
Camel case, for instance FooBar.
|
KEBAB
Kebab case, for instance foo-bar.
|
QUALIFIED |
SNAKE
Snake case, for instance foo_bar.
|
Modifier and Type | Method and Description |
---|---|
abstract String |
format(Iterable<String> atoms) |
abstract List<String> |
parse(String name)
Parse the
name argument and returns a list of the name atoms. |
static Case |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Case[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static Map<String,Case> |
vars()
Useful for testing the method kind, allows to do method.kind == METHOD_HANDLER instead of method.kind.name() == "HANDLER"
|
public static final Case CAMEL
public static final Case QUALIFIED
public static final Case KEBAB
public static final Case SNAKE
public static Case[] values()
for (Case c : Case.values()) System.out.println(c);
public static Case 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 nullpublic abstract List<String> parse(String name)
name
argument and returns a list of the name atoms.name
- the name to parseIllegalArgumentException
- if the name has a syntax errorCopyright © 2015. All Rights Reserved.