org.apache.lucene.analysis.tokenattributes

Interface KeywordAttribute

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      boolean isKeyword()
      Returns true if the current token is a keyword, otherwise false
      void setKeyword(boolean isKeyword)
      Marks the current token as keyword if set to true.
    • Method Detail

      • isKeyword

        boolean isKeyword()
        Returns true if the current token is a keyword, otherwise false
        Returns:
        true if the current token is a keyword, otherwise false
        See Also:
        setKeyword(boolean)
      • setKeyword

        void setKeyword(boolean isKeyword)
        Marks the current token as keyword if set to true.
        Parameters:
        isKeyword - true if the current token is a keyword, otherwise false.
        See Also:
        isKeyword()