Class JStmtIf


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

      • conditional

        public JExpr conditional
      • statement

        public JStmt statement
      • elseStmt

        public JStmt elseStmt
    • Constructor Detail

      • JStmtIf

        public JStmtIf()
    • Method Detail

      • 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