Robot Framework
robot.running.model.If Class Reference
Inheritance diagram for robot.running.model.If:
robot.model.control.If robot.model.body.BodyItem robot.model.modelobject.ModelObject metaclass

Public Member Functions

def __init__ (self, parent=None, lineno=None, error=None)
 
def run (self, context, run=True, templated=False)
 
- Public Member Functions inherited from robot.model.control.If
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

 error
 
 lineno
 
- Public Attributes inherited from robot.model.control.If
 body
 
 parent
 

Static Public Attributes

 branch_class = IfBranch
 
- Static Public Attributes inherited from robot.model.control.If
 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

 source = property
 
- Properties inherited from robot.model.control.If
 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 source (self)
 

Static Private Attributes

list __slots__ = ['lineno', 'error']
 

Detailed Description

Definition at line 138 of file model.py.

Constructor & Destructor Documentation

◆ __init__()

def robot.running.model.If.__init__ (   self,
  parent = None,
  lineno = None,
  error = None 
)

Definition at line 142 of file model.py.

Member Function Documentation

◆ run()

def robot.running.model.If.run (   self,
  context,
  run = True,
  templated = False 
)

Definition at line 153 of file model.py.

◆ source()

def robot.running.model.If.source (   self)
private

Definition at line 150 of file model.py.

Member Data Documentation

◆ __slots__

list robot.running.model.If.__slots__ = ['lineno', 'error']
staticprivate

Definition at line 139 of file model.py.

◆ branch_class

robot.running.model.If.branch_class = IfBranch
static

Definition at line 140 of file model.py.

◆ error

robot.running.model.If.error

Definition at line 145 of file model.py.

◆ lineno

robot.running.model.If.lineno

Definition at line 144 of file model.py.

Property Documentation

◆ source

robot.running.model.If.source = property
static

Definition at line 148 of file model.py.


The documentation for this class was generated from the following file: