java.lang.Object
java.lang.Enum<WordContext>
org.apache.lucene.analysis.hunspell.WordContext
All Implemented Interfaces:
Serializable, Comparable<WordContext>, Constable

enum WordContext extends Enum<WordContext>
  • Enum Constant Details

    • SIMPLE_WORD

      public static final WordContext SIMPLE_WORD
      non-compound
    • COMPOUND_BEGIN

      public static final WordContext COMPOUND_BEGIN
      The first root in a word with COMPOUNDFLAG/BEGIN/MIDDLE/END compounding
    • COMPOUND_MIDDLE

      public static final WordContext COMPOUND_MIDDLE
      A middle root in a word with COMPOUNDFLAG/BEGIN/MIDDLE/END compounding
    • COMPOUND_END

      public static final WordContext COMPOUND_END
      The final root in a word with COMPOUNDFLAG/BEGIN/MIDDLE/END compounding
    • COMPOUND_RULE_END

      public static final WordContext COMPOUND_RULE_END
      The final root in a word with COMPOUNDRULE compounding. The difference to COMPOUND_END is that this context doesn't require COMPOUNDFLAG/COMPOUNDEND flags, but allows ONLYINCOMPOUND.
  • Constructor Details

    • WordContext

      private WordContext()
  • Method Details

    • values

      public static WordContext[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static WordContext valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isCompound

      boolean isCompound()
    • isAffixAllowedWithoutSpecialPermit

      boolean isAffixAllowedWithoutSpecialPermit(boolean isPrefix)
    • requiredFlag

      char requiredFlag(Dictionary dictionary)