Located in compilation unit of com.
| Access | Constructor and Description |
|---|---|
| pack-priv | AbsoluteValueSubstitution(int pos, NFRuleSet ruleSet, String description)
Constructs an AbsoluteValueSubstitution. |
| Modifier and Type | Method and Description |
|---|---|
| public double | Returns: Double.MAX_VALUEIgnored. oldUpperBound)Implements abstract com. |
| public double | Returns: -newRuleValueThe result of parsing the substitution newRuleValue, double The partial parse result prior to calling
this function oldRuleValue)Implements abstract com. |
| pack-priv char | Returns: '>'Implements abstract com. |
| public long | Returns: abs(number)The number being formatted. number)Implements abstract com. |
| public double | Returns: abs(number)The number being formatted. number)Implements abstract com. |
| AbsoluteValueSubstitution | back to summary |
|---|---|
| pack-priv AbsoluteValueSubstitution(int pos, NFRuleSet ruleSet, String description) Constructs an AbsoluteValueSubstitution. This just uses the superclass constructor. | |
| calcUpperBound | back to summary |
|---|---|
| public double calcUpperBound(double oldUpperBound) Implements abstract com. Sets the upper bound beck up to consider all rules
| |
| composeRuleValue | back to summary |
|---|---|
| public double composeRuleValue(double newRuleValue, double oldRuleValue) Implements abstract com. Returns the additive inverse of the result of parsing the substitution (this supersedes the earlier partial result)
| |
| tokenChar | back to summary |
|---|---|
| pack-priv char tokenChar() Implements abstract com. The token character for an AbsoluteValueSubstitution is >
| |
| transformNumber | back to summary |
|---|---|
| public long transformNumber(long number) Implements abstract com. Returns the absolute value of the number.
| |
| transformNumber | back to summary |
|---|---|
| public double transformNumber(double number) Implements abstract com. Returns the absolute value of the number.
| |