Class EqualToNode

All Implemented Interfaces:
org.plumelib.util.UniqueId

public class EqualToNode extends BinaryOperationNode
A node for an equality check:
   expression == expression
 
  • Constructor Details

    • EqualToNode

      public EqualToNode(BinaryTree tree, Node left, Node right)
      Create a new EqualToNode object.
      Parameters:
      tree - the tree for this node
      left - the first argument
      right - the second argument
  • Method Details

    • accept

      public <R, P> R accept(NodeVisitor<R,P> visitor, P p)
      Description copied from class: Node
      Accept method of the visitor pattern.
      Specified by:
      accept in class Node
      Type Parameters:
      R - result type of the operation
      P - parameter type
      Parameters:
      visitor - the visitor to be applied to this node
      p - the parameter for this operation
    • toString

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

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object