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

Method asMap_call

src/main/java/field/graphics/FLine.java:1713–1733  ·  view source on GitHub ↗
(Object a, Object b)

Source from the content-addressed store, hash-verified

1711// .getInterfaces())));
1712 boolean success = false;
1713 try {
1714 Map<?, ?> m = (Map<?, ?>) ScriptUtils.convert(b, Map.class);
1715 for (Map.Entry<?, ?> e : m.entrySet()) {
1716 asMap_set("" + e.getKey(), e.getValue());
1717 }
1718 success = true;
1719 } catch (UnsupportedOperationException e) {
1720
1721 }
1722 if (!success) {
1723 throw new IllegalArgumentException(" can't understand parameter :" + b);
1724 }
1725 return this;
1726 }
1727
1728 @Override
1729 @HiddenInAutocomplete
1730 public Object asMap_new(Object b) {
1731 boolean success = false;
1732 try {
1733 Map<?, ?> m = (Map<?, ?>) ScriptUtils.convert(b, Map.class);
1734
1735 FLine o = this.duplicate();
1736

Callers

nothing calls this directly

Calls 3

asMap_setMethod · 0.95
convertMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected