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

Public Member Functions

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

 body
 
 parent
 
 pattern_type
 
 patterns
 
 type
 
 variable
 

Static Public Attributes

 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

 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 id (self)
 

Static Private Attributes

list __slots__ = ['type', 'patterns', 'pattern_type', 'variable']
 

Detailed Description

Definition at line 149 of file control.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 154 of file control.py.

Member Function Documentation

◆ __repr__()

def robot.model.control.TryBranch.__repr__ (   self)

Reimplemented from robot.model.modelobject.ModelObject.

Definition at line 190 of file control.py.

◆ __str__()

def robot.model.control.TryBranch.__str__ (   self)

Definition at line 180 of file control.py.

◆ body()

def robot.model.control.TryBranch.body (   self,
  body 
)

Definition at line 166 of file control.py.

◆ id()

def robot.model.control.TryBranch.id (   self)
private

Reimplemented from robot.model.body.BodyItem.

Definition at line 173 of file control.py.

◆ visit()

def robot.model.control.TryBranch.visit (   self,
  visitor 
)

Definition at line 194 of file control.py.

Member Data Documentation

◆ __slots__

list robot.model.control.TryBranch.__slots__ = ['type', 'patterns', 'pattern_type', 'variable']
staticprivate

Definition at line 152 of file control.py.

◆ body

robot.model.control.TryBranch.body

Definition at line 163 of file control.py.

◆ body_class

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

Definition at line 150 of file control.py.

◆ parent

robot.model.control.TryBranch.parent

Definition at line 162 of file control.py.

◆ pattern_type

robot.model.control.TryBranch.pattern_type

Definition at line 160 of file control.py.

◆ patterns

robot.model.control.TryBranch.patterns

Definition at line 159 of file control.py.

◆ repr_args

tuple robot.model.control.TryBranch.repr_args = ('type', 'patterns', 'pattern_type', 'variable')
static

Definition at line 151 of file control.py.

◆ type

robot.model.control.TryBranch.type

Definition at line 158 of file control.py.

◆ variable

robot.model.control.TryBranch.variable

Definition at line 161 of file control.py.

Property Documentation

◆ id

robot.model.control.TryBranch.id = property
static

Branch id omits TRY/EXCEPT root from the parent id part.

Definition at line 171 of file control.py.


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