Package org.sonar.java.se.checks
Enum UnclosedResourcesCheck.ResourceConstraint
- java.lang.Object
-
- java.lang.Enum<UnclosedResourcesCheck.ResourceConstraint>
-
- org.sonar.java.se.checks.UnclosedResourcesCheck.ResourceConstraint
-
- All Implemented Interfaces:
Serializable,Comparable<UnclosedResourcesCheck.ResourceConstraint>,Constraint
- Enclosing class:
- UnclosedResourcesCheck
public static enum UnclosedResourcesCheck.ResourceConstraint extends Enum<UnclosedResourcesCheck.ResourceConstraint> implements Constraint
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringvalueAsString()static UnclosedResourcesCheck.ResourceConstraintvalueOf(String name)Returns the enum constant of this type with the specified name.static UnclosedResourcesCheck.ResourceConstraint[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.sonar.java.se.constraint.Constraint
copyOver, hasPreciseValue, inverse, isValidWith
-
-
-
-
Enum Constant Detail
-
OPEN
public static final UnclosedResourcesCheck.ResourceConstraint OPEN
-
CLOSED
public static final UnclosedResourcesCheck.ResourceConstraint CLOSED
-
-
Method Detail
-
values
public static UnclosedResourcesCheck.ResourceConstraint[] 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 (UnclosedResourcesCheck.ResourceConstraint c : UnclosedResourcesCheck.ResourceConstraint.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UnclosedResourcesCheck.ResourceConstraint 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
-
valueAsString
public String valueAsString()
- Specified by:
valueAsStringin interfaceConstraint- Returns:
- String representation of value encoded by constraint for purpose of flow message
-
-