/[classpath]/classpath/gnu/xml/transform/NumberNode.java
ViewVC logotype

Diff of /classpath/gnu/xml/transform/NumberNode.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by gnu_andrew, Sat Feb 12 14:26:02 2005 UTC revision 1.3 by dog, Thu Jun 30 22:09:07 2005 UTC
# Line 53  final class NumberNode Line 53  final class NumberNode
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)

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26