Home
 

class IfStmtCls

class IfStmtCls: public StatementCls

If statement

Inheritance:


Public Methods

[more] IfStmtCls(PPTreeNodeCls condition, PPTreeNodeCls statements, PPTreeNodeCls elseStmts)
Constructor
[more]int emit()
SLICK Emitter



Inherited from StatementCls:

Protected Fields

ochar* stmt_text



Documentation

If statement.   Statement: if <Condition> then <StatementSeq> <ElseBlock> end if
  
oIfStmtCls(PPTreeNodeCls condition, PPTreeNodeCls statements, PPTreeNodeCls elseStmts)
Constructor.
Parameters:
condition - Condition for if statement
statements - Statements for true condition
elseStmts - Statements for false condition

oint 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++