public static enum StandardMethodContract.ValueConstraint extends java.lang.Enum<StandardMethodContract.ValueConstraint>
Enum Constant and Description |
---|
ANY_VALUE |
FALSE_VALUE |
NOT_NULL_VALUE |
NULL_VALUE |
TRUE_VALUE |
Modifier and Type | Method and Description |
---|---|
ContractReturnValue |
asReturnValue() |
boolean |
canBeNegated() |
ContractValue |
getCondition(int argumentIndex)
Returns a condition value which should be applied to memory state to satisfy this constraint
|
StandardMethodContract.ValueConstraint |
negate() |
java.lang.String |
toString() |
static StandardMethodContract.ValueConstraint |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StandardMethodContract.ValueConstraint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardMethodContract.ValueConstraint ANY_VALUE
public static final StandardMethodContract.ValueConstraint NULL_VALUE
public static final StandardMethodContract.ValueConstraint NOT_NULL_VALUE
public static final StandardMethodContract.ValueConstraint TRUE_VALUE
public static final StandardMethodContract.ValueConstraint FALSE_VALUE
public static StandardMethodContract.ValueConstraint[] values()
for (StandardMethodContract.ValueConstraint c : StandardMethodContract.ValueConstraint.values()) System.out.println(c);
public static StandardMethodContract.ValueConstraint valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic ContractReturnValue asReturnValue()
public ContractValue getCondition(int argumentIndex)
argumentIndex
- argument number to testpublic boolean canBeNegated()
negate()
public StandardMethodContract.ValueConstraint negate()
java.lang.IllegalStateException
- if constraint cannot be negatedcanBeNegated()
public java.lang.String toString()
toString
in class java.lang.Enum<StandardMethodContract.ValueConstraint>