本文整理匯總了Java中com.strobel.decompiler.DecompilerSettings.javaDefaults方法的典型用法代碼示例。如果您正苦於以下問題:Java DecompilerSettings.javaDefaults方法的具體用法?Java DecompilerSettings.javaDefaults怎麽用?Java DecompilerSettings.javaDefaults使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.strobel.decompiler.DecompilerSettings
的用法示例。
在下文中一共展示了DecompilerSettings.javaDefaults方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: Deobfuscator
import com.strobel.decompiler.DecompilerSettings; //導入方法依賴的package包/類
public Deobfuscator(JarFile jar) throws IOException {
m_jar = jar;
// build the jar index
m_jarIndex = new JarIndex();
m_jarIndex.indexJar(m_jar, true);
// config the decompiler
m_settings = DecompilerSettings.javaDefaults();
m_settings.setMergeVariables(true);
m_settings.setForceExplicitImports(true);
m_settings.setForceExplicitTypeArguments(true);
m_settings.setShowDebugLineNumbers(true);
// DEBUG
//m_settings.setShowSyntheticMembers(true);
// init defaults
m_translatorCache = Maps.newTreeMap();
// init mappings
setMappings(new Mappings());
markWordAsDeObfuscate();
}
示例2: Deobfuscator
import com.strobel.decompiler.DecompilerSettings; //導入方法依賴的package包/類
public Deobfuscator(JarFile jar) {
this.jar = jar;
// build the jar index
this.jarIndex = new JarIndex();
this.jarIndex.indexJar(this.jar, true);
// config the decompiler
this.settings = DecompilerSettings.javaDefaults();
this.settings.setMergeVariables(true);
this.settings.setForceExplicitImports(true);
this.settings.setForceExplicitTypeArguments(true);
this.settings.setShowDebugLineNumbers(true);
// DEBUG
//this.settings.setShowSyntheticMembers(true);
// init defaults
this.translatorCache = Maps.newTreeMap();
// init mappings
setMappings(new Mappings());
}
示例3: Deobfuscator
import com.strobel.decompiler.DecompilerSettings; //導入方法依賴的package包/類
public Deobfuscator(JarFile jar) throws IOException
{
m_jar = jar;
// build the jar index
m_jarIndex = new JarIndex();
m_jarIndex.indexJar(m_jar, true);
// config the decompiler
m_settings = DecompilerSettings.javaDefaults();
m_settings.setMergeVariables(true);
m_settings.setForceExplicitImports(true);
m_settings.setForceExplicitTypeArguments(false);
m_settings.setRetainRedundantCasts(false);
// m_settings.setShowDebugLineNumbers(true);
// DEBUG
// m_settings.setShowSyntheticMembers(true);
// init defaults
m_translatorCache = Maps.newTreeMap();
// init mappings
setMappings(new Mappings());
}
示例4: decompile
import com.strobel.decompiler.DecompilerSettings; //導入方法依賴的package包/類
private void decompile(File classFile, File srcFolder) {
try {
File outputFile = convertClassFileToOutputFile(classFile, srcFolder);
outputFile.getParentFile().mkdirs();
PlainTextOutput output = new PlainTextOutput(new OutputStreamWriter(new FileOutputStream(outputFile.getAbsolutePath())));
DecompilerSettings settings = DecompilerSettings.javaDefaults();
settings.setForceExplicitImports(true);
settings.setOutputFileHeaderText("Generated with Procyon v" + Procyon.version());
Decompiler.decompile(classFile.getAbsolutePath(), output, settings);
} catch (IOException ex) {
Logger.error("Unable to decompile " + classFile.getAbsolutePath(), ex);
}
}