public enum BooleanConstraint extends Enum<BooleanConstraint> implements Constraint
Modifier and Type | Method and Description |
---|---|
Constraint |
copyOver(RelationalSymbolicValue.Kind kind)
Return constraint which should be applied to the rhs of the relation,
if this constraint is set on the lhs of the relation.
|
boolean |
hasPreciseValue() |
BooleanConstraint |
inverse() |
boolean |
isFalse() |
boolean |
isTrue() |
boolean |
isValidWith(Constraint constraint) |
String |
valueAsString() |
static BooleanConstraint |
valueOf(String name)
Returns 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.
|
public static final BooleanConstraint TRUE
public static final BooleanConstraint FALSE
public static BooleanConstraint[] values()
for (BooleanConstraint c : BooleanConstraint.values()) System.out.println(c);
public static BooleanConstraint valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isTrue()
public boolean isFalse()
public boolean hasPreciseValue()
hasPreciseValue
in interface Constraint
public String valueAsString()
valueAsString
in interface Constraint
@Nullable public Constraint copyOver(RelationalSymbolicValue.Kind kind)
Constraint
copyOver
in interface Constraint
kind
- kind of relation over which constraint is copiedpublic boolean isValidWith(@Nullable Constraint constraint)
isValidWith
in interface Constraint
public BooleanConstraint inverse()
inverse
in interface Constraint
Copyright © 2012–2017 SonarSource. All rights reserved.