APISonar


com.strobel.decompiler.languages.Languages.java

> com > strobel > decompiler > languages > Languages > java
com APIs strobel APIs decompiler APIs languages APIs Languages APIs java APIs

Example 1
private static CompilationUnit decompileClassFile(TypeReference typeRef) {
    TypeDefinition typeDef = typeRef.resolve();
    DeobfuscationUtilities.processType(typeDef);
    DecompilationOptions options = new DecompilationOptions();
    DecompilerSettings settings = DecompilerSettings.javaDefaults();
    settings.setShowSyntheticMembers(true);
    options.setSettings(settings);
    options.setFullDecompilation(true);
    return Languages.java().decompileTypeToAst(typeDef, options);
  }