| Package | Description |
|---|---|
| org.antlr.v4.codegen.model |
| Modifier and Type | Field and Description |
|---|---|
private static FrequencySet<java.lang.String> |
ElementFrequenciesVisitor.SENTINEL
This special value means "no set", and is used by
ElementFrequenciesVisitor.minFrequencies
to ensure that ElementFrequenciesVisitor.combineMin(org.antlr.v4.misc.FrequencySet<java.lang.String>, org.antlr.v4.misc.FrequencySet<java.lang.String>) doesn't merge an empty set (all zeros)
with the results of the first alternative. |
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.Deque<FrequencySet<java.lang.String>> |
ElementFrequenciesVisitor.frequencies |
private java.util.Deque<FrequencySet<java.lang.String>> |
ElementFrequenciesVisitor.minFrequencies |
| Modifier and Type | Method and Description |
|---|---|
protected static FrequencySet<java.lang.String> |
ElementFrequenciesVisitor.combineAndClip(FrequencySet<java.lang.String> a,
FrequencySet<java.lang.String> b,
int clip)
Generate a frequency set as the union of two input sets, with the
values clipped to a specified maximum value.
|
protected static FrequencySet<java.lang.String> |
ElementFrequenciesVisitor.combineMax(FrequencySet<java.lang.String> a,
FrequencySet<java.lang.String> b)
Generate a frequency set as the union of two input sets.
|
protected static FrequencySet<java.lang.String> |
ElementFrequenciesVisitor.combineMin(FrequencySet<java.lang.String> a,
FrequencySet<java.lang.String> b)
Generate a frequency set as the union of two input sets.
|
(package private) FrequencySet<java.lang.String> |
ElementFrequenciesVisitor.getMinFrequencies() |
| Modifier and Type | Method and Description |
|---|---|
protected Pair<FrequencySet<java.lang.String>,FrequencySet<java.lang.String>> |
RuleFunction.getElementFrequenciesForAlt(AltAST ast)
Given list of X and r refs in alt, compute how many of each there are
|
protected Pair<FrequencySet<java.lang.String>,FrequencySet<java.lang.String>> |
RuleFunction.getElementFrequenciesForAlt(AltAST ast)
Given list of X and r refs in alt, compute how many of each there are
|
| Modifier and Type | Method and Description |
|---|---|
protected static FrequencySet<java.lang.String> |
ElementFrequenciesVisitor.combineAndClip(FrequencySet<java.lang.String> a,
FrequencySet<java.lang.String> b,
int clip)
Generate a frequency set as the union of two input sets, with the
values clipped to a specified maximum value.
|
protected static FrequencySet<java.lang.String> |
ElementFrequenciesVisitor.combineAndClip(FrequencySet<java.lang.String> a,
FrequencySet<java.lang.String> b,
int clip)
Generate a frequency set as the union of two input sets, with the
values clipped to a specified maximum value.
|
protected static FrequencySet<java.lang.String> |
ElementFrequenciesVisitor.combineMax(FrequencySet<java.lang.String> a,
FrequencySet<java.lang.String> b)
Generate a frequency set as the union of two input sets.
|
protected static FrequencySet<java.lang.String> |
ElementFrequenciesVisitor.combineMax(FrequencySet<java.lang.String> a,
FrequencySet<java.lang.String> b)
Generate a frequency set as the union of two input sets.
|
protected static FrequencySet<java.lang.String> |
ElementFrequenciesVisitor.combineMin(FrequencySet<java.lang.String> a,
FrequencySet<java.lang.String> b)
Generate a frequency set as the union of two input sets.
|
protected static FrequencySet<java.lang.String> |
ElementFrequenciesVisitor.combineMin(FrequencySet<java.lang.String> a,
FrequencySet<java.lang.String> b)
Generate a frequency set as the union of two input sets.
|