Class BlockStatement

All Implemented Interfaces:
NodeMetaDataHandler

public class BlockStatement extends Statement
A list of statements and a scope.
  • Constructor Details

    • BlockStatement

      public BlockStatement()
    • BlockStatement

      public BlockStatement(List<Statement> statements, VariableScope scope)
      Creates a BlockStatement with a scope and children statements.
      Parameters:
      statements - the statements. Do not pass null. If you do, no exception will occur, but a NullPointerException will eventually occur later. Also, a reference to the list is kept, so modifying the List later does effect this class.
      scope - the scope
    • BlockStatement

      public BlockStatement(Statement[] statements, VariableScope scope)
      Creates a BlockStatement with a scope and children statements.
      Parameters:
      statements - the statements, which cannot be null or an exception occurs. No reference to the array is held, so modifying the array later has no effect on this class.
      scope - the scope
  • Method Details