Class JStmtBlock


  • public class JStmtBlock
    extends JStmt
    A Java statement for a block of statements.
    • Field Detail

      • statements

        public java.util.List<JStmt> statements
    • Constructor Detail

      • JStmtBlock

        public JStmtBlock()
    • Method Detail

      • getStatements

        public java.util.List<JStmt> getStatements()
        Returns the list of statements.
      • isBlock

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

        public void addStatement​(JStmt aStmt,
                                 int anIndex)
        Adds a statement.
      • removeStatement

        public JStmt removeStatement​(int anIndex)
        Removes a statement.
      • removeStatement

        public int removeStatement​(JStmt aStmt)
        Removes a statement.