Enum 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>
- Enclosing class:
- RequireThisCheck
An AbstractFrame type.
-
Enum Constant Summary
Enum 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
-
Method Summary
Modifier and TypeMethodDescriptionstatic RequireThisCheck.FrameType
Returns the enum constant of this type with the specified name.static RequireThisCheck.FrameType[]
values()
Returns an array containing the constants of this enum type, 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-