| 1733 | Map<?, ?> m = (Map<?, ?>) ScriptUtils.convert(b, Map.class); |
| 1734 | |
| 1735 | FLine o = this.duplicate(); |
| 1736 | |
| 1737 | for (Map.Entry<?, ?> e : m.entrySet()) { |
| 1738 | o.asMap_set("" + e.getKey(), e.getValue()); |
| 1739 | } |
| 1740 | success = true; |
| 1741 | return o; |
| 1742 | } catch (UnsupportedOperationException e) { |
| 1743 | throw new IllegalArgumentException(" can't understand parameter :" + b); |
| 1744 | } |
| 1745 | } |
| 1746 | |
| 1747 | @Override |
| 1748 | @HiddenInAutocomplete |
| 1749 | public Object asMap_new(Object b, Object c) { |
| 1750 | throw new NoSuchMethodError(" two argument constructor to fline not implemented"); |
| 1751 | } |
| 1752 | |
| 1753 | @Override |
| 1754 | public Object asMap_getElement(int element) { |
| 1755 | return nodes.get(element); |