Class TokenizerDefinition

    • Method Detail

      • isCharGroup

        public boolean isCharGroup()
        Is this variant instance of kind char_group?
      • charGroup

        public CharGroupTokenizer charGroup()
        Get the char_group variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the char_group kind.
      • isEdgeNgram

        public boolean isEdgeNgram()
        Is this variant instance of kind edge_ngram?
      • edgeNgram

        public EdgeNGramTokenizer edgeNgram()
        Get the edge_ngram variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the edge_ngram kind.
      • isIcuTokenizer

        public boolean isIcuTokenizer()
        Is this variant instance of kind icu_tokenizer?
      • icuTokenizer

        public IcuTokenizer icuTokenizer()
        Get the icu_tokenizer variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the icu_tokenizer kind.
      • isKeyword

        public boolean isKeyword()
        Is this variant instance of kind keyword?
      • keyword

        public KeywordTokenizer keyword()
        Get the keyword variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the keyword kind.
      • isKuromojiTokenizer

        public boolean isKuromojiTokenizer()
        Is this variant instance of kind kuromoji_tokenizer?
      • kuromojiTokenizer

        public KuromojiTokenizer kuromojiTokenizer()
        Get the kuromoji_tokenizer variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the kuromoji_tokenizer kind.
      • isLetter

        public boolean isLetter()
        Is this variant instance of kind letter?
      • letter

        public LetterTokenizer letter()
        Get the letter variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the letter kind.
      • isLowercase

        public boolean isLowercase()
        Is this variant instance of kind lowercase?
      • lowercase

        public LowercaseTokenizer lowercase()
        Get the lowercase variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the lowercase kind.
      • isNgram

        public boolean isNgram()
        Is this variant instance of kind ngram?
      • ngram

        public NGramTokenizer ngram()
        Get the ngram variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the ngram kind.
      • isNoriTokenizer

        public boolean isNoriTokenizer()
        Is this variant instance of kind nori_tokenizer?
      • noriTokenizer

        public NoriTokenizer noriTokenizer()
        Get the nori_tokenizer variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the nori_tokenizer kind.
      • isPathHierarchy

        public boolean isPathHierarchy()
        Is this variant instance of kind path_hierarchy?
      • pathHierarchy

        public PathHierarchyTokenizer pathHierarchy()
        Get the path_hierarchy variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the path_hierarchy kind.
      • isPattern

        public boolean isPattern()
        Is this variant instance of kind pattern?
      • pattern

        public PatternTokenizer pattern()
        Get the pattern variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the pattern kind.
      • isStandard

        public boolean isStandard()
        Is this variant instance of kind standard?
      • standard

        public StandardTokenizer standard()
        Get the standard variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the standard kind.
      • isUaxUrlEmail

        public boolean isUaxUrlEmail()
        Is this variant instance of kind uax_url_email?
      • uaxUrlEmail

        public UaxEmailUrlTokenizer uaxUrlEmail()
        Get the uax_url_email variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the uax_url_email kind.
      • isWhitespace

        public boolean isWhitespace()
        Is this variant instance of kind whitespace?
      • whitespace

        public WhitespaceTokenizer whitespace()
        Get the whitespace variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the whitespace kind.