Class BusyExprValue


  • public class BusyExprValue
    extends java.lang.Object
    BusyExprValue class contains a BinaryOperationNode. So we only consider expressions that are in form of BinaryOperationNode: lefOperandNode operator rightOperandNode. We override .equals in this class to compare nodes by value equality rather than reference equality. We want two different nodes with the same value (that is, two nodes refer to the same busy expression in the program) to be regarded as the same.
    • Constructor Detail

      • BusyExprValue

        public BusyExprValue​(BinaryOperationNode n)
        Create a new busy expression.
        Parameters:
        n - a node
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(@Nullable java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object