MCPcopy Create free account
hub / github.com/FabricMC/Matcher / appendId

Method appendId

src/main/java/matcher/type/MethodInstance.java:234–251  ·  view source on GitHub ↗
(ClassInstance cls, NameType type, StringBuilder out)

Source from the content-addressed store, hash-verified

232 }
233
234 private static boolean appendId(ClassInstance cls, NameType type, StringBuilder out) {
235 if (type == NameType.PLAIN || cls.isPrimitive()) {
236 out.append(cls.id);
237 } else {
238 String name = cls.getName(type);
239 if (name == null) return false;
240
241 if (cls.isArray()) {
242 out.append(name);
243 } else {
244 out.append('L');
245 out.append(name);
246 out.append(';');
247 }
248 }
249
250 return true;
251 }
252
253 @Override
254 public boolean isReal() {

Callers 1

getDescMethod · 0.95

Calls 3

isPrimitiveMethod · 0.80
isArrayMethod · 0.80
getNameMethod · 0.65

Tested by

no test coverage detected