IF/ELSE structure root. More...
Public Member Functions | |
| def | __init__ (self, parent=None) |
| def | body (self, branches) |
| def | visit (self, visitor) |
Public Member Functions inherited from robot.model.modelobject.ModelObject | |
| def | __repr__ (self) |
| def | config (self, **attributes) |
| Configure model object with given attributes. More... | |
| def | copy (self, **attributes) |
| Return shallow copy of this object. More... | |
| def | deepcopy (self, **attributes) |
| Return deep copy of this object. More... | |
Public Attributes | |
| body | |
| parent | |
Static Public Attributes | |
| branch_class = IfBranch | |
| branches_class = Branches | |
| type = BodyItem.IF_ELSE_ROOT | |
Static Public Attributes inherited from robot.model.body.BodyItem | |
| string | BREAK = 'BREAK' |
| string | CONTINUE = 'CONTINUE' |
| string | ELSE = 'ELSE' |
| string | ELSE_IF = 'ELSE IF' |
| string | EXCEPT = 'EXCEPT' |
| string | FINALLY = 'FINALLY' |
| string | FOR = 'FOR' |
| string | IF = 'IF' |
| string | IF_ELSE_ROOT = 'IF/ELSE ROOT' |
| string | ITERATION = 'ITERATION' |
| string | KEYWORD = 'KEYWORD' |
| string | MESSAGE = 'MESSAGE' |
| string | RETURN = 'RETURN' |
| string | SETUP = 'SETUP' |
| string | TEARDOWN = 'TEARDOWN' |
| string | TRY = 'TRY' |
| string | TRY_EXCEPT_ROOT = 'TRY/EXCEPT ROOT' |
| type = None | |
| string | WHILE = 'WHILE' |
Static Public Attributes inherited from robot.model.modelobject.ModelObject | |
| tuple | repr_args = () |
Properties | |
| id = property | |
Root IF/ELSE id is always None. More... | |
Properties inherited from robot.model.body.BodyItem | |
| has_setup = property | |
| has_teardown = property | |
| id = property | |
Item id in format like s1-t3-k1. More... | |
Private Member Functions | |
| def | id (self) |
Static Private Attributes | |
| list | __slots__ = ['parent'] |
IF/ELSE structure root.
Branches are stored in :attr:body.
Definition at line 124 of file control.py.
| def robot.model.control.If.__init__ | ( | self, | |
parent = None |
|||
| ) |
Definition at line 130 of file control.py.
| def robot.model.control.If.body | ( | self, | |
| branches | |||
| ) |
Definition at line 135 of file control.py.
|
private |
Reimplemented from robot.model.body.BodyItem.
Definition at line 142 of file control.py.
| def robot.model.control.If.visit | ( | self, | |
| visitor | |||
| ) |
Definition at line 145 of file control.py.
|
staticprivate |
Definition at line 128 of file control.py.
| robot.model.control.If.body |
Definition at line 132 of file control.py.
|
static |
Definition at line 126 of file control.py.
|
static |
Definition at line 127 of file control.py.
| robot.model.control.If.parent |
Definition at line 131 of file control.py.
|
static |
Definition at line 125 of file control.py.
|
static |
Root IF/ELSE id is always None.
Definition at line 140 of file control.py.