Class RBBIRuleScanner


  • class RBBIRuleScanner
    extends java.lang.Object
    This class is part of the Rule Based Break Iterator rule compiler. It scans the rules and builds the parse tree. There is no public API here.
    • Field Detail

      • fScanIndex

        int fScanIndex
      • fNextIndex

        int fNextIndex
      • fQuoteMode

        boolean fQuoteMode
      • fLineNum

        int fLineNum
      • fCharNum

        int fCharNum
      • fLastChar

        int fLastChar
      • fStack

        short[] fStack
      • fStackPtr

        int fStackPtr
      • fNodeStackPtr

        int fNodeStackPtr
      • fReverseRule

        boolean fReverseRule
      • fLookAheadRule

        boolean fLookAheadRule
      • fNoChainInRule

        boolean fNoChainInRule
      • fRuleNum

        int fRuleNum
      • fOptionStart

        int fOptionStart
      • gRuleSet_rule_char_pattern

        private static java.lang.String gRuleSet_rule_char_pattern
      • gRuleSet_name_char_pattern

        private static java.lang.String gRuleSet_name_char_pattern
      • gRuleSet_digit_char_pattern

        private static java.lang.String gRuleSet_digit_char_pattern
      • gRuleSet_name_start_char_pattern

        private static java.lang.String gRuleSet_name_start_char_pattern
      • gRuleSet_white_space_pattern

        private static java.lang.String gRuleSet_white_space_pattern
      • kAny

        private static java.lang.String kAny
    • Method Detail

      • doParseActions

        boolean doParseActions​(int action)
      • error

        void error​(int e)
      • fixOpStack

        void fixOpStack​(int p)
      • findSetFor

        void findSetFor​(java.lang.String s,
                        RBBINode node,
                        UnicodeSet setToAdopt)
      • stripRules

        static java.lang.String stripRules​(java.lang.String rules)
      • nextCharLL

        int nextCharLL()
      • parse

        void parse()
      • printNodeStack

        void printNodeStack​(java.lang.String title)
      • pushNewNode

        RBBINode pushNewNode​(int nodeType)
      • scanSet

        void scanSet()
      • numRules

        int numRules()
        Returns:
        the number of rules that have been seen.