Package cdc.enums
Interface SynthesisMask<M extends SynthesisMask<M,V>,V>
- Type Parameters:
M- The synthesis mask type.V- the value type.
- All Known Implementing Classes:
AbstractSynthesisMask,EnumSynthesisMask,NullableEnumSynthesisMask
public interface SynthesisMask<M extends SynthesisMask<M,V>,V>
Interface describing a synthesis mask.
It is a map from values to SynthesisStatus.
- Author:
- Damien Carbonne
-
Method Summary
Modifier and TypeMethodDescriptionReturns the status associated to a value.getType()default booleanisLooselySet(V value) booleanset(V value, SynthesisStatus status) Sets the status of a value.setAll(SynthesisStatus status) Sets the status of all values.toString(Function<SynthesisStatus, String> statusToString, String separator)
-
Method Details
-
getSupport
SynthesisMaskSupport<M,V> getSupport()- Returns:
- The associated support.
-
getType
- Returns:
- The associated type.
-
isNullable
boolean isNullable()- Returns:
trueifnullis a valid mask value that can be characterized.
-
set
Sets the status of a value.- Parameters:
value- The value.status- The status.- Returns:
- The corresponding mask.
-
setAll
Sets the status of all values.- Parameters:
status- The status.- Returns:
- The corresponding mask.
-
get
Returns the status associated to a value.- Parameters:
value- The value.- Returns:
- The status of
value.
-
isLooselySet
-
merge
-
merge
-
toString
-