- /** A JSLeaf.Element with the element attributes merged with a second
- * element.
- *
- * All functions of the Tree.Element interface are mapped onto the
- * primary element, except <tt>getAttributes()</tt>. This function
- * returns a MergedAttr instance with the <b>secondary</b> element
- * acting as the primary attribute source.
- */
- public static class Merge extends Element {
- private final Tree.Attributes a;
- public Merge(Tree.Element wrapped, Tree.Element merge) {
- super(wrapped);
- a = new MergeAttr(merge.getAttributes(), wrapped.getAttributes());
- }
- public Tree.Attributes getAttributes() { return a; }
- }
-