Uses of Class
com.ibm.icu.text.NFRule
-
Packages that use NFRule Package Description com.ibm.icu.text -
-
Uses of NFRule in com.ibm.icu.text
Fields in com.ibm.icu.text declared as NFRule Modifier and Type Field Description private NFRule
RuleBasedNumberFormat. defaultInfinityRule
The rule used when dealing with infinity.private NFRule
RuleBasedNumberFormat. defaultNaNRule
The rule used when dealing with IEEE 754 NaN.(package private) NFRule[]
NFRuleSet. nonNumericalRules
The rule set's non-numerical rules like negative, fractions, infinity and NaN(package private) NFRule
MultiplierSubstitution. owningRule
A backpointer to the owning rule.private NFRule[]
NFRuleSet. rules
The rule set's regular rulesprivate NFRule
ModulusSubstitution. ruleToUse
If this is a >>> substitution, the rule to use to format the substitution value.Fields in com.ibm.icu.text with type parameters of type NFRule Modifier and Type Field Description (package private) java.util.LinkedList<NFRule>
NFRuleSet. fractionRules
These are a pile of fraction rules in declared order.Methods in com.ibm.icu.text that return NFRule Modifier and Type Method Description private NFRule
NFRuleSet. findFractionRuleSetRule(double number)
If this rule is a fraction rule set, this function is used by findRule() to select the most appropriate rule for formatting the number.private NFRule
NFRuleSet. findNormalRule(long number)
If the value passed to findRule() is a positive integer, findRule() uses this function to select the appropriate rule.(package private) NFRule
NFRuleSet. findRule(double number)
Selects an appropriate rule for formatting the number.(package private) NFRule
RuleBasedNumberFormat. getDefaultInfinityRule()
Returns the default rule for infinity.(package private) NFRule
RuleBasedNumberFormat. getDefaultNaNRule()
Returns the default rule for NaN.Methods in com.ibm.icu.text with parameters of type NFRule Modifier and Type Method Description private NFSubstitution
NFRule. extractSubstitution(NFRuleSet owner, NFRule predecessor)
Searches the rule's rule text for the first substitution token, creates a substitution based on it, and removes the token from the rule's rule text.private void
NFRule. extractSubstitutions(NFRuleSet owner, java.lang.String ruleText, NFRule predecessor)
Searches the rule's rule text for the substitution tokens, creates the substitutions, and removes the substitution tokens from the rule's rule text.static void
NFRule. makeRules(java.lang.String description, NFRuleSet owner, NFRule predecessor, RuleBasedNumberFormat ownersOwner, java.util.List<NFRule> returnList)
Creates one or more rules based on the description passed in.static NFSubstitution
NFSubstitution. makeSubstitution(int pos, NFRule rule, NFRule rulePredecessor, NFRuleSet ruleSet, RuleBasedNumberFormat formatter, java.lang.String description)
Parses the description, creates the right kind of substitution, and initializes it based on the description.private void
NFRuleSet. setBestFractionRule(int originalIndex, NFRule newRule, boolean rememberRule)
Determine the best fraction rule to use.(package private) void
NFRuleSet. setNonNumericalRule(NFRule rule)
Set one of the non-numerical rules.Method parameters in com.ibm.icu.text with type arguments of type NFRule Modifier and Type Method Description static void
NFRule. makeRules(java.lang.String description, NFRuleSet owner, NFRule predecessor, RuleBasedNumberFormat ownersOwner, java.util.List<NFRule> returnList)
Creates one or more rules based on the description passed in.Constructors in com.ibm.icu.text with parameters of type NFRule Constructor Description ModulusSubstitution(int pos, NFRule rule, NFRule rulePredecessor, NFRuleSet ruleSet, java.lang.String description)
Constructs a ModulusSubstitution.MultiplierSubstitution(int pos, NFRule rule, NFRuleSet ruleSet, java.lang.String description)
Constructs a MultiplierSubstitution.
-