Procyon Refactoring

This commit is contained in:
Konloch 2024-10-02 12:13:36 -06:00
parent 03d74f3ded
commit f121870272

AI 샘플 코드 생성 중입니다

Loading...

View File

@ -58,27 +58,6 @@ public class ProcyonDecompiler extends AbstractDecompiler
super("Procyon Decompiler", "proycon");
}
public DecompilerSettings getDecompilerSettings()
{
DecompilerSettings settings = new DecompilerSettings();
settings.setAlwaysGenerateExceptionVariableForCatchBlocks(BytecodeViewer.viewer.alwaysGenerateExceptionVars.isSelected());
settings.setExcludeNestedTypes(BytecodeViewer.viewer.excludeNestedTypes.isSelected());
settings.setShowDebugLineNumbers(BytecodeViewer.viewer.showDebugLineNumbers.isSelected());
settings.setIncludeLineNumbersInBytecode(BytecodeViewer.viewer.includeLineNumbersInBytecode.isSelected());
settings.setIncludeErrorDiagnostics(BytecodeViewer.viewer.includeErrorDiagnostics.isSelected());
settings.setShowSyntheticMembers(BytecodeViewer.viewer.showSyntheticMembers.isSelected());
settings.setSimplifyMemberReferences(BytecodeViewer.viewer.simplifyMemberReferences.isSelected());
settings.setMergeVariables(BytecodeViewer.viewer.mergeVariables.isSelected());
settings.setForceExplicitTypeArguments(BytecodeViewer.viewer.forceExplicitTypeArguments.isSelected());
settings.setForceExplicitImports(BytecodeViewer.viewer.forceExplicitImports.isSelected());
settings.setFlattenSwitchBlocks(BytecodeViewer.viewer.flattenSwitchBlocks.isSelected());
settings.setRetainPointlessSwitches(BytecodeViewer.viewer.retainPointlessSwitches.isSelected());
settings.setRetainRedundantCasts(BytecodeViewer.viewer.retainRedunantCasts.isSelected());
settings.setUnicodeOutputEnabled(BytecodeViewer.viewer.unicodeOutputEnabled.isSelected());
settings.setJavaFormattingOptions(JavaFormattingOptions.createDefault());
return settings;
}
@Override
public String decompileClassNode(ClassNode cn, byte[] bytes)
{
@ -246,6 +225,27 @@ public class ProcyonDecompiler extends AbstractDecompiler
}
}
public DecompilerSettings getDecompilerSettings()
{
DecompilerSettings settings = new DecompilerSettings();
settings.setAlwaysGenerateExceptionVariableForCatchBlocks(BytecodeViewer.viewer.alwaysGenerateExceptionVars.isSelected());
settings.setExcludeNestedTypes(BytecodeViewer.viewer.excludeNestedTypes.isSelected());
settings.setShowDebugLineNumbers(BytecodeViewer.viewer.showDebugLineNumbers.isSelected());
settings.setIncludeLineNumbersInBytecode(BytecodeViewer.viewer.includeLineNumbersInBytecode.isSelected());
settings.setIncludeErrorDiagnostics(BytecodeViewer.viewer.includeErrorDiagnostics.isSelected());
settings.setShowSyntheticMembers(BytecodeViewer.viewer.showSyntheticMembers.isSelected());
settings.setSimplifyMemberReferences(BytecodeViewer.viewer.simplifyMemberReferences.isSelected());
settings.setMergeVariables(BytecodeViewer.viewer.mergeVariables.isSelected());
settings.setForceExplicitTypeArguments(BytecodeViewer.viewer.forceExplicitTypeArguments.isSelected());
settings.setForceExplicitImports(BytecodeViewer.viewer.forceExplicitImports.isSelected());
settings.setFlattenSwitchBlocks(BytecodeViewer.viewer.flattenSwitchBlocks.isSelected());
settings.setRetainPointlessSwitches(BytecodeViewer.viewer.retainPointlessSwitches.isSelected());
settings.setRetainRedundantCasts(BytecodeViewer.viewer.retainRedunantCasts.isSelected());
settings.setUnicodeOutputEnabled(BytecodeViewer.viewer.unicodeOutputEnabled.isSelected());
settings.setJavaFormattingOptions(JavaFormattingOptions.createDefault());
return settings;
}
/**
* @author DeathMarine
*/