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
private static enum RequireThisCheck.FrameType extends Enum<RequireThisCheck.FrameType>
An AbstractFrame type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCK_FRAME
Block frame type.CATCH_FRAME
Catch frame type.CLASS_FRAME
Class frame type.CTOR_FRAME
Constructor frame type.FOR_FRAME
For frame type.METHOD_FRAME
Method frame type.TRY_WITH_RESOURCES_FRAME
Try with resources frame type.
-
Constructor Summary
Constructors Modifier Constructor Description private
FrameType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RequireThisCheck.FrameType
valueOf(String name)
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 Detail
-
CLASS_FRAME
public static final RequireThisCheck.FrameType CLASS_FRAME
Class frame type.
-
CTOR_FRAME
public static final RequireThisCheck.FrameType CTOR_FRAME
Constructor frame type.
-
METHOD_FRAME
public static final RequireThisCheck.FrameType METHOD_FRAME
Method frame type.
-
BLOCK_FRAME
public static final RequireThisCheck.FrameType BLOCK_FRAME
Block frame type.
-
CATCH_FRAME
public static final RequireThisCheck.FrameType CATCH_FRAME
Catch frame type.
-
FOR_FRAME
public static final RequireThisCheck.FrameType FOR_FRAME
For frame type.
-
TRY_WITH_RESOURCES_FRAME
public static final RequireThisCheck.FrameType TRY_WITH_RESOURCES_FRAME
Try with resources frame type.
-
-
Constructor Detail
-
FrameType
private FrameType()
-
-
Method Detail
-
values
public static RequireThisCheck.FrameType[] 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 (RequireThisCheck.FrameType c : RequireThisCheck.FrameType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RequireThisCheck.FrameType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-