Located in compilation unit of com.
| Access | Constructor and Description |
|---|---|
| pack-priv | IntegralPartSubstitution(int pos, NFRuleSet ruleSet, String description)
Constructs an IntegralPartSubstitution. |
| Modifier and Type | Method and Description |
|---|---|
| public double | Returns: Double.MAX_VALUEIgnored oldUpperBound)Implements abstract com. |
| public double | Returns: oldRuleValue + newRuleValueThe result of matching the substitution newRuleValue, double The partial result of the parse prior to
calling this function oldRuleValue)Implements abstract com. |
| pack-priv char | Returns: '<'Implements abstract com. |
| public long | Returns: "number" unchangedThe number being formatted number)Implements abstract com. |
| public double | Returns: floor(number)The integral part of the number being formatted number)Implements abstract com. |
| IntegralPartSubstitution | back to summary |
|---|---|
| pack-priv IntegralPartSubstitution(int pos, NFRuleSet ruleSet, String description) Constructs an IntegralPartSubstitution. This just calls the superclass constructor. | |
| calcUpperBound | back to summary |
|---|---|
| public double calcUpperBound(double oldUpperBound) Implements abstract com. An IntegralPartSubstitution sets the upper bound back up so all potentially matching rules are considered.
| |
| composeRuleValue | back to summary |
|---|---|
| public double composeRuleValue(double newRuleValue, double oldRuleValue) Implements abstract com. Returns the sum of the result of parsing the substitution and the owning rule's base value. (The owning rule, at best, has an integral-part substitution and a fractional-part substitution, so we can safely just add them.)
| |
| tokenChar | back to summary |
|---|---|
| pack-priv char tokenChar() Implements abstract com. An IntegralPartSubstitution's token character is <
| |
| transformNumber | back to summary |
|---|---|
| public long transformNumber(long number) Implements abstract com. Returns the number's integral part. (For a long, that's just the number unchanged.)
| |
| transformNumber | back to summary |
|---|---|
| public double transformNumber(double number) Implements abstract com. Returns the number's integral part.
| |