當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。