Enum FlowValue
- All Implemented Interfaces:
Serializable, Comparable<FlowValue>, java.lang.constant.Constable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanbackwardsValueConflictsWithSource(FlowValue backwardsFlowValue, SourceSinkInfo source, TypeQualifierValue typeQualifierValue, boolean isIdentity) Determine whether given backwards FlowValue conflicts with given source.static FlowValueflowValueFromWhen(javax.annotation.meta.When when) Convert a When value to a FlowValue value.booleanisNo()booleanbooleanisYes()static final FlowValuestatic FlowValueReturns the enum constant of this type with the specified name.static FlowValue[]values()Returns an array containing the constants of this enum type, in the order they are declared.static booleanvaluesConflict(boolean strictChecking, FlowValue forward, FlowValue backward) Determine whether given flow values conflict.
-
Enum Constant Details
-
TOP
-
ALWAYS
-
NEVER
-
UNKNOWN
-
-
Field Details
-
bits
private final int bits -
mergeMatrix
-
-
Constructor Details
-
FlowValue
private FlowValue(int bits)
-
-
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
-
isYes
public boolean isYes() -
isUncertain
public boolean isUncertain() -
isNo
public boolean isNo() -
meet
-
valuesConflict
-
flowValueFromWhen
Convert a When value to a FlowValue value.- Parameters:
when- a When value- Returns:
- the corresponding FlowValue
-
backwardsValueConflictsWithSource
public static boolean backwardsValueConflictsWithSource(FlowValue backwardsFlowValue, SourceSinkInfo source, TypeQualifierValue typeQualifierValue, boolean isIdentity) Determine whether given backwards FlowValue conflicts with given source.- Parameters:
backwardsFlowValue- a backwards FlowValuesource- SourceSinkInfo object representing a source reached by the backwards flow valuetypeQualifierValue- TypeQualifierValue being checkedisIdentity- TODO- Returns:
- true if backwards value conflicts with source, false if not
-