Class Dictionary.FlagParsingStrategy
java.lang.Object
org.apache.lucene.analysis.hunspell.Dictionary.FlagParsingStrategy
- Direct Known Subclasses:
Dictionary.DefaultAsUtf8FlagParsingStrategy
,Dictionary.DoubleASCIIFlagParsingStrategy
,Dictionary.NumFlagParsingStrategy
,Dictionary.SimpleFlagParsingStrategy
- Enclosing class:
- Dictionary
Abstraction of the process of parsing flags taken from the affix and dic files
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) char
Parses the given String into a single flag(package private) abstract char[]
parseFlags
(String rawFlags) Parses the given String into multiple flags(package private) char[]
parseUtfFlags
(String flagsInUtf) Parse flags from a string resulting fromprintFlags(char[])
(package private) abstract String
printFlag
(char flag) (package private) String
printFlags
(char[] encodedFlags)
-
Field Details
-
checkFlags
static final boolean checkFlags- See Also:
-
-
Constructor Details
-
FlagParsingStrategy
FlagParsingStrategy()
-
-
Method Details
-
parseFlag
Parses the given String into a single flag- Parameters:
rawFlag
- String to parse into a flag- Returns:
- Parsed flag
-
parseFlags
Parses the given String into multiple flags- Parameters:
rawFlags
- String to parse into flags- Returns:
- Parsed flags
-
printFlag
- Returns:
- the original string representation of the given flag encoded by
parseFlags(java.lang.String)
.
-
printFlags
- Returns:
- a presentable sorted concatenation of
printFlag(char)
results
-
parseUtfFlags
Parse flags from a string resulting fromprintFlags(char[])
-