Class BinaryOperationNode

    • Field Detail

      • tree

        protected final com.sun.source.tree.BinaryTree tree
      • left

        protected final Node left
      • right

        protected final Node right
    • Constructor Detail

      • BinaryOperationNode

        protected BinaryOperationNode​(com.sun.source.tree.BinaryTree tree,
                                      Node left,
                                      Node right)
    • Method Detail

      • getLeftOperand

        public Node getLeftOperand()
      • getRightOperand

        public Node getRightOperand()
      • getTree

        public com.sun.source.tree.BinaryTree getTree()
        Description copied from class: Node
        Returns the Tree in the abstract syntax tree, or null if no corresponding tree exists. For instance, this is the case for an ImplicitThisNode.
        Specified by:
        getTree in class Node
        Returns:
        the corresponding Tree or null
      • getOperands

        @SideEffectFree
        public java.util.Collection<Node> getOperands()
        Description copied from class: Node
        Returns a collection containing all of the operand Nodes of this Node.
        Specified by:
        getOperands in class Node
        Returns:
        a collection containing all of the operand Nodes of this Node