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

Public Member Functions

def __init__ (self, type=BodyItem.TRY, patterns=(), pattern_type=None, variable=None, parent=None, lineno=None)
 
- Public Member Functions inherited from robot.model.control.TryBranch
def __init__ (self, type=BodyItem.TRY, patterns=(), pattern_type=None, variable=None, parent=None)
 
def __repr__ (self)
 
def __str__ (self)
 
def body (self, body)
 
def visit (self, visitor)
 
- Public Member Functions inherited from robot.model.modelobject.ModelObject
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

 lineno
 
- Public Attributes inherited from robot.model.control.TryBranch
 body
 
 parent
 
 pattern_type
 
 patterns
 
 type
 
 variable
 

Static Public Attributes

 body_class = Body
 
- Static Public Attributes inherited from robot.model.control.TryBranch
 body_class = Body
 
tuple repr_args = ('type', 'patterns', 'pattern_type', 'variable')
 
- 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.TryBranch
 id = property
 Branch id omits TRY/EXCEPT root from the parent id part. 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']
 

Detailed Description

Definition at line 157 of file model.py.

Constructor & Destructor Documentation

◆ __init__()

def robot.running.model.TryBranch.__init__ (   self,
  type = BodyItem.TRY,
  patterns = (),
  pattern_type = None,
  variable = None,
  parent = None,
  lineno = None 
)

Definition at line 161 of file model.py.

Member Function Documentation

◆ source()

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

Definition at line 169 of file model.py.

Member Data Documentation

◆ __slots__

list robot.running.model.TryBranch.__slots__ = ['lineno']
staticprivate

Definition at line 158 of file model.py.

◆ body_class

robot.running.model.TryBranch.body_class = Body
static

Definition at line 159 of file model.py.

◆ lineno

robot.running.model.TryBranch.lineno

Definition at line 164 of file model.py.

Property Documentation

◆ source

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

Definition at line 167 of file model.py.


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