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

Method asMap_get

src/main/java/field/graphics/FLine.java:1593–1608  ·  view source on GitHub ↗
(String m)

Source from the content-addressed store, hash-verified

1591 Dict.Prop canon = new Dict.Prop(m).findCanon();
1592
1593 Object ret = attributes.getOrConstruct(canon);
1594
1595
1596 if (ret instanceof Box.FunctionOfBox) {
1597 return ((Supplier) (() -> ((Box.FunctionOfBox) ret).apply(this)));
1598 }
1599
1600 return ret;
1601 }
1602
1603 @Override
1604 @HiddenInAutocomplete
1605 public Object asMap_set(String name, Object value) {
1606
1607 // workaround bug in Nashorn
1608// if (value instanceof ConsString) value = value.toString(); //jdk9 module security breaks this
1609 if (value != null && value.getClass().getName().endsWith("ConsString")) value = "" + value;
1610
1611 Dict.Prop canon = new Dict.Prop(name).toCanon();

Callers

nothing calls this directly

Calls 5

lastMethod · 0.95
applyMethod · 0.65
equalsMethod · 0.45
findCanonMethod · 0.45
getOrConstructMethod · 0.45

Tested by

no test coverage detected