public final class Keyword extends Object implements Comparable<Keyword>
| Modifier and Type | Class and Description |
|---|---|
static class |
Keyword.Style |
| Modifier and Type | Field and Description |
|---|---|
static char |
SEP_COLON |
static char |
SEP_COMMA |
static char |
SEP_DASH |
static char |
SEP_DOT |
static char |
SEP_FORWARD_SLASH |
static char |
SEP_SEMI_COLON |
static char |
SEP_SLASH |
static char |
SEP_SPACE |
static char |
SEP_UNDERSCORE |
| Constructor and Description |
|---|
Keyword(CharSequence chars) |
| Modifier and Type | Method and Description |
|---|---|
String |
camelCase() |
int |
compareTo(Keyword o) |
String |
constantName() |
String |
dashed() |
boolean |
equals(Object obj) |
int |
hashCode() |
String |
httpHeader() |
String |
javaVariable() |
static Keyword |
of(CharSequence chars) |
String |
readable() |
List<String> |
tokens() |
String |
toString()
Returns string representation of this keyword using
underscore style |
String |
toString(Keyword.Style style)
Return string representation of this keyword using style specified
|
String |
underscore() |
public static final char SEP_SPACE
public static final char SEP_UNDERSCORE
public static final char SEP_DASH
public static final char SEP_COMMA
public static final char SEP_COLON
public static final char SEP_DOT
public static final char SEP_SEMI_COLON
public static final char SEP_SLASH
public static final char SEP_FORWARD_SLASH
public Keyword(CharSequence chars)
public String camelCase()
public String javaVariable()
public String constantName()
public String underscore()
public String dashed()
public String httpHeader()
public String readable()
public String toString()
underscore stylepublic String toString(Keyword.Style style)
style - the style used to print this keywordpublic int compareTo(Keyword o)
compareTo in interface Comparable<Keyword>public static Keyword of(CharSequence chars)
Copyright © 2017. All Rights Reserved.