Class JStmtWhile


public class JStmtWhile extends JStmt
A Java statement for WhileStatement.
  • Field Details

    • conditional

      public JExpr conditional
    • statement

      public JStmt statement
  • Constructor Details

    • JStmtWhile

      public JStmtWhile()
  • Method Details

    • getConditional

      public JExpr getConditional()
      Returns the conditional.
    • setConditional

      public void setConditional(JExpr aCond)
      Sets the conditional.
    • getStatement

      public JStmt getStatement()
      Returns the statement.
    • setStatement

      public void setStatement(JStmt aStmt)
      Sets the statement.
    • isBlock

      public boolean isBlock()
      Returns whether statement has a block associated with it.
      Overrides:
      isBlock in class JNode
    • getBlock

      public JStmtBlock getBlock()
      Returns the statement block.
      Overrides:
      getBlock in class JNode