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

Method html

src/main/java/fieldnashorn/ErrorHelper.java:182–189  ·  view source on GitHub ↗
(Box box, Object second)

Source from the content-addressed store, hash-verified

180 }
181
182 private String html(Box box, Object second) {
183
184 if (second instanceof StaticClass) {
185 return "for example `new " + ((StaticClass) second).getRepresentedClass().getSimpleName() + "`";
186 }
187
188 return box.first(Out.__out).map(x -> x.convert(second)).orElseGet(() -> "" + second);
189 }
190
191 private Pair<Integer, String> replaceBoxReferences(Box box, Pair<Integer, String> line) {
192 Matcher m = boxFinder.matcher(line.second);

Callers 1

replaceMissingRefsMethod · 0.95

Calls 3

firstMethod · 0.80
mapMethod · 0.45
convertMethod · 0.45

Tested by

no test coverage detected