Package com.ibm.icu.text
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) RBBISymbolTable
private static String
private static String
private static String
private static String
private static String
private static String
private static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) boolean
doParseActions
(int action) (package private) void
error
(int e) (package private) void
findSetFor
(String s, RBBINode node, UnicodeSet setToAdopt) (package private) void
fixOpStack
(int p) (package private) void
(package private) int
(package private) int
numRules()
(package private) void
parse()
(package private) void
printNodeStack
(String title) (package private) RBBINode
pushNewNode
(int nodeType) (package private) void
scanSet()
(package private) static String
stripRules
(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
-
pushNewNode
-
scanSet
void scanSet() -
numRules
int numRules()- Returns:
- the number of rules that have been seen.
-