68 |
final Pattern count; |
final Pattern count; |
69 |
final Pattern from; |
final Pattern from; |
70 |
|
|
71 |
NodeNumberNode(TemplateNode children, TemplateNode next, |
NodeNumberNode(int level, Pattern count, Pattern from, |
|
int level, Pattern count, Pattern from, |
|
72 |
TemplateNode format, String lang, |
TemplateNode format, String lang, |
73 |
int letterValue, String groupingSeparator, int groupingSize) |
int letterValue, String groupingSeparator, int groupingSize) |
74 |
{ |
{ |
75 |
super(children, next, format, lang, letterValue, groupingSeparator, |
super(format, lang, letterValue, groupingSeparator, groupingSize); |
|
groupingSize); |
|
76 |
this.level = level; |
this.level = level; |
77 |
this.count = count; |
this.count = count; |
78 |
this.from = from; |
this.from = from; |
80 |
|
|
81 |
TemplateNode clone(Stylesheet stylesheet) |
TemplateNode clone(Stylesheet stylesheet) |
82 |
{ |
{ |
83 |
return new NodeNumberNode((children == null) ? null : |
TemplateNode ret = new NodeNumberNode(level, |
84 |
children.clone(stylesheet), |
(count == null) ? null : |
85 |
(next == null) ? null : |
(Pattern) count.clone(stylesheet), |
86 |
next.clone(stylesheet), |
(from == null) ? from : |
87 |
level, |
(Pattern) from.clone(stylesheet), |
88 |
(count == null) ? null : |
format, lang, letterValue, |
89 |
(Pattern) count.clone(stylesheet), |
groupingSeparator, groupingSize); |
90 |
(from == null) ? from : |
if (children != null) |
91 |
(Pattern) from.clone(stylesheet), |
{ |
92 |
format, lang, letterValue, |
ret.children = children.clone(stylesheet); |
93 |
groupingSeparator, groupingSize); |
} |
94 |
|
if (next != null) |
95 |
|
{ |
96 |
|
ret.next = next.clone(stylesheet); |
97 |
|
} |
98 |
|
return ret; |
99 |
} |
} |
100 |
|
|
101 |
int[] compute(Stylesheet stylesheet, Node context, int pos, int len) |
int[] compute(Stylesheet stylesheet, Node context, int pos, int len) |