MCPcopy Create free account
hub / github.com/chibash/stone / javaType

Method javaType

src/chap14/ToJava.java:252–259  ·  view source on GitHub ↗
(TypeInfo t)

Source from the content-addressed store, hash-verified

250 return code.toString();
251 }
252 protected String javaType(TypeInfo t) {
253 if (t.type() == TypeInfo.INT)
254 return "int";
255 else if (t.type() == TypeInfo.STRING)
256 return "String";
257 else
258 return "Object";
259 }
260 }
261 @Reviser public static class PrimaryEx2 extends FuncEvaluator.PrimaryEx {
262 public PrimaryEx2(List<ASTree> c) { super(c); }

Callers 1

translateMethod · 0.95

Calls 1

typeMethod · 0.45

Tested by

no test coverage detected