Enum Class ClassProcessor.ComputeFlags

java.lang.Object
java.lang.Enum<ClassProcessor.ComputeFlags>
net.neoforged.neoforgespi.transformation.ClassProcessor.ComputeFlags
All Implemented Interfaces:
Serializable, Comparable<ClassProcessor.ComputeFlags>, Constable
Enclosing interface:
ClassProcessor

public static enum ClassProcessor.ComputeFlags extends Enum<ClassProcessor.ComputeFlags>
  • Enum Constant Details

    • NO_REWRITE

      public static final ClassProcessor.ComputeFlags NO_REWRITE
      This plugin did not change the class and therefor requires no rewrite of the class. This is the fastest option
    • SIMPLE_REWRITE

      public static final ClassProcessor.ComputeFlags SIMPLE_REWRITE
      The plugin did change the class and requires a rewrite, but does not require any additional computation as frames and maxs in the class did not change or have been corrected by the plugin.
    • COMPUTE_MAXS

      public static final ClassProcessor.ComputeFlags COMPUTE_MAXS
      The plugin did change the class and requires a rewrite, and requires max re-computation, but frames are unchanged or corrected by the plugin
    • COMPUTE_FRAMES

      public static final ClassProcessor.ComputeFlags COMPUTE_FRAMES
      The plugin did change the class and requires a rewrite, and requires frame re-computation. This is the slowest, but also the safest method if you don't know what level is required. This implies COMPUTE_MAXS, so maxs will also be recomputed.
  • Constructor Details

    • ComputeFlags

      private ComputeFlags()
  • Method Details

    • values

      public static ClassProcessor.ComputeFlags[] 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 ClassProcessor.ComputeFlags 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
    • max

      Returns which of the two flags is a superset of the other.
      Parameters:
      other - the other flag to compare against
      Returns:
      which of the two flags is a superset of the other