Home | History | Annotate | Download | only in text

Lines Matching refs:ruleSet

35     final NFRuleSet ruleSet;
39 * or null. (Either this or ruleSet has to be non-null.)
61 * @param ruleSet The rule set containing the rule containing this
73 NFRuleSet ruleSet,
78 return new NullSubstitution(pos, ruleSet, formatter, description);
88 // following pointless unless the user changes the ruleset.
97 return new IntegralPartSubstitution(pos, ruleSet, formatter, description);
99 else if (ruleSet.isFractionSet()) {
107 return new MultiplierSubstitution(pos, rule.getDivisor(), ruleSet,
115 return new AbsoluteValueSubstitution(pos, ruleSet, formatter, description);
123 return new FractionalPartSubstitution(pos, ruleSet, formatter, description);
125 else if (ruleSet.isFractionSet()) {
131 // following pointless unless the user changes the ruleset.
138 ruleSet, formatter, description);
141 return new SameValueSubstitution(pos, ruleSet, formatter, description);
147 // following pointless unless the user changes the ruleset.
158 * @param ruleSet The rule set that owns this substitution
164 NFRuleSet ruleSet,
186 this.ruleSet = ruleSet;
193 this.ruleSet = formatter.findRuleSet(description);
201 this.ruleSet = null;
210 this.ruleSet = ruleSet; // was null, thai rules added to control space
252 && (ruleSet != null || that2.ruleSet == null) // can't compare tree structure, no .equals or recurse
274 if (ruleSet != null) {
275 return tokenChar() + ruleSet.getName() + tokenChar();
287 * either ruleSet or decimalFormat, and inserts the result into
296 if (ruleSet != null) {
302 ruleSet.format(numberToFormat, toInsertInto, position + pos);
319 * either ruleSet or decimalFormat, and inserts the result into
334 if (numberToFormat == Math.floor(numberToFormat) && ruleSet != null) {
335 ruleSet.format((long)numberToFormat, toInsertInto, position + pos);
341 if (ruleSet != null) {
342 ruleSet.format(numberToFormat, toInsertInto, position + pos);
422 if (ruleSet != null) {
423 tempResult = ruleSet.parse(text, parsePosition, upperBound);
424 if (lenientParse && !ruleSet.isFractionSet() && parsePosition.getIndex() == 0) {
558 NFRuleSet ruleSet,
561 super(pos, ruleSet, formatter, description);
655 * @param ruleSet The ruleSet this substitution uses to format its result
661 NFRuleSet ruleSet,
664 super(pos, ruleSet, formatter, description);
732 if (ruleSet == null) {
823 NFRuleSet ruleSet,
826 super(pos, ruleSet, formatter, description);
1061 NFRuleSet ruleSet,
1064 super(pos, ruleSet, formatter, description);
1166 NFRuleSet ruleSet,
1169 super(pos, ruleSet, formatter, description);
1170 if (description.equals(">>") || description.equals(">>>") || ruleSet == this.ruleSet) {
1176 this.ruleSet.makeIntoFractionRuleSet();
1219 ruleSet.format(dl.digits[--dl.count] - '0', toInsertInto, position + pos);
1227 ruleSet.format(0, toInsertInto, position + pos);
1292 digit = ruleSet.parse(workText, workPos, 10).intValue();
1367 NFRuleSet ruleSet,
1370 super(pos, ruleSet, formatter, description);
1470 NFRuleSet ruleSet,
1473 super(pos, ruleSet, formatter, fixdesc(description));
1513 * either ruleSet or decimalFormat, and inserts the result into
1527 if (withZeros && ruleSet != null) {
1533 ruleSet.format(0, toInsertInto, position + pos);
1540 if (numberToFormat == Math.floor(numberToFormat) && ruleSet != null) {
1541 ruleSet.format((long)numberToFormat, toInsertInto, position + pos);
1547 if (ruleSet != null) {
1548 ruleSet.format(numberToFormat, toInsertInto, position + pos);
1597 /*digit = */ruleSet.parse(workText, workPos, 1).intValue(); // parse zero or nothing at all
1694 NFRuleSet ruleSet,
1697 super(pos, ruleSet, formatter, description);