Package com.ibm.wala.fixpoint
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 onebooleanbooleangetValue()voidor(BooleanVariable other) booleansameValue(BooleanVariable other) voidset(boolean b) toString()Methods inherited from class com.ibm.wala.fixpoint.AbstractVariable
getOrderNumber, hashCode, nextHash, setOrderNumberMethods inherited from class com.ibm.wala.util.graph.impl.NodeWithNumber
getGraphNodeId, setGraphNodeIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.ibm.wala.util.graph.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) -
equals
- Overrides:
equalsin classAbstractVariable<BooleanVariable>
-