Enum Optimizations

java.lang.Object
java.lang.Enum<Optimizations>
de.mirkosertic.bytecoder.core.optimizer.Optimizations
All Implemented Interfaces:
Optimizer, Serializable, Comparable<Optimizations>, java.lang.constant.Constable

public enum Optimizations extends Enum<Optimizations> implements Optimizer
  • Enum Constant Details

  • Field Details

    • optimizers

      private final Optimizer[] optimizers
  • Constructor Details

    • Optimizations

      private Optimizations(Optimizer[] optimizers)
  • Method Details

    • values

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

      public static Optimizations 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 name
      NullPointerException - if the argument is null
    • optimize

      public boolean optimize(CompileUnit compileUnit, ResolvedMethod method)
      Specified by:
      optimize in interface Optimizer