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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe plugin did change the class and requires a rewrite, and requires frame re-computation.The plugin did change the class and requires a rewrite, and requires max re-computation, but frames are unchanged or corrected by the pluginThis plugin did not change the class and therefor requires no rewrite of the class.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. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmax(ClassProcessor.ComputeFlags other) Returns which of the two flags is a superset of the other.static ClassProcessor.ComputeFlagsReturns the enum constant of this class with the specified name.static ClassProcessor.ComputeFlags[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_REWRITE
This plugin did not change the class and therefor requires no rewrite of the class. This is the fastest option -
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
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
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 impliesCOMPUTE_MAXS, so maxs will also be recomputed.
-
-
Constructor Details
-
ComputeFlags
private ComputeFlags()
-
-
Method Details
-
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
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 nameNullPointerException- 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
-