public final class NameUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
NameUtil.Matcher
Deprecated.
use
Matcher |
static class |
NameUtil.MatcherBuilder |
static class |
NameUtil.MatchingCaseSensitivity |
Modifier and Type | Method and Description |
---|---|
static NameUtil.MatcherBuilder |
buildMatcher(java.lang.String pattern) |
static Matcher |
buildMatcher(java.lang.String pattern,
int exactPrefixLen,
boolean allowToUpper,
boolean allowToLower) |
static Matcher |
buildMatcher(java.lang.String pattern,
int exactPrefixLen,
boolean allowToUpper,
boolean allowToLower,
boolean lowerCaseWords)
Deprecated.
Parameter
lowerCaseWords is ignored, same as buildMatcher(String, int, boolean, boolean) |
static MinusculeMatcher |
buildMatcher(java.lang.String pattern,
NameUtil.MatchingCaseSensitivity options) |
static MinusculeMatcher |
buildMatcherWithFallback(java.lang.String pattern,
java.lang.String fallbackPattern,
NameUtil.MatchingCaseSensitivity options) |
static java.lang.String |
buildRegexp(java.lang.String pattern,
int exactPrefixLen,
boolean allowToUpper,
boolean allowToLower) |
static java.lang.String |
buildRegexp(java.lang.String pattern,
int exactPrefixLen,
boolean allowToUpper,
boolean allowToLower,
boolean lowerCaseWords,
boolean forCompletion) |
static java.lang.String |
capitalizeAndUnderscore(java.lang.String name) |
static java.util.List<java.lang.String> |
getSuggestionsByName(java.lang.String name,
java.lang.String prefix,
java.lang.String suffix,
boolean upperCaseStyle,
boolean preferLongerNames,
boolean isArray) |
static java.lang.String [] |
nameToWords(java.lang.String name) |
static java.util.List<java.lang.String> |
nameToWordsLowerCase(java.lang.String name) |
static java.lang.String [] |
splitNameIntoWords(java.lang.String name) |
static java.lang.String |
splitWords(java.lang.String text,
char separator,
Function<? super java.lang.String,java.lang.String> transformWord) |
public static java.util.List<java.lang.String> nameToWordsLowerCase(java.lang.String name)
public static java.lang.String buildRegexp(java.lang.String pattern, int exactPrefixLen, boolean allowToUpper, boolean allowToLower)
public static java.lang.String buildRegexp(java.lang.String pattern, int exactPrefixLen, boolean allowToUpper, boolean allowToLower, boolean lowerCaseWords, boolean forCompletion)
public static java.util.List<java.lang.String> getSuggestionsByName(java.lang.String name, java.lang.String prefix, java.lang.String suffix, boolean upperCaseStyle, boolean preferLongerNames, boolean isArray)
public static java.lang.String [] splitNameIntoWords(java.lang.String name)
public static java.lang.String [] nameToWords(java.lang.String name)
public static Matcher buildMatcher(java.lang.String pattern, int exactPrefixLen, boolean allowToUpper, boolean allowToLower)
@Deprecated public static Matcher buildMatcher(java.lang.String pattern, int exactPrefixLen, boolean allowToUpper, boolean allowToLower, boolean lowerCaseWords)
lowerCaseWords
is ignored, same as buildMatcher(String, int, boolean, boolean)
public static NameUtil.MatcherBuilder buildMatcher(java.lang.String pattern)
public static MinusculeMatcher buildMatcher(java.lang.String pattern, NameUtil.MatchingCaseSensitivity options)
public static MinusculeMatcher buildMatcherWithFallback(java.lang.String pattern, java.lang.String fallbackPattern, NameUtil.MatchingCaseSensitivity options)
public static java.lang.String capitalizeAndUnderscore(java.lang.String name)
public static java.lang.String splitWords(java.lang.String text, char separator, Function<? super java.lang.String,java.lang.String> transformWord)