本文整理汇总了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);
}
}