Package org.jf.smali
Class Smali
java.lang.Object
org.jf.smali.Smali
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanassemble(SmaliOptions options, String... input) Assemble the specified files, using the given optionsstatic booleanassemble(SmaliOptions options, List<String> input) Assemble the specified files, using the given optionsprivate static booleanassembleSmaliFile(File smaliFile, DexBuilder dexBuilder, SmaliOptions options) private static voidgetSmaliFilesInDir(File dir, Set<File> smaliFiles) static booleanprintTokens(SmaliOptions options, List<String> input) Prints the lexical tokens for the given files.private static booleanprintTokensForSingleFile(File smaliFile, SmaliOptions options)
-
Constructor Details
-
Smali
public Smali()
-
-
Method Details
-
assemble
Assemble the specified files, using the given options- Parameters:
options- a SmaliOptions object with the options to run smali withinput- The files/directories to process- Returns:
- true if assembly completed with no errors, or false if errors were encountered
- Throws:
IOException
-
assemble
Assemble the specified files, using the given options- Parameters:
options- a SmaliOptions object with the options to run smali withinput- The files/directories to process- Returns:
- true if assembly completed with no errors, or false if errors were encountered
- Throws:
IOException
-
printTokens
Prints the lexical tokens for the given files.- Parameters:
options- a SmaliOptions object with the options to useinput- The files/directories to process- Returns:
- true if assembly completed with no errors, or false if errors were encountered
- Throws:
IOException
-
getSmaliFilesInDir
-
assembleSmaliFile
private static boolean assembleSmaliFile(File smaliFile, DexBuilder dexBuilder, SmaliOptions options) throws Exception - Throws:
Exception
-
printTokensForSingleFile
private static boolean printTokensForSingleFile(File smaliFile, SmaliOptions options) throws Exception - Throws:
Exception
-