Enum Class OptimizerMode

java.lang.Object
java.lang.Enum<OptimizerMode>
com.pnfsoftware.jeb.core.units.code.asm.decompiler.opt.OptimizerMode
All Implemented Interfaces:
Serializable, Comparable<OptimizerMode>, Constable

public enum OptimizerMode extends Enum<OptimizerMode>
Modes of operations for a master optimizer.
  • Enum Constant Details

    • NORMAL

      public static final OptimizerMode NORMAL
      Regular mode.

      Standard mode for optimizers, they may be called without restrictions.

    • AGGRESSIVE

      public static final OptimizerMode AGGRESSIVE
      Aggressive mode, run close to the end of pipeline.

      Some optimizations that may counter other optimizers from performing as intended are enabled.

    • UNFRIENDLY

      public static final OptimizerMode UNFRIENDLY
      Unfriendly mode, run at the end of pipeline.

      Some optimizations that will counter other optimizers from performing as intended are enabled.

  • Method Details

    • values

      public static OptimizerMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static OptimizerMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • isAggressive

      public boolean isAggressive()
    • isUnfriendly

      public boolean isUnfriendly()
    • meetsRequirement

      public boolean meetsRequirement(OptimizerMode requiredMode)