Package com.vladsch.plugin.util
Class StudiedWord
- java.lang.Object
-
- com.vladsch.plugin.util.StudiedWord
-
public class StudiedWord extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static intALPHANUMERICstatic intCTRLstatic intDASHstatic intDASH_TO_UPPERstatic intDIGITSstatic intDOTstatic intEMPTYstatic intLETTERstatic intLOWERstatic intLOWER_TO_UPPERstatic intNOT_DEFINEDstatic intNULstatic intOTHERstatic intSEPARATORstatic intSLASHstatic intSPACEstatic intSYMBOLSstatic intUNDERstatic intUNDER_TO_UPPERstatic intUPPERstatic intUPPER_TO_LOWER
-
Constructor Summary
Constructors Constructor Description StudiedWord(java.lang.CharSequence word, int separators)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanall(int flags)static booleanall(int wordFlags, int flags)booleancanBeCamelCase()booleancanBeDashCase()booleancanBeDotCase()booleancanBeFirstCapDashCase()booleancanBeFirstCapDotCase()booleancanBeFirstCapSlashCase()booleancanBeFirstCapSnakeCase()booleancanBeMixedDashCase()booleancanBeMixedDotCase()booleancanBeMixedSlashCase()booleancanBeMixedSnakeCase()booleancanBePascalCase()booleancanBeProperCamelCase()booleancanBeScreamingDashCase()booleancanBeScreamingDotCase()booleancanBeScreamingSlashCase()booleancanBeScreamingSnakeCase()booleancanBeSlashCase()booleancanBeSnakeCase()static intcompute(char c)booleanfirst(int flags)static intflags(char c)static intflags(java.lang.CharSequence word)static intflags(java.lang.CharSequence word, int startIndex)static intflags(java.lang.CharSequence word, int startIndex, int endIndex)java.lang.CharSequencegetWord()booleanhasLowerCase()booleanhasLowerCaseOrUpperCase()booleanhasNoLowerCase()booleanhasNoUpperCase()booleanhasUpperCase()booleanidentifier()booleanis(int flags)static booleanis(int wordFlags, int flags)booleanisAnyDashCase()booleanisAnyDotCase()booleanisAnySlashCase()booleanisAnySnakeCase()booleanisCamelCase()booleanisDashCase()booleanisDotCase()booleanisFirstCapDashCase()booleanisFirstCapDotCase()booleanisFirstCapSlashCase()booleanisFirstCapSnakeCase()booleanisLowerCase()booleanisMixedDashCase()booleanisMixedDotCase()booleanisMixedSlashCase()booleanisMixedSnakeCase()booleanisPascalCase()booleanisProperCamelCase()booleanisScreamingDashCase()booleanisScreamingDotCase()booleanisScreamingSlashCase()booleanisScreamingSnakeCase()booleanisSlashCase()booleanisSnakeCase()booleanisUpperCase()booleanlast(int flags)java.lang.StringmakeCamelCase()java.lang.StringmakeDashCase()java.lang.StringmakeDotCase()java.lang.StringmakeFirstCapDashCase()java.lang.StringmakeFirstCapDotCase()java.lang.StringmakeFirstCapSlashCase()java.lang.StringmakeFirstCapSnakeCase()java.lang.StringmakeMixedDashCase()java.lang.StringmakeMixedDotCase()java.lang.StringmakeMixedSeparatorCase(char separator)java.lang.StringmakeMixedSlashCase()java.lang.StringmakeMixedSnakeCase()java.lang.StringmakePascalCase()java.lang.StringmakeProperCamelCase()static java.lang.StringmakeProperFirstCapCase(java.lang.String s)java.lang.StringmakeScreamingDashCase()java.lang.StringmakeScreamingDotCase()java.lang.StringmakeScreamingSlashCase()java.lang.StringmakeScreamingSnakeCase()java.lang.StringmakeSlashCase()java.lang.StringmakeSnakeCase()booleannone(int flags)static booleannone(int wordFlags, int flags)static StudiedWordof(java.lang.CharSequence word, int separators)booleanonly(int flags)static booleanonly(int wordFlags, int flags)booleanrest(int flags)booleansecond(int flags)static intseparatorCharFlags(char separator)booleansome(int flags)static booleansome(int wordFlags, int flags)
-
-
-
Field Detail
-
EMPTY
public static final int EMPTY
- See Also:
- Constant Field Values
-
NUL
public static final int NUL
- See Also:
- Constant Field Values
-
CTRL
public static final int CTRL
- See Also:
- Constant Field Values
-
SPACE
public static final int SPACE
- See Also:
- Constant Field Values
-
UNDER
public static final int UNDER
- See Also:
- Constant Field Values
-
DOT
public static final int DOT
- See Also:
- Constant Field Values
-
DASH
public static final int DASH
- See Also:
- Constant Field Values
-
SLASH
public static final int SLASH
- See Also:
- Constant Field Values
-
DIGITS
public static final int DIGITS
- See Also:
- Constant Field Values
-
LOWER
public static final int LOWER
- See Also:
- Constant Field Values
-
UPPER
public static final int UPPER
- See Also:
- Constant Field Values
-
SYMBOLS
public static final int SYMBOLS
- See Also:
- Constant Field Values
-
OTHER
public static final int OTHER
- See Also:
- Constant Field Values
-
NOT_DEFINED
public static final int NOT_DEFINED
- See Also:
- Constant Field Values
-
LOWER_TO_UPPER
public static final int LOWER_TO_UPPER
- See Also:
- Constant Field Values
-
UNDER_TO_UPPER
public static final int UNDER_TO_UPPER
- See Also:
- Constant Field Values
-
DASH_TO_UPPER
public static final int DASH_TO_UPPER
- See Also:
- Constant Field Values
-
UPPER_TO_LOWER
public static final int UPPER_TO_LOWER
- See Also:
- Constant Field Values
-
LETTER
public static final int LETTER
- See Also:
- Constant Field Values
-
ALPHANUMERIC
public static final int ALPHANUMERIC
- See Also:
- Constant Field Values
-
SEPARATOR
public static final int SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
separatorCharFlags
public static int separatorCharFlags(char separator)
-
of
public static StudiedWord of(java.lang.CharSequence word, int separators)
-
getWord
public java.lang.CharSequence getWord()
-
some
public boolean some(int flags)
-
none
public boolean none(int flags)
-
only
public boolean only(int flags)
-
is
public boolean is(int flags)
-
all
public boolean all(int flags)
-
first
public boolean first(int flags)
-
rest
public boolean rest(int flags)
-
second
public boolean second(int flags)
-
last
public boolean last(int flags)
-
identifier
public boolean identifier()
-
compute
public static int compute(char c)
-
flags
public static int flags(char c)
-
flags
public static int flags(java.lang.CharSequence word)
-
flags
public static int flags(java.lang.CharSequence word, int startIndex)
-
flags
public static int flags(java.lang.CharSequence word, int startIndex, int endIndex)
-
some
public static boolean some(int wordFlags, int flags)
-
none
public static boolean none(int wordFlags, int flags)
-
only
public static boolean only(int wordFlags, int flags)
-
is
public static boolean is(int wordFlags, int flags)
-
all
public static boolean all(int wordFlags, int flags)
-
isAnySnakeCase
public boolean isAnySnakeCase()
-
isAnyDashCase
public boolean isAnyDashCase()
-
isAnyDotCase
public boolean isAnyDotCase()
-
isAnySlashCase
public boolean isAnySlashCase()
-
isMixedSnakeCase
public boolean isMixedSnakeCase()
-
isMixedDashCase
public boolean isMixedDashCase()
-
isMixedDotCase
public boolean isMixedDotCase()
-
isMixedSlashCase
public boolean isMixedSlashCase()
-
isFirstCapSnakeCase
public boolean isFirstCapSnakeCase()
-
isFirstCapDashCase
public boolean isFirstCapDashCase()
-
isFirstCapDotCase
public boolean isFirstCapDotCase()
-
isFirstCapSlashCase
public boolean isFirstCapSlashCase()
-
isScreamingSnakeCase
public boolean isScreamingSnakeCase()
-
isScreamingDashCase
public boolean isScreamingDashCase()
-
isScreamingDotCase
public boolean isScreamingDotCase()
-
isScreamingSlashCase
public boolean isScreamingSlashCase()
-
isSnakeCase
public boolean isSnakeCase()
-
isDashCase
public boolean isDashCase()
-
isDotCase
public boolean isDotCase()
-
isSlashCase
public boolean isSlashCase()
-
isCamelCase
public boolean isCamelCase()
-
isProperCamelCase
public boolean isProperCamelCase()
-
isPascalCase
public boolean isPascalCase()
-
hasNoUpperCase
public boolean hasNoUpperCase()
-
hasNoLowerCase
public boolean hasNoLowerCase()
-
hasUpperCase
public boolean hasUpperCase()
-
hasLowerCase
public boolean hasLowerCase()
-
hasLowerCaseOrUpperCase
public boolean hasLowerCaseOrUpperCase()
-
isLowerCase
public boolean isLowerCase()
-
isUpperCase
public boolean isUpperCase()
-
makeMixedSeparatorCase
public java.lang.String makeMixedSeparatorCase(char separator)
-
makeProperFirstCapCase
public static java.lang.String makeProperFirstCapCase(java.lang.String s)
-
makeMixedSnakeCase
public java.lang.String makeMixedSnakeCase()
-
makeMixedDotCase
public java.lang.String makeMixedDotCase()
-
makeMixedDashCase
public java.lang.String makeMixedDashCase()
-
makeMixedSlashCase
public java.lang.String makeMixedSlashCase()
-
makeFirstCapSnakeCase
public java.lang.String makeFirstCapSnakeCase()
-
makeFirstCapDotCase
public java.lang.String makeFirstCapDotCase()
-
makeFirstCapDashCase
public java.lang.String makeFirstCapDashCase()
-
makeFirstCapSlashCase
public java.lang.String makeFirstCapSlashCase()
-
makeCamelCase
public java.lang.String makeCamelCase()
-
makeProperCamelCase
public java.lang.String makeProperCamelCase()
-
makePascalCase
public java.lang.String makePascalCase()
-
makeScreamingSnakeCase
public java.lang.String makeScreamingSnakeCase()
-
makeSnakeCase
public java.lang.String makeSnakeCase()
-
makeScreamingDashCase
public java.lang.String makeScreamingDashCase()
-
makeDashCase
public java.lang.String makeDashCase()
-
makeScreamingDotCase
public java.lang.String makeScreamingDotCase()
-
makeDotCase
public java.lang.String makeDotCase()
-
makeScreamingSlashCase
public java.lang.String makeScreamingSlashCase()
-
makeSlashCase
public java.lang.String makeSlashCase()
-
canBeMixedSnakeCase
public boolean canBeMixedSnakeCase()
-
canBeFirstCapSnakeCase
public boolean canBeFirstCapSnakeCase()
-
canBeScreamingSnakeCase
public boolean canBeScreamingSnakeCase()
-
canBeSnakeCase
public boolean canBeSnakeCase()
-
canBeMixedDashCase
public boolean canBeMixedDashCase()
-
canBeFirstCapDashCase
public boolean canBeFirstCapDashCase()
-
canBeScreamingDashCase
public boolean canBeScreamingDashCase()
-
canBeDashCase
public boolean canBeDashCase()
-
canBeMixedDotCase
public boolean canBeMixedDotCase()
-
canBeFirstCapDotCase
public boolean canBeFirstCapDotCase()
-
canBeScreamingDotCase
public boolean canBeScreamingDotCase()
-
canBeDotCase
public boolean canBeDotCase()
-
canBeMixedSlashCase
public boolean canBeMixedSlashCase()
-
canBeFirstCapSlashCase
public boolean canBeFirstCapSlashCase()
-
canBeScreamingSlashCase
public boolean canBeScreamingSlashCase()
-
canBeSlashCase
public boolean canBeSlashCase()
-
canBeCamelCase
public boolean canBeCamelCase()
-
canBeProperCamelCase
public boolean canBeProperCamelCase()
-
canBePascalCase
public boolean canBePascalCase()
-
-