MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / asMap_new

Method asMap_new

src/main/java/field/graphics/FLine.java:1735–1752  ·  view source on GitHub ↗
(Object b)

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 4

duplicateMethod · 0.95
asMap_setMethod · 0.95
convertMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected