Class BooleanVariable
- All Implemented Interfaces:
IVariable<BooleanVariable>, INodeWithNumber
A boolean variable for dataflow analysis.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyState(BooleanVariable other) Set this variable to have the same state as another onebooleangetValue()voidor(BooleanVariable other) booleansameValue(BooleanVariable other) voidset(boolean b) toString()Methods inherited from class AbstractVariable
equals, getOrderNumber, hashCode, nextHash, setOrderNumberMethods inherited from class NodeWithNumber
getGraphNodeId, setGraphNodeIdMethods inherited from interface INodeWithNumber
getGraphNodeId, setGraphNodeId
-
Constructor Details
-
BooleanVariable
public BooleanVariable() -
BooleanVariable
public BooleanVariable(boolean b) - Parameters:
b- initial value for this variable
-
-
Method Details
-
copyState
Description copied from interface:IVariableSet this variable to have the same state as another one -
sameValue
-
toString
-
getValue
public boolean getValue()- Returns:
- the value of this variable
-
or
- Throws:
IllegalArgumentException- if other is null
-
set
public void set(boolean b)
-