Class JStmtFor


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

  • Constructor Details

    • JStmtFor

      public JStmtFor()
  • Method Details

    • getInitDecl

      public JStmtVariableDecl getInitDecl()
      Returns the init declaration.
    • getConditional

      public JExpr getConditional()
      Returns the conditional.
    • getUpdateStmts

      public List<JStmtExpr> getUpdateStmts()
      Returns the update statements.
    • getInitStmts

      public List<JStmtExpr> getInitStmts()
      Returns the init statements.
    • 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
    • getVariableDeclInside

      public JVariableDecl getVariableDeclInside(String aName)
      Returns a variable with given name.
      Overrides:
      getVariableDeclInside in class JNode