Inheritance diagram for CCM::Block:

Public Member Functions | |
| Block (Block parent) | |
| Create empty block as a subblock of parent (null for toplevel blocks). | |
| Block | getParent () |
| Return the block's parent (null for toplevel blocks). | |
| void | addStm (Statement s) |
| Add the given statement to the end of the block. | |
| void | addStm (IList sl) |
| Add given list of Statements to the end of the block. | |
| override void | execute () |
| Execute statement. | |
| void | addVar (Variable v) |
| Add given local variable to the block. | |
| Variable | getVar (string name) |
| Return the local variable with given name. | |
Static Public Member Functions | |
| Block | getCurrentBlock () |
| Return the block that is currently executed. | |
Static Public Attributes | |
| bool | breakFlag = false |
| If true, the current loop must be break'ed. | |
| bool | continueFlag = false |
| If true, the current loop must be continue'd. | |
Private Attributes | |
| Hashtable | vars |
| Local variables (string -> Variable). | |
| IList | stm |
| Contained Statements. | |
| Block | parent |
| Parent block (null for toplevel blocks). | |
Static Private Attributes | |
| Block | currentBlock = null |
| Global pointer to get the current variable scope; handled by execute(). | |
|
|
Create empty block as a subblock of parent (null for toplevel blocks).
|
|
|
Add given list of Statements to the end of the block.
|
|
|
Add the given statement to the end of the block.
|
|
|
Add given local variable to the block.
|
|
|
Execute statement.
Implements CCM::Statement. |
|
|
Return the block that is currently executed.
|
|
|
Return the block's parent (null for toplevel blocks).
|
|
|
Return the local variable with given name. Also looks for variables in parent blocks. |
|
|
If true, the current loop must be break'ed.
|
|
|
If true, the current loop must be continue'd.
|
|
|
Global pointer to get the current variable scope; handled by execute().
|
|
|
Parent block (null for toplevel blocks).
|
|
|
Contained Statements.
|
|
|
Local variables (string -> Variable).
|
1.3.7