Class JStmtIf


public class JStmtIf extends JStmt
A JStatement for if() statements.
  • Field Details

    • conditional

      public JExpr conditional
    • statement

      public JStmt statement
    • elseStmt

      public JStmt elseStmt
  • Constructor Details

    • JStmtIf

      public JStmtIf()
  • Method Details

    • getConditional

      public JExpr getConditional()
      Returns the conditional.
    • 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