Class BooleanVariable

All Implemented Interfaces:
IVariable<BooleanVariable>, INodeWithNumber

public class BooleanVariable extends AbstractVariable<BooleanVariable>
A boolean variable for dataflow analysis.
  • Constructor Details

    • BooleanVariable

      public BooleanVariable()
    • BooleanVariable

      public BooleanVariable(boolean b)
      Parameters:
      b - initial value for this variable
  • Method Details

    • copyState

      public void copyState(BooleanVariable other)
      Description copied from interface: IVariable
      Set this variable to have the same state as another one
    • sameValue

      public boolean sameValue(BooleanVariable other)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getValue

      public boolean getValue()
      Returns:
      the value of this variable
    • or

      public void or(BooleanVariable other)
      Throws:
      IllegalArgumentException - if other is null
    • set

      public void set(boolean b)