| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private List | fDStates
D states (Aho's terminology). |
| pack-priv int | fLASlotsInUse
Counter used when assigning lookahead rule numbers. |
| pack-priv int[] | fLookAheadRuleMap
Map from rule number (fVal in look ahead nodes) to sequential lookahead index. |
| private RBBIRuleBuilder | |
| private int | fRootIx
The array index into RBBIRuleBuilder.fTreeRoots for the parse tree to operate on. |
| private List | fSafeTable
Synthesized safe table, a List of row arrays. |
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv RBBIDataWrapper. | |
| pack-priv RBBIDataWrapper. | |
| pack-priv boolean | Returns: true if duplicate char classes were found, false otherwise.in/out parameter, specifies where to start looking for duplicates,
and returns the first pair of duplicates found, if any. categoriesFind duplicate (redundant) character classes. |
| pack-priv boolean | Returns: true if duplicate states were found, false otherwise.in/out parameter, specifies where to start looking for duplicates,
and returns the first pair of duplicates found, if any. statesFind the next duplicate state in the safe reverse table. |
| pack-priv boolean | Returns: true if duplicate states were found, false otherwise.in/out parameter, specifies where to start looking for duplicates,
and returns the first pair of duplicates found, if any. statesFind duplicate (redundant) states, beginning at the specified pair, within this state table. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv int | |
| pack-priv int | getTableSize()
Calculate the size in bytes of the serialized form of this state transition table, which is identical to the ICU4C runtime form. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv int | Returns: the number of states removed.Check for, and remove duplicate states (table rows). |
| pack-priv void | removeSafeState(RBBIRuleBuilder.
The duplicate pair of states. The first is kept, the second is removed.
All references to the second in the state table are retargeted
to the first. duplStatesRemove a duplicate state from the safe table. |
| pack-priv void | removeState(RBBIRuleBuilder.
The duplicate pair of states. duplStatesRemove a duplicate state (row) from the state table. |
| fDStates | back to summary |
|---|---|
| private List<RBBITableBuilder. D states (Aho's terminology). Index is state number. | |
| fLASlotsInUse | back to summary |
|---|---|
| pack-priv int fLASlotsInUse Counter used when assigning lookahead rule numbers. Contains the last look-ahead number already in use. The first look-ahead number is 2; Number 1 (ACCEPTING_UNCONDITIONAL) is reserved for non-lookahead accepting states. See the declarations of RBBIStateTableRowT. | |
| fLookAheadRuleMap | back to summary |
|---|---|
| pack-priv int[] fLookAheadRuleMap Map from rule number (fVal in look ahead nodes) to sequential lookahead index. | |
| fRB | back to summary |
|---|---|
| private RBBIRuleBuilder fRB | |
| fRootIx | back to summary |
|---|---|
| private int fRootIx The array index into RBBIRuleBuilder.fTreeRoots for the parse tree to operate on. | |
| fSafeTable | back to summary |
|---|---|
| private List<short[]> fSafeTable Synthesized safe table, a List of row arrays. | |
| MAX_STATE_FOR_8BITS_TABLE | back to summary |
|---|---|
| private static final int MAX_STATE_FOR_8BITS_TABLE | |
| RBBITableBuilder | back to summary |
|---|---|
| pack-priv RBBITableBuilder(RBBIRuleBuilder rb, int rootNodeIx) | |
| addRuleRootNodes | back to summary |
|---|---|
| pack-priv void addRuleRootNodes(List<RBBINode> dest, RBBINode node) | |
| bofFixup | back to summary |
|---|---|
| pack-priv void bofFixup() | |
| buildForwardTable | back to summary |
|---|---|
| pack-priv void buildForwardTable() | |
| buildSafeReverseTable | back to summary |
|---|---|
| pack-priv void buildSafeReverseTable() Synthesize a safe state table from the main state table. | |
| buildStateTable | back to summary |
|---|---|
| pack-priv void buildStateTable() | |
| calcChainedFollowPos | back to summary |
|---|---|
| pack-priv void calcChainedFollowPos(RBBINode tree, RBBINode endMarkNode) | |
| calcFirstPos | back to summary |
|---|---|
| pack-priv void calcFirstPos(RBBINode n) | |
| calcFollowPos | back to summary |
|---|---|
| pack-priv void calcFollowPos(RBBINode n) | |
| calcLastPos | back to summary |
|---|---|
| pack-priv void calcLastPos(RBBINode n) | |
| calcNullable | back to summary |
|---|---|
| pack-priv void calcNullable(RBBINode n) | |
| exportSafeTable | back to summary |
|---|---|
| pack-priv RBBIDataWrapper. Create a RBBIDataWrapper.RBBIStateTable for the safe reverse table. RBBIDataWrapper.RBBIStateTable is similar to struct RBBIStateTable in ICU4C, in common/rbbidata.h | |
| exportTable | back to summary |
|---|---|
| pack-priv RBBIDataWrapper. Create a RBBIDataWrapper.RBBIStateTable for a newly compiled table. RBBIDataWrapper.RBBIStateTable is similar to struct RBBIStateTable in ICU4C, in common/rbbidata.h | |
| findDuplCharClassFrom | back to summary |
|---|---|
| pack-priv boolean findDuplCharClassFrom(RBBIRuleBuilder. Find duplicate (redundant) character classes. Begin looking with categories.first. Duplicates, if found are returned in the categories parameter. This is an iterator-like function, used to identify character classes (state table columns) that can be eliminated.
| |
| findDuplicateSafeState | back to summary |
|---|---|
| pack-priv boolean findDuplicateSafeState(RBBIRuleBuilder. Find the next duplicate state in the safe reverse table. An iterator function.
| |
| findDuplicateState | back to summary |
|---|---|
| pack-priv boolean findDuplicateState(RBBIRuleBuilder. Find duplicate (redundant) states, beginning at the specified pair, within this state table. This is an iterator-like function, used to identify states (state table rows) that can be eliminated.
| |
| flagAcceptingStates | back to summary |
|---|---|
| pack-priv void flagAcceptingStates() | |
| flagLookAheadStates | back to summary |
|---|---|
| pack-priv void flagLookAheadStates() | |
| flagTaggedStates | back to summary |
|---|---|
| pack-priv void flagTaggedStates() | |
| getSafeTableSize | back to summary |
|---|---|
| pack-priv int getSafeTableSize() Calculate the size of the runtime form of this safe state table. | |
| getTableSize | back to summary |
|---|---|
| pack-priv int getTableSize() Calculate the size in bytes of the serialized form of this state transition table, which is identical to the ICU4C runtime form. Refer to common/rbbidata.h from ICU4C for the declarations of the structures being matched by this calculation. | |
| mapLookAheadRules | back to summary |
|---|---|
| pack-priv void mapLookAheadRules() mapLookAheadRules | |
| mergeRuleStatusVals | back to summary |
|---|---|
| pack-priv void mergeRuleStatusVals() | |
| printPosSets | back to summary |
|---|---|
| pack-priv void printPosSets(RBBINode n) | |
| printReverseTable | back to summary |
|---|---|
| pack-priv void printReverseTable() Debug Function. Dump the fully constructed safe reverse table. | |
| printRuleStatusTable | back to summary |
|---|---|
| pack-priv void printRuleStatusTable() | |
| printSet | back to summary |
|---|---|
| pack-priv void printSet(Collection<RBBINode> s) | |
| printStates | back to summary |
|---|---|
| pack-priv void printStates() | |
| removeColumn | back to summary |
|---|---|
| pack-priv void removeColumn(int column) Remove a column from the state table. Used when two character categories have been found equivalent, and merged together, to eliminate the unneeded table column. | |
| removeDuplicateStates | back to summary |
|---|---|
| pack-priv int removeDuplicateStates() Check for, and remove duplicate states (table rows).
| |
| removeSafeState | back to summary |
|---|---|
| pack-priv void removeSafeState(RBBIRuleBuilder. Remove a duplicate state from the safe table.
| |
| removeState | back to summary |
|---|---|
| pack-priv void removeState(RBBIRuleBuilder. Remove a duplicate state (row) from the state table. All references to the deleted (second) state are redirected to first state.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv int[] | |
| pack-priv int | |
| pack-priv boolean | |
| pack-priv Set | |
| pack-priv int | |
| pack-priv SortedSet |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| fAccepting | back to summary |
|---|---|
| pack-priv int fAccepting | |
| fDtran | back to summary |
|---|---|
| pack-priv int[] fDtran | |
| fLookAhead | back to summary |
|---|---|
| pack-priv int fLookAhead | |
| fMarked | back to summary |
|---|---|
| pack-priv boolean fMarked | |
| fPositions | back to summary |
|---|---|
| pack-priv Set<RBBINode> fPositions | |
| fTagsIdx | back to summary |
|---|---|
| pack-priv int fTagsIdx | |
| fTagVals | back to summary |
|---|---|
| pack-priv SortedSet<Integer> fTagVals | |
| RBBIStateDescriptor | back to summary |
|---|---|
| pack-priv RBBIStateDescriptor(int maxInputSymbol) | |