- //#switch(uri.substring(19))
- case "io": System.out.println("ibex.xt.io not yet implemented"); // TODO
- //#end
- //throw new JSLeaf.Exn("Unknown XT library: "+uri);
+ throw new JSLeaf.Exn("Unknown XT library: "+uri);
// remap the parent of the original element
if (e.getParent() != null) {
List ch = e.getParent().getChildren();
// remap the parent of the original element
if (e.getParent() != null) {
List ch = e.getParent().getChildren();
/** Processes ${...} blocks in attributes, loads applicable
* attributes into the JS scope and processes global attributes. */
public static class AttributeEval extends JSLeaf.Element implements Tree.Attributes {
/** Processes ${...} blocks in attributes, loads applicable
* attributes into the JS scope and processes global attributes. */
public static class AttributeEval extends JSLeaf.Element implements Tree.Attributes {
- public AttributeEval(Tree.Element wrapped) { super(wrapped); a = wrapped.getAttributes(); }
-
- public Tree.Attributes getAttributes() { return this; }
+ public AttributeEval(Tree.Element wrapped) {
+ super(wrapped);
+ a = wrapped.getAttributes();
+ wrapped.setAttributes(this);
+ }
public int getIndex(String q) { return a.getIndex(q); }
public int getIndex(String u, String k) { return a.getIndex(u, k); }
public int getIndex(String q) { return a.getIndex(q); }
public int getIndex(String u, String k) { return a.getIndex(u, k); }
"space seperated list of variable names to declare.");
StringTokenizer st = new StringTokenizer((String)d, " ");
while (st.hasMoreTokens()) scope().declare(st.nextToken());
"space seperated list of variable names to declare.");
StringTokenizer st = new StringTokenizer((String)d, " ");
while (st.hasMoreTokens()) scope().declare(st.nextToken());