public class DefaultFlowState extends @NonNull Object implements FlowState
| Modifier and Type | Field and Description |
|---|---|
GenKillBits<@Nullable AnnotationMirror> |
annos
Tracks the annotated state of each variable during flow.
|
protected Set<@Nullable AnnotationMirror> |
annotations
The annotations (qualifiers) to infer.
|
List<VariableElement> |
vars
Maps variables to a bit index.
|
| Constructor and Description |
|---|
DefaultFlowState(Set<@Nullable AnnotationMirror> annotations)
Create a new default flow state.
|
| Modifier and Type | Method and Description |
|---|---|
void |
and(FlowState other,
QualifierHierarchy annoRelations)
"And" the current state with an other state, modifying only the current state.
|
DefaultFlowState |
copy()
Deeply copy the state of the current flow state.
|
DefaultFlowState |
createFlowState(Set<@Nullable AnnotationMirror> annotations)
Create a new instance of the current flow state class.
|
Set<@Nullable AnnotationMirror> |
getAnnotations()
The current set of annotations that can be inferred.
|
void |
or(FlowState other,
QualifierHierarchy annoRelations)
"Or" the current state with an other state, modifying only the current state.
|
@ReadOnly String |
toString() |
protected final Set<@Nullable AnnotationMirror> annotations
public List<VariableElement> vars
annospublic GenKillBits<@Nullable AnnotationMirror> annos
vars.public DefaultFlowState(Set<@Nullable AnnotationMirror> annotations)
annotations - The annotations that can be inferred.public DefaultFlowState createFlowState(Set<@Nullable AnnotationMirror> annotations)
FlowStateFlowState.copy() to create a new instance of the correct type.createFlowState in interface FlowStateannotations - The annotations that can be inferred.public Set<@Nullable AnnotationMirror> getAnnotations()
FlowStategetAnnotations in interface FlowStatepublic DefaultFlowState copy()
FlowStatepublic void or(FlowState other, QualifierHierarchy annoRelations)
FlowStatepublic void and(FlowState other, QualifierHierarchy annoRelations)
FlowState