public enum Constraint extends Enum<Constraint>
SymbolicValue in a given ProgramState.
Possible constraints are NULL, UNDEFINED, TRUTHY, FALSY and any possible combination of them.| Enum Constant and Description |
|---|
ANY_VALUE |
FALSY |
FALSY_NOT_NULL |
FALSY_NOT_NULLY |
FALSY_NOT_UNDEFINED |
NO_POSSIBLE_VALUE |
NOT_NULL |
NOT_NULLY |
NOT_UNDEFINED |
NULL |
NULL_OR_UNDEFINED |
TRUTHY |
TRUTHY_OR_NULL |
TRUTHY_OR_NULLY |
TRUTHY_OR_UNDEFINED |
UNDEFINED |
| Modifier and Type | Method and Description |
|---|---|
Constraint |
and(Constraint other) |
boolean |
isIncompatibleWith(Constraint other) |
boolean |
isStricterOrEqualTo(Constraint other) |
Constraint |
not() |
Nullability |
nullability() |
Truthiness |
truthiness() |
static Constraint |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Constraint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Constraint NO_POSSIBLE_VALUE
public static final Constraint NULL
public static final Constraint UNDEFINED
public static final Constraint NULL_OR_UNDEFINED
public static final Constraint FALSY_NOT_NULLY
public static final Constraint FALSY_NOT_UNDEFINED
public static final Constraint FALSY_NOT_NULL
public static final Constraint FALSY
public static final Constraint TRUTHY
public static final Constraint TRUTHY_OR_NULL
public static final Constraint TRUTHY_OR_UNDEFINED
public static final Constraint TRUTHY_OR_NULLY
public static final Constraint NOT_NULLY
public static final Constraint NOT_UNDEFINED
public static final Constraint NOT_NULL
public static final Constraint ANY_VALUE
public static Constraint[] values()
for (Constraint c : Constraint.values()) System.out.println(c);
public static Constraint 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 Constraint and(Constraint other)
public Constraint not()
public Truthiness truthiness()
public Nullability nullability()
public boolean isStricterOrEqualTo(Constraint other)
public boolean isIncompatibleWith(Constraint other)
Copyright © 2011–2016 SonarSource and Eriks Nukis. All rights reserved.