当前位置: 首页>>代码示例>>Java>>正文


Java DecompilerSettings.javaDefaults方法代码示例

本文整理汇总了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();
}
 
开发者ID:cccssw,项目名称:enigma-vk,代码行数:24,代码来源:Deobfuscator.java

示例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());
}
 
开发者ID:OpenModLoader,项目名称:Enigma,代码行数:23,代码来源:Deobfuscator.java

示例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());
}
 
开发者ID:Wurst-Imperium,项目名称:Wurst-Enigma,代码行数:25,代码来源:Deobfuscator.java

示例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);
	}
}
 
开发者ID:dwatling,项目名称:apk-decompiler,代码行数:15,代码来源:DecompileClasses.java


注:本文中的com.strobel.decompiler.DecompilerSettings.javaDefaults方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。