Class NumericalPlusNode

  • All Implemented Interfaces:
    org.plumelib.util.UniqueId

    public class NumericalPlusNode
    extends UnaryOperationNode
    A node for the unary plus operation:
       + expression
     
    • Constructor Detail

      • NumericalPlusNode

        public NumericalPlusNode​(com.sun.source.tree.UnaryTree tree,
                                 Node operand)
        Constructs a NumericalPlusNode.
        Parameters:
        tree - the tree of the whole operation
        operand - the operand of the operation
    • Method Detail

      • 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

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

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