from Interface_mod import Statement
from Interface_mod import NullException


class StatementList:

    def __init__(self):
        self.statements = []

    def add(self, statement):
        if statement is None:
            raise NullException('null statement argument at ' + self.__name__)
        if not isinstance(statement, Statement):
            raise TypeError('invalid type for statement argument at ' +
                self.__name__)
        self.statements.append(statement)

    def execute(self):
        for statement in self.statements:
            statement.execute()

9835d62322ae1a559ba203b7cc878ca5046c61b2
<mask token>


class StatementList:

    def __init__(self):
        self.statements = []
    <mask token>
    <mask token>

<mask token>


class StatementList:

    def __init__(self):
        self.statements = []
    <mask token>

    def execute(self):
        for statement in self.statements:
            statement.execute()

<mask token>


class StatementList:

    def __init__(self):
        self.statements = []

    def add(self, statement):
        if statement is None:
            raise NullException('null statement argument at ' + self.__name__)
        if not isinstance(statement, Statement):
            raise TypeError('invalid type for statement argument at ' +
                self.__name__)
        self.statements.append(statement)

    def execute(self):
        for statement in self.statements:
            statement.execute()

from Interface_mod import Statement
from Interface_mod import NullException


class StatementList:

    def __init__(self):
        self.statements = []

    def add(self, statement):
        if statement is None:
            raise NullException('null statement argument at ' + self.__name__)
        if not isinstance(statement, Statement):
            raise TypeError('invalid type for statement argument at ' +
                self.__name__)
        self.statements.append(statement)

    def execute(self):
        for statement in self.statements:
            statement.execute()
