Enum BraceEnforcement
- java.lang.Object
-
- java.lang.Enum<BraceEnforcement>
-
- com.strobel.decompiler.languages.java.BraceEnforcement
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BraceEnforcement>
public enum BraceEnforcement extends java.lang.Enum<BraceEnforcement>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AddBraces
DoNotChange
RemoveBraces
-
Constructor Summary
Constructors Modifier Constructor Description private
BraceEnforcement()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BraceEnforcement
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BraceEnforcement[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DoNotChange
public static final BraceEnforcement DoNotChange
-
RemoveBraces
public static final BraceEnforcement RemoveBraces
-
AddBraces
public static final BraceEnforcement AddBraces
-
-
Method Detail
-
values
public static BraceEnforcement[] 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 (BraceEnforcement c : BraceEnforcement.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BraceEnforcement valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-