Package org.sonar.plugins.python.api
Enum Class TriBool
- All Implemented Interfaces:
Serializable,Comparable<TriBool>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionconservativeAnd(TriBool triBool) This method performs a conservative AND of TriBool results It is meant to be used when collapsing the results of testing a single predicate against candidates of a UnionType Therefore, this variation will return UNKNOWN whenever one of the operands is UNKNOWNbooleanisFalse()booleanisTrue()booleanlogicalAnd(TriBool triBool) This method performs a logical AND of TriBool results It is meant to be used when performing the logical combination of ANDed predicates against a given type Therefore, this variation behaves like a standard logical "AND" and will return FALSE whenever one of the operands is FALSEstatic TriBoolReturns the enum constant of this class with the specified name.static TriBool[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TRUE
-
FALSE
-
UNKNOWN
-
-
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
-
conservativeAnd
This method performs a conservative AND of TriBool results It is meant to be used when collapsing the results of testing a single predicate against candidates of a UnionType Therefore, this variation will return UNKNOWN whenever one of the operands is UNKNOWN -
logicalAnd
This method performs a logical AND of TriBool results It is meant to be used when performing the logical combination of ANDed predicates against a given type Therefore, this variation behaves like a standard logical "AND" and will return FALSE whenever one of the operands is FALSE -
or
-
isTrue
public boolean isTrue() -
isFalse
public boolean isFalse() -
isUnknown
public boolean isUnknown()
-