Class RBBIRuleScanner
java.lang.Object
com.ibm.icu.text.RBBIRuleScanner
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int(package private) static final int(package private) RBBIRuleScanner.RBBIRuleChar(package private) int(package private) int(package private) int(package private) boolean(package private) int(package private) boolean(package private) RBBINode[](package private) int(package private) int(package private) boolean(package private) RBBIRuleBuilder(package private) boolean(package private) int(package private) UnicodeSet[](package private) int(package private) HashMap<String, RBBIRuleScanner.RBBISetTableEl> (package private) short[](package private) int(package private) RBBISymbolTableprivate static Stringprivate static Stringprivate static Stringprivate static Stringprivate static Stringprivate static Stringprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) booleandoParseActions(int action) (package private) voiderror(int e) (package private) voidfindSetFor(String s, RBBINode node, UnicodeSet setToAdopt) (package private) voidfixOpStack(int p) (package private) void(package private) int(package private) intnumRules()(package private) voidparse()(package private) voidprintNodeStack(String title) CLOVER:OFF(package private) RBBINodepushNewNode(int nodeType) CLOVER:ON(package private) voidscanSet()(package private) static StringstripRules(String rules)
-
Field Details
-
kStackSize
private static final int kStackSize- See Also:
-
fRB
RBBIRuleBuilder fRB -
fScanIndex
int fScanIndex -
fNextIndex
int fNextIndex -
fQuoteMode
boolean fQuoteMode -
fLineNum
int fLineNum -
fCharNum
int fCharNum -
fLastChar
int fLastChar -
fC
-
fStack
short[] fStack -
fStackPtr
int fStackPtr -
fNodeStack
RBBINode[] fNodeStack -
fNodeStackPtr
int fNodeStackPtr -
fReverseRule
boolean fReverseRule -
fLookAheadRule
boolean fLookAheadRule -
fNoChainInRule
boolean fNoChainInRule -
fSymbolTable
RBBISymbolTable fSymbolTable -
fSetTable
HashMap<String, RBBIRuleScanner.RBBISetTableEl> fSetTable -
fRuleSets
UnicodeSet[] fRuleSets -
fRuleNum
int fRuleNum -
fOptionStart
int fOptionStart -
gRuleSet_rule_char_pattern
-
gRuleSet_name_char_pattern
-
gRuleSet_digit_char_pattern
-
gRuleSet_name_start_char_pattern
-
gRuleSet_white_space_pattern
-
kAny
-
chNEL
static final int chNEL- See Also:
-
chLS
static final int chLS- See Also:
-
-
Constructor Details
-
RBBIRuleScanner
RBBIRuleScanner(RBBIRuleBuilder rb)
-
-
Method Details
-
doParseActions
boolean doParseActions(int action) -
error
void error(int e) -
fixOpStack
void fixOpStack(int p) -
findSetFor
-
stripRules
-
nextCharLL
int nextCharLL() -
nextChar
-
parse
void parse() -
printNodeStack
CLOVER:OFF -
pushNewNode
CLOVER:ON -
scanSet
void scanSet() -
numRules
int numRules()- Returns:
- the number of rules that have been seen.
-