Enum TransformPreset
- java.lang.Object
-
- java.lang.Enum<TransformPreset>
-
- com.tonic.analysis.source.decompile.TransformPreset
-
- All Implemented Interfaces:
Serializable,Comparable<TransformPreset>
public enum TransformPreset extends Enum<TransformPreset>
Preset configurations for IR transform pipelines during decompilation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AGGRESSIVEAggressive optimization - maximum simplification for cleanest output.MINIMALMinimal cleanup - safe transforms with low risk of issues.NONENo additional transforms - only baseline transforms are applied.STANDARDStandard optimization - balanced cleanup for better readability.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract List<IRTransform>getTransforms()Returns the list of transforms for this preset.static TransformPresetvalueOf(String name)Returns the enum constant of this type with the specified name.static TransformPreset[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final TransformPreset NONE
No additional transforms - only baseline transforms are applied.
-
MINIMAL
public static final TransformPreset MINIMAL
Minimal cleanup - safe transforms with low risk of issues.
-
STANDARD
public static final TransformPreset STANDARD
Standard optimization - balanced cleanup for better readability.
-
AGGRESSIVE
public static final TransformPreset AGGRESSIVE
Aggressive optimization - maximum simplification for cleanest output.
-
-
Method Detail
-
values
public static TransformPreset[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TransformPreset c : TransformPreset.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransformPreset valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getTransforms
public abstract List<IRTransform> getTransforms()
Returns the list of transforms for this preset.- Returns:
- list of IR transforms for this preset
-
-