io.github.skylot.raung.disasm.api.IRaungDisasm Maven / Gradle / Ivy
package io.github.skylot.raung.disasm.api;
import java.io.InputStream;
import java.nio.file.Path;
import java.util.List;
public interface IRaungDisasm {
/**
* List of files or directories (will preform recursive search for .jar or .class files).
*/
IRaungDisasm inputs(List inputs);
/**
* Single file or directory (will preform recursive search for .jar or .class files).
* Can be called several times if needed.
*/
IRaungDisasm input(Path input);
/**
* Directory or single file (only for single input).
* Optional - current dir will be used if not set.
*/
IRaungDisasm output(Path out);
/**
* Preform disassemble according to provided options.
*/
void execute();
/**
* Single mode: process specified input file and return result as string.
* Any set inputs or output will be ignored.
*/
String executeForSingleClass(Path input);
/**
* Single mode: process specified input stream and return result as string.
* Any set inputs or output will be ignored.
*/
String executeForInputStream(InputStream input);
/**
* Don't add debug information (var names and line numbers)
*/
IRaungDisasm ignoreDebugInfo();
}