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)
BottomUpRuleIndex
add
in class BottomUpRuleIndex
public void setRules(Collection<Rule> rules, int labelId, int[] childStates)
setRules
in class BottomUpRuleIndex
public Collection<Rule> get(int labelId, int[] childStates)
get
in class BottomUpRuleIndex
public Iterable<Rule> getAllRules()
getAllRules
in class BottomUpRuleIndex
public void printStatistics()
printStatistics
in class BottomUpRuleIndex
public void foreachRuleForSets(IntSet labelIds, List<IntSet> childStateSets, SignatureMapper signatureMapper, Consumer<Rule> fn)
foreachRuleForSets
in class BottomUpRuleIndex
Copyright © 2017. All rights reserved.