53 |
|
|
54 |
final Expr value; |
final Expr value; |
55 |
|
|
56 |
NumberNode(TemplateNode children, TemplateNode next, |
NumberNode(Expr value, TemplateNode format, String lang, |
|
Expr value, TemplateNode format, String lang, |
|
57 |
int letterValue, String groupingSeparator, int groupingSize) |
int letterValue, String groupingSeparator, int groupingSize) |
58 |
{ |
{ |
59 |
super(children, next, format, lang, letterValue, groupingSeparator, |
super(format, lang, letterValue, groupingSeparator, groupingSize); |
|
groupingSize); |
|
60 |
this.value = value; |
this.value = value; |
61 |
} |
} |
62 |
|
|
63 |
TemplateNode clone(Stylesheet stylesheet) |
TemplateNode clone(Stylesheet stylesheet) |
64 |
{ |
{ |
65 |
return new NumberNode((children == null) ? null : |
TemplateNode ret = new NumberNode(value.clone(stylesheet), |
66 |
children.clone(stylesheet), |
format, lang, letterValue, |
67 |
(next == null) ? null : |
groupingSeparator, groupingSize); |
68 |
next.clone(stylesheet), |
if (children != null) |
69 |
value.clone(stylesheet), |
{ |
70 |
format, lang, letterValue, |
ret.children = children.clone(stylesheet); |
71 |
groupingSeparator, groupingSize); |
} |
72 |
|
if (next != null) |
73 |
|
{ |
74 |
|
ret.next = next.clone(stylesheet); |
75 |
|
} |
76 |
|
return ret; |
77 |
} |
} |
78 |
|
|
79 |
int[] compute(Stylesheet stylesheet, Node context, int pos, int len) |
int[] compute(Stylesheet stylesheet, Node context, int pos, int len) |