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
-
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
-