Class WhileStatement

    • Constructor Detail

      • WhileStatement

        public WhileStatement()
    • Method Detail

      • setExpression

        public void setExpression​(Expression expression)
        Parameters:
        expression - The conditional expression.
      • getStatement

        public Statement getStatement()
        Specified by:
        getStatement in interface ILoopStatement
        Returns:
        The statement to execute while the conditional expression evaluates to true.
      • setStatement

        public void setStatement​(Statement statement)
        Parameters:
        statement - The statement to execute while the conditional expression evaluates to true.
      • toString

        public java.lang.String toString()
        Description copied from class: Statement
        Subclasses should return a String representing the parsed statement.
        Specified by:
        toString in class Statement