Class IfNode

  • All Implemented Interfaces:
    Node

    public class IfNode
    extends StructureNode
    A node representing an if statement.
    Author:
    rich
    • Constructor Detail

      • IfNode

        public IfNode​(Node condition,
                      Node trueNode,
                      Node falseNode)
        Constructor
        Parameters:
        condition - expression giving the condition
        trueNode - expression evaluated if true
        falseNode - expression evaluated if false, may be null.
    • Method Detail

      • getCondition

        public Node getCondition()
      • getFalseNode

        public Node getFalseNode()
      • getTrueNode

        public Node getTrueNode()
      • toString

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