public class TrieBottomUpRuleIndex extends BottomUpRuleIndex implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG_ITERATION |
| Constructor and Description |
|---|
TrieBottomUpRuleIndex() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Rule rule)
Returns false if adding this rule makes the automaton bottom-up
nondeterministic.
|
void |
foreachRuleForSets(IntSet labelIds,
List<IntSet> childStateSets,
SignatureMapper signatureMapper,
Consumer<Rule> fn) |
Collection<Rule> |
get(int labelId,
int[] childStates) |
Iterable<Rule> |
getAllRules() |
void |
printStatistics() |
void |
setRules(Collection<Rule> rules,
int labelId,
int[] childStates) |
public boolean add(Rule rule)
BottomUpRuleIndexadd in class BottomUpRuleIndexpublic void setRules(Collection<Rule> rules, int labelId, int[] childStates)
setRules in class BottomUpRuleIndexpublic Collection<Rule> get(int labelId, int[] childStates)
get in class BottomUpRuleIndexpublic Iterable<Rule> getAllRules()
getAllRules in class BottomUpRuleIndexpublic void printStatistics()
printStatistics in class BottomUpRuleIndexpublic void foreachRuleForSets(IntSet labelIds, List<IntSet> childStateSets, SignatureMapper signatureMapper, Consumer<Rule> fn)
foreachRuleForSets in class BottomUpRuleIndexCopyright © 2017. All rights reserved.