Enum Class RequireThisCheck.FrameType
java.lang.Object
java.lang.Enum<RequireThisCheck.FrameType>
com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.FrameType
- All Implemented Interfaces:
Serializable
,Comparable<RequireThisCheck.FrameType>
,Constable
- Enclosing class:
- RequireThisCheck
An AbstractFrame type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBlock frame type.Catch frame type.Class frame type.Constructor frame type.For frame type.Method frame type.Try with resources frame type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RequireThisCheck.FrameType
Returns the enum constant of this class with the specified name.static RequireThisCheck.FrameType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLASS_FRAME
Class frame type. -
CTOR_FRAME
Constructor frame type. -
METHOD_FRAME
Method frame type. -
BLOCK_FRAME
Block frame type. -
CATCH_FRAME
Catch frame type. -
FOR_FRAME
For frame type. -
TRY_WITH_RESOURCES_FRAME
Try with resources frame type.
-
-
Constructor Details
-
FrameType
private FrameType()
-
-
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
-