Class VerilogIfStatement

    • Constructor Detail

      • VerilogIfStatement

        public VerilogIfStatement​(VerilogNode parent)
        Creates an if-then-else statement.
        Parameters:
        parent - the parent node.
      • VerilogIfStatement

        public VerilogIfStatement​(VerilogIfStatement other,
                                  VerilogNode parent)
        Creates a copy of the if-then-else statement.
        Parameters:
        other - the if-then-else statement to be copied.
        parent - the parent node.
    • Method Detail

      • getExpression

        public VerilogExpression getExpression()
        Returns the condition.
        Returns:
        the condition.
      • setExpression

        public void setExpression​(VerilogExpression expression)
        Sets the condition.
        Parameters:
        expression - the condition.
      • getThenStatement

        public VerilogStatement getThenStatement()
        Returns the statement related to the branch then.
        Returns:
        the then's statement.
      • setThenStatement

        public void setThenStatement​(VerilogStatement thenStatement)
        Sets the statement related to the branch then.
        Parameters:
        thenStatement - the statement to be set.
      • getElseStatement

        public VerilogStatement getElseStatement()
        Returns the statement related to the branch else.
        Returns:
        the else's statement.
      • setElseStatement

        public void setElseStatement​(VerilogStatement elseStatement)
        Sets the statement related to the branch else.
        Parameters:
        elseStatement - the statement to be set.