| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Deque | |
| private final Deque | |
| private static final FrequencySet | SENTINEL
This special value means "no set", and is used by |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected static FrequencySet | Returns: The sum of the two sets, with the individual elements clipped to the maximum value given byclip.The first set. a, FrequencySet<String> The second set. b, int The maximum value to allow for any output. clip)Generate a frequency set as the union of two input sets, with the values clipped to a specified maximum value. |
| protected static FrequencySet | Returns: The union of the two sets, with the maximum value chosen whenever both sets contain the same key.The first set. a, FrequencySet<String> The second set. b)Generate a frequency set as the union of two input sets. |
| protected static FrequencySet | Returns: The union of the two sets, with the minimum value chosen whenever both sets contain the same key.The first set. a, FrequencySet<String> The second set. If this set is b)SENTINEL, it is treated
as though no second set were provided.Generate a frequency set as the union of two input sets. |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public ErrorManager | getErrorManager()
Overrides org. |
| pack-priv FrequencySet | |
| public void | |
| public void | |
| public void |
| frequencies | back to summary |
|---|---|
| pack-priv final Deque<FrequencySet<String>> frequencies | |
| minFrequencies | back to summary |
|---|---|
| private final Deque<FrequencySet<String>> minFrequencies | |
| SENTINEL | back to summary |
|---|---|
| private static final FrequencySet<String> SENTINEL This special value means "no set", and is used by | |
| ElementFrequenciesVisitor | back to summary |
|---|---|
| public ElementFrequenciesVisitor(TreeNodeStream input) | |
| combineAndClip | back to summary |
|---|---|
| protected static FrequencySet Generate a frequency set as the union of two input sets, with the values clipped to a specified maximum value. If an element is contained in both sets, the value for the output, prior to clipping, will be the sum of the two input values.
| |
| combineMax | back to summary |
|---|---|
| protected static FrequencySet Generate a frequency set as the union of two input sets. If an element is contained in both sets, the value for the output will be the maximum of the two input values.
| |
| combineMin | back to summary |
|---|---|
| protected static FrequencySet Generate a frequency set as the union of two input sets. If an element is contained in both sets, the value for the output will be the minimum of the two input values.
| |
| enterAlternative | back to summary |
|---|---|
| protected void enterAlternative(AltAST tree) Overrides org.
| |
| enterBlockSet | back to summary |
|---|---|
| protected void enterBlockSet(GrammarAST tree) Overrides org.
| |
| enterElement | back to summary |
|---|---|
| protected void enterElement(GrammarAST tree) Overrides org.
| |
| enterLexerAlternative | back to summary |
|---|---|
| protected void enterLexerAlternative(GrammarAST tree) Overrides org.
| |
| enterLexerElement | back to summary |
|---|---|
| protected void enterLexerElement(GrammarAST tree) Overrides org.
| |
| exitAlternative | back to summary |
|---|---|
| protected void exitAlternative(AltAST tree) Overrides org.
| |
| exitBlockSet | back to summary |
|---|---|
| protected void exitBlockSet(GrammarAST tree) Overrides org.
| |
| exitElement | back to summary |
|---|---|
| protected void exitElement(GrammarAST tree) Overrides org.
| |
| exitLexerAlternative | back to summary |
|---|---|
| protected void exitLexerAlternative(GrammarAST tree) Overrides org.
| |
| exitLexerElement | back to summary |
|---|---|
| protected void exitLexerElement(GrammarAST tree) Overrides org.
| |
| exitLexerSubrule | back to summary |
|---|---|
| protected void exitLexerSubrule(GrammarAST tree) Overrides org.
| |
| exitSubrule | back to summary |
|---|---|
| protected void exitSubrule(GrammarAST tree) Overrides org.
| |
| getErrorManager | back to summary |
|---|---|
| public ErrorManager getErrorManager() Overrides org. During code gen, we can assume tree is in good shape
| |
| getMinFrequencies | back to summary |
|---|---|
| pack-priv FrequencySet | |
| ruleRef | back to summary |
|---|---|
| public void ruleRef(GrammarAST ref, ActionAST arg) Overrides org.
| |
| stringRef | back to summary |
|---|---|
| public void stringRef(TerminalAST ref) Overrides org.
| |
| tokenRef | back to summary |
|---|---|
| public void tokenRef(TerminalAST ref) Overrides org.
| |