public class PluginManager extends Object
| Constructor and Description |
|---|
PluginManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createUserPluginDir() |
DecompilerWrapperInformation |
createWrapper() |
String |
decompile(DecompilerWrapperInformation wrapper,
byte[] bytecode)
Decompile with default options
|
String |
decompile(DecompilerWrapperInformation wrapper,
byte[] bytecode,
String[] options) |
void |
deleteWrapper(DecompilerWrapperInformation wrapperInformation) |
static String |
flipWrapperExtension(String filePath) |
List<DecompilerWrapperInformation> |
getWrappers() |
void |
loadConfigs()
Searches plugin configuration locations and calls loadConfig(file) on files.
|
void |
replace(DecompilerWrapperInformation oldWrapper,
DecompilerWrapperInformation newWrapper) |
void |
saveWrapper(DecompilerWrapperInformation wrapper) |
void |
setLocationForNewWrapper(DecompilerWrapperInformation wrapperInformation) |
String |
validatePlugin(DecompilerWrapperInformation plugin)
Validating the @param plugin using compilation
|
public List<DecompilerWrapperInformation> getWrappers()
public void loadConfigs()
public String decompile(DecompilerWrapperInformation wrapper, byte[] bytecode) throws Exception
Exceptionpublic String decompile(DecompilerWrapperInformation wrapper, byte[] bytecode, String[] options) throws Exception
wrapper - decompiler used for decompilingbytecode - bytecode to be decompiledExceptionpublic void replace(DecompilerWrapperInformation oldWrapper, DecompilerWrapperInformation newWrapper) throws IOException
IOExceptionpublic void deleteWrapper(DecompilerWrapperInformation wrapperInformation)
public void setLocationForNewWrapper(DecompilerWrapperInformation wrapperInformation)
public String validatePlugin(DecompilerWrapperInformation plugin)
plugin - - plugin to validatepublic DecompilerWrapperInformation createWrapper()
public void saveWrapper(DecompilerWrapperInformation wrapper) throws IOException
IOExceptionpublic static void createUserPluginDir()
Copyright © 2019. All Rights Reserved.