Class LessThanNode

All Implemented Interfaces:
org.plumelib.util.UniqueId

public class LessThanNode extends BinaryOperationNode
A node for the less than comparison:
   expression < expression
 
We allow less than nodes without corresponding AST Trees.
  • Constructor Details Link icon

    • LessThanNode Link icon

      public LessThanNode(BinaryTree tree, Node left, Node right)
      Constructs a LessThanNode.
      Parameters:
      tree - the binary tree
      left - the left operand
      right - the right operand
  • Method Details Link icon

    • accept Link icon

      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 Link icon

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object