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

Method decompile

src/main/java/matcher/srcprocess/Procyon.java:19–32  ·  view source on GitHub ↗
(ClassInstance cls, ClassFeatureExtractor env, NameType nameType)

Source from the content-addressed store, hash-verified

17
18public class Procyon implements Decompiler {
19 @Override
20 public String decompile(ClassInstance cls, ClassFeatureExtractor env, NameType nameType) {
21 DecompilerSettings settings = DecompilerSettings.javaDefaults();
22 settings.setShowSyntheticMembers(true);
23 settings.setTypeLoader(new CompositeTypeLoader(
24 new TypeLoader(env, nameType),
25 new ClasspathTypeLoader()));
26
27 PlainTextOutput out = new PlainTextOutput();
28
29 com.strobel.decompiler.Decompiler.decompile(cls.getName(nameType), out, settings);
30
31 return out.toString();
32 }
33
34 private static class TypeLoader implements ITypeLoader {
35 TypeLoader(ClassFeatureExtractor env, NameType nameType) {

Callers

nothing calls this directly

Calls 3

decompileMethod · 0.65
getNameMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected