What JAX-RPC name binding tells us is that even such basic method like "isLetter" can be different depending on the situation. For this reason, a whole lot of methods are made non-static, even though they look like they should be static.
| Modifier and Type | Field and Description |
|---|---|
| private static final byte | |
| private static final byte | |
| private static final byte | |
| private static final byte | |
| private static final byte[] | actionTable
Look up table for actions. |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | capitalize(String s)
Capitalizes the first character of the specified string, and de-capitalize the rest of characters. |
| protected int | |
| private static byte | decideAction(int t0, int t1)
Decide the action to be taken given the classification of the preceding character 't0' and the classification of the next character 't1'. |
| public static void | escape(StringBuilder
StringBuffer that receives escaped string. sb, String String to be escaped. s, int start)s.substring(start)
will be escaped and copied to the string buffer.Escapes characters is the given string so that they can be printed by only using US-ASCII characters. |
| private static String | |
| protected static boolean | |
| protected boolean | |
| protected static boolean | |
| protected boolean | |
| protected static boolean | |
| private int | |
| public String | Returns: Always return a string but there's no guarantee that the generated code is a valid Java identifier.Formats a string into "THIS_KIND_OF_FORMAT_ABC_DEF". |
| public String | Returns: Always return a string but there's no guarantee that the generated code is a valid Java identifier.Formats a string into "THIS_KIND_OF_FORMAT_ABC_DEF". |
| private String | |
| protected String | |
| protected String | |
| private String | |
| private String | |
| public List |
| ACTION_BREAK | back to summary |
|---|---|
| private static final byte ACTION_BREAK | |
| ACTION_CHECK_C2 | back to summary |
|---|---|
| private static final byte ACTION_CHECK_C2 | |
| ACTION_CHECK_PUNCT | back to summary |
|---|---|
| private static final byte ACTION_CHECK_PUNCT | |
| ACTION_NOBREAK | back to summary |
|---|---|
| private static final byte ACTION_NOBREAK | |
| actionTable | back to summary |
|---|---|
| private static final byte[] actionTable Look up table for actions. type0*5+type1 would yield the action to be taken. | |
| DIGIT | back to summary |
|---|---|
| protected static final int DIGIT | |
| LOWER_LETTER | back to summary |
|---|---|
| protected static final int LOWER_LETTER | |
| OTHER | back to summary |
|---|---|
| protected static final int OTHER | |
| OTHER_LETTER | back to summary |
|---|---|
| protected static final int OTHER_LETTER | |
| UPPER_LETTER | back to summary |
|---|---|
| protected static final int UPPER_LETTER | |
| NameUtil | back to summary |
|---|---|
| pack-priv NameUtil() | |
| capitalize | back to summary |
|---|---|
| public String capitalize(String s) Capitalizes the first character of the specified string, and de-capitalize the rest of characters. | |
| classify | back to summary |
|---|---|
| protected int classify(char c0) Classify a character into 5 categories that determine the word break. | |
| decideAction | back to summary |
|---|---|
| private static byte decideAction(int t0, int t1) Decide the action to be taken given the classification of the preceding character 't0' and the classification of the next character 't1'. | |
| escape | back to summary |
|---|---|
| public static void escape(StringBuilder sb, String s, int start) Escapes characters is the given string so that they can be printed by only using US-ASCII characters. The escaped characters will be appended to the given StringBuffer.
| |
| escape | back to summary |
|---|---|
| private static String escape(String s) Escapes characters that are unusable as Java identifiers by replacing unsafe characters with safe characters. | |
| isDigit | back to summary |
|---|---|
| protected static boolean isDigit(char c) | |
| isLetter | back to summary |
|---|---|
| protected boolean isLetter(char c) | |
| isLower | back to summary |
|---|---|
| protected static boolean isLower(char c) | |
| isPunct | back to summary |
|---|---|
| protected boolean isPunct(char c) | |
| isUpper | back to summary |
|---|---|
| protected static boolean isUpper(char c) | |
| nextBreak | back to summary |
|---|---|
| private int nextBreak(String s, int start) | |
| toConstantName | back to summary |
|---|---|
| public String toConstantName(String s) Formats a string into "THIS_KIND_OF_FORMAT_ABC_DEF".
| |
| toConstantName | back to summary |
|---|---|
| public String toConstantName(List<String> ss) Formats a string into "THIS_KIND_OF_FORMAT_ABC_DEF".
| |
| toLowerCase | back to summary |
|---|---|
| private String toLowerCase(String s) | |
| toMixedCaseName | back to summary |
|---|---|
| protected String toMixedCaseName(List<String> ss, boolean startUpper) | |
| toMixedCaseVariableName | back to summary |
|---|---|
| protected String toMixedCaseVariableName(String[] ss, boolean startUpper, boolean cdrUpper) | |
| toUpperCase | back to summary |
|---|---|
| private String toUpperCase(char c) | |
| toUpperCase | back to summary |
|---|---|
| private String toUpperCase(String s) | |
| toWordList | back to summary |
|---|---|
| public List Tokenizes a string into words and capitalizes the first character of each word. This method uses a change in character type as a splitter of two words. For example, "abc100ghi" will be splitted into {"Abc", "100","Ghi"}. | |