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

Method asMap_call

src/main/java/field/graphics/MeshBuilder.java:116–132  ·  view source on GitHub ↗

Call this function, wrapped between an open() and close() pair

(Object r, Object o1)

Source from the content-addressed store, hash-verified

114
115 Object rr = Conversions.convert(o1, Runnable.class);
116
117 if (rr instanceof Runnable) {
118
119 open();
120 try {
121 ((Runnable) rr).run();
122 } finally {
123 close();
124 }
125 } else
126 throw new ClassCastException(" can't call " + o1);
127
128 return this;
129 }
130
131 @Override
132 public Object asMap_get(String s) {
133 return target.asMap_get(s);
134 }
135

Callers

nothing calls this directly

Calls 4

convertMethod · 0.95
openMethod · 0.95
closeMethod · 0.95
runMethod · 0.45

Tested by

no test coverage detected