Located in compilation unit of com.
| Access | Constructor and Description |
|---|---|
| pack-priv | SameValueSubstitution(int pos, NFRuleSet ruleSet, String description)
Constructs a SameValueSubstution. |
| Modifier and Type | Method and Description |
|---|---|
| public double | Returns: oldUpperBoundThe current upper bound. oldUpperBound)Implements abstract com. |
| public double | Returns: newRuleValueThe value resulting from matching the substitution newRuleValue, double The value of the rule containing the
substitution. oldRuleValue)Implements abstract com. |
| pack-priv char | Returns: '='Implements abstract com. |
| public long | Returns: "number"The number being formatted number)Implements abstract com. |
| public double | Returns: "number"The number being formatted number)Implements abstract com. |
| SameValueSubstitution | back to summary |
|---|---|
| pack-priv SameValueSubstitution(int pos, NFRuleSet ruleSet, String description) Constructs a SameValueSubstution. This function just uses the superclass constructor, but it performs a check that this substitution doesn't call the rule set that owns it, since that would lead to infinite recursion. | |
| calcUpperBound | back to summary |
|---|---|
| public double calcUpperBound(double oldUpperBound) Implements abstract com. SameValueSubstitution doesn't change the upper bound.
| |
| composeRuleValue | back to summary |
|---|---|
| public double composeRuleValue(double newRuleValue, double oldRuleValue) Implements abstract com. Returns newRuleValue and ignores oldRuleValue. (The value we got matching the substitution supersedes the value of the rule that owns the substitution.)
| |
| tokenChar | back to summary |
|---|---|
| pack-priv char tokenChar() Implements abstract com. The token character for a SameValueSubstitution is =.
| |
| transformNumber | back to summary |
|---|---|
| public long transformNumber(long number) Implements abstract com. Returns "number" unchanged.
| |
| transformNumber | back to summary |
|---|---|
| public double transformNumber(double number) Implements abstract com. Returns "number" unchanged.
| |