Enum Class RequireThisCheck.LookMode
java.lang.Object
java.lang.Enum<RequireThisCheck.LookMode>
com.puppycrawl.tools.checkstyle.checks.coding.RequireThisCheck.LookMode
- All Implemented Interfaces:
Serializable,Comparable<RequireThisCheck.LookMode>,Constable
- Enclosing class:
RequireThisCheck
Defines whether a method name is being looked for during a frame lookup.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLook for a method name.Do not look for a method name. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RequireThisCheck.LookModeReturns the enum constant of this class with the specified name.static RequireThisCheck.LookMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOOK_FOR_METHOD
Look for a method name. -
NO_LOOK_FOR_METHOD
Do not look for a method name.
-
-
Constructor Details
-
LookMode
private LookMode()
-
-
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
-