class IfStmtCls
class IfStmtCls: public StatementCls
If statement
Inheritance:
-
-
Public Methods
- IfStmtCls(PPTreeNodeCls condition, PPTreeNodeCls statements, PPTreeNodeCls elseStmts)
- Constructor
- int emit()
- SLICK Emitter
-
Inherited from StatementCls:
-
-
Protected Fields
- char* stmt_text
-
Documentation
If statement. Statement: if <Condition> then <StatementSeq> <ElseBlock> end if
- IfStmtCls(PPTreeNodeCls condition, PPTreeNodeCls statements, PPTreeNodeCls elseStmts)
- Constructor.
- Parameters:
-
condition - Condition for if statement
statements - Statements for true condition
elseStmts - Statements for false condition
- int emit()
- SLICK Emitter.
Emit the condition and test it. Then ouput the statements and the else block and close with endif.
- Returns:
- 0
- This class has no child classes.
- See Also:
-
ElseStmtCls
Alphabetic index HTML hierarchy of classes or Java
DOC++