Package org.sonar.java.se.constraint
Enum BooleanConstraint
- All Implemented Interfaces:
Serializable,Comparable<BooleanConstraint>,Constraint
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturn constraint which should be applied to the rhs of the relation, if this constraint is set on the lhs of the relation.booleaninverse()booleanisFalse()booleanisTrue()booleanisValidWith(Constraint constraint) static BooleanConstraintReturns the enum constant of this type with the specified name.static BooleanConstraint[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TRUE
-
FALSE
-
-
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
-
isTrue
public boolean isTrue() -
isFalse
public boolean isFalse() -
hasPreciseValue
public boolean hasPreciseValue()- Specified by:
hasPreciseValuein interfaceConstraint- Returns:
- true if value represented by this SV is precisely known.
-
valueAsString
- Specified by:
valueAsStringin interfaceConstraint- Returns:
- String representation of value encoded by constraint for purpose of flow message
-
copyOver
Description copied from interface:ConstraintReturn constraint which should be applied to the rhs of the relation, if this constraint is set on the lhs of the relation.- Specified by:
copyOverin interfaceConstraint- Parameters:
kind- kind of relation over which constraint is copied- Returns:
- constraint to be set on rhs, null if no constraint should be set
-
isValidWith
- Specified by:
isValidWithin interfaceConstraint
-
inverse
- Specified by:
inversein interfaceConstraint
-