Class JStmtBlock


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

  • Constructor Details

    • JStmtBlock

      public JStmtBlock()
  • Method Details

    • getStatements

      public 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
    • getBlock

      public JStmtBlock getBlock()
      Returns the statement block.
      Overrides:
      getBlock 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.
    • getVariableDeclInside

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

      public List<JVariableDecl> getVariableDecls(String aPrefix, List<JVariableDecl> theVariables)
      Returns a variable with given name.
      Overrides:
      getVariableDecls in class JNode