Search in sources :

Example 11 with CodeWriter

use of jadx.core.codegen.CodeWriter in project jadx by skylot.

the class SaveCode method save.

public static void save(File dir, IJadxArgs args, ClassNode cls) {
    CodeWriter clsCode = cls.getCode();
    String fileName = cls.getClassInfo().getFullPath() + ".java";
    if (args.isFallbackMode()) {
        fileName += ".jadx";
    }
    clsCode.save(dir, fileName);
}
Also used : CodeWriter(jadx.core.codegen.CodeWriter)

Aggregations

CodeWriter (jadx.core.codegen.CodeWriter)11 ClassNode (jadx.core.dex.nodes.ClassNode)2 ResourceEntry (jadx.core.xmlgen.entry.ResourceEntry)2 IntegrationTest (jadx.tests.api.IntegrationTest)2 Test (org.junit.Test)2 ResourceFile (jadx.api.ResourceFile)1 ResourceFileContent (jadx.api.ResourceFileContent)1 InsnGen (jadx.core.codegen.InsnGen)1 MethodGen (jadx.core.codegen.MethodGen)1 InsnNode (jadx.core.dex.nodes.InsnNode)1 MethodNode (jadx.core.dex.nodes.MethodNode)1 CodegenException (jadx.core.utils.exceptions.CodegenException)1 FileUtils.prepareFile (jadx.core.utils.files.FileUtils.prepareFile)1 ResContainer (jadx.core.xmlgen.ResContainer)1 ValuesParser (jadx.core.xmlgen.entry.ValuesParser)1 BufferedImage (java.awt.image.BufferedImage)1 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 File (java.io.File)1 IOException (java.io.IOException)1 ArrayList (java.util.ArrayList)1