Package com.ibm.icu.text
Class RBBIRuleScanner
- java.lang.Object
-
- com.ibm.icu.text.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
RBBIRuleScanner.RBBIRuleChar
(package private) static class
RBBIRuleScanner.RBBISetTableEl
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
chLS
(package private) static int
chNEL
(package private) RBBIRuleScanner.RBBIRuleChar
fC
(package private) int
fCharNum
(package private) int
fLastChar
(package private) int
fLineNum
(package private) boolean
fLookAheadRule
(package private) int
fNextIndex
(package private) boolean
fNoChainInRule
(package private) RBBINode[]
fNodeStack
(package private) int
fNodeStackPtr
(package private) int
fOptionStart
(package private) boolean
fQuoteMode
(package private) RBBIRuleBuilder
fRB
(package private) boolean
fReverseRule
(package private) int
fRuleNum
(package private) UnicodeSet[]
fRuleSets
(package private) int
fScanIndex
(package private) java.util.HashMap<java.lang.String,RBBIRuleScanner.RBBISetTableEl>
fSetTable
(package private) short[]
fStack
(package private) int
fStackPtr
(package private) RBBISymbolTable
fSymbolTable
private static java.lang.String
gRuleSet_digit_char_pattern
private static java.lang.String
gRuleSet_name_char_pattern
private static java.lang.String
gRuleSet_name_start_char_pattern
private static java.lang.String
gRuleSet_rule_char_pattern
private static java.lang.String
gRuleSet_white_space_pattern
private static java.lang.String
kAny
private static int
kStackSize
-
Constructor Summary
Constructors Constructor Description RBBIRuleScanner(RBBIRuleBuilder rb)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
doParseActions(int action)
(package private) void
error(int e)
(package private) void
findSetFor(java.lang.String s, RBBINode node, UnicodeSet setToAdopt)
(package private) void
fixOpStack(int p)
(package private) void
nextChar(RBBIRuleScanner.RBBIRuleChar c)
(package private) int
nextCharLL()
(package private) int
numRules()
(package private) void
parse()
(package private) void
printNodeStack(java.lang.String title)
(package private) RBBINode
pushNewNode(int nodeType)
(package private) void
scanSet()
(package private) static java.lang.String
stripRules(java.lang.String rules)
-
-
-
Field Detail
-
kStackSize
private static final int kStackSize
- See Also:
- Constant Field Values
-
fRB
RBBIRuleBuilder fRB
-
fScanIndex
int fScanIndex
-
fNextIndex
int fNextIndex
-
fQuoteMode
boolean fQuoteMode
-
fLineNum
int fLineNum
-
fCharNum
int fCharNum
-
fLastChar
int fLastChar
-
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
java.util.HashMap<java.lang.String,RBBIRuleScanner.RBBISetTableEl> fSetTable
-
fRuleSets
UnicodeSet[] fRuleSets
-
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
-
chNEL
static final int chNEL
- See Also:
- Constant Field Values
-
chLS
static final int chLS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RBBIRuleScanner
RBBIRuleScanner(RBBIRuleBuilder rb)
-
-
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()
-
nextChar
void nextChar(RBBIRuleScanner.RBBIRuleChar c)
-
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.
-
-