Package proguard.dexfile.converter
Class Dex2Pro
- java.lang.Object
-
- proguard.dexfile.converter.Dex2Pro
-
public class Dex2Pro extends java.lang.Object
This utility class converts Dex2jar dex files to ProGuard class files.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
convertDex(DexFileNode fileNode, ClassVisitor classVisitor)
Converts the given Dex to classes and applies the given class visitor to them.void
shutdown(int timeoutSeconds)
Shuts down and waits for any remaining conversion workers, up to timeoutSeconds.Dex2Pro
usePrimitiveArrayConstants(boolean usePrimitiveArrayConstants)
-
-
-
Constructor Detail
-
Dex2Pro
public Dex2Pro()
Create a new (single-threaded)Dex2Pro
object.
-
Dex2Pro
public Dex2Pro(int maximumThreads)
Create a newDex2Pro
object that will use up to maximumThreads threads for conversion. If more than one thread is set, one must call shutdown() after adding all work, to allow time for the workers to shut down in an orderly fashion.
-
-
Method Detail
-
usePrimitiveArrayConstants
public Dex2Pro usePrimitiveArrayConstants(boolean usePrimitiveArrayConstants)
-
convertDex
public void convertDex(DexFileNode fileNode, ClassVisitor classVisitor)
Converts the given Dex to classes and applies the given class visitor to them.
-
shutdown
public void shutdown(int timeoutSeconds)
Shuts down and waits for any remaining conversion workers, up to timeoutSeconds.
-
-