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

Public Member Functions

def __init__ (self, variables=(), flavor='IN', values=(), parent=None)
 
def __str__ (self)
 
def body (self, body)
 
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
 
 flavor
 
 parent
 
 values
 
 variables
 

Static Public Attributes

 body_class = Body
 
tuple repr_args = ('variables', 'flavor', 'values')
 
 type = BodyItem.FOR
 
- 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

 keywords = property
 Deprecated since Robot Framework 4.0. 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 keywords (self)
 
def keywords (self, keywords)
 

Static Private Attributes

list __slots__ = ['variables', 'flavor', 'values']
 

Detailed Description

Definition at line 23 of file control.py.

Constructor & Destructor Documentation

◆ __init__()

def robot.model.control.For.__init__ (   self,
  variables = (),
  flavor = 'IN',
  values = (),
  parent = None 
)

Definition at line 29 of file control.py.

Member Function Documentation

◆ __str__()

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

Definition at line 55 of file control.py.

◆ body()

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

Reimplemented in robot.result.model.For.

Definition at line 37 of file control.py.

◆ keywords() [1/2]

def robot.model.control.For.keywords (   self)
private

Definition at line 44 of file control.py.

◆ keywords() [2/2]

def robot.model.control.For.keywords (   self,
  keywords 
)
private

Definition at line 49 of file control.py.

◆ visit()

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

Definition at line 52 of file control.py.

Member Data Documentation

◆ __slots__

list robot.model.control.For.__slots__ = ['variables', 'flavor', 'values']
staticprivate

Definition at line 27 of file control.py.

◆ body

robot.model.control.For.body

Definition at line 34 of file control.py.

◆ body_class

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

Definition at line 25 of file control.py.

◆ flavor

robot.model.control.For.flavor

Definition at line 31 of file control.py.

◆ parent

robot.model.control.For.parent

Definition at line 33 of file control.py.

◆ repr_args

tuple robot.model.control.For.repr_args = ('variables', 'flavor', 'values')
static

Definition at line 26 of file control.py.

◆ type

robot.model.control.For.type = BodyItem.FOR
static

Definition at line 24 of file control.py.

◆ values

robot.model.control.For.values

Definition at line 32 of file control.py.

◆ variables

robot.model.control.For.variables

Definition at line 30 of file control.py.

Property Documentation

◆ keywords

robot.model.control.For.keywords = property
static

Deprecated since Robot Framework 4.0.

Use :attr:body instead.

Definition at line 42 of file control.py.


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