Robot Framework
robot.parsing.model.blocks.If Class Reference

Represents IF structures in the model. More...

Inheritance diagram for robot.parsing.model.blocks.If:
robot.parsing.model.blocks.Block

Public Member Functions

def __init__ (self, header, body=None, orelse=None, end=None, errors=())
 
def validate (self, context)
 
- Public Member Functions inherited from robot.parsing.model.blocks.Block
def validate_model (self)
 

Public Attributes

 body
 
 end
 
 errors
 
 header
 
 orelse
 

Properties

 assign = property
 
 condition = property
 
 type = property
 
- Properties inherited from robot.parsing.model.blocks.Block
 col_offset = property
 
 end_col_offset = property
 
 end_lineno = property
 
 lineno = property
 

Private Member Functions

def _validate_body (self)
 
def _validate_end (self)
 
def _validate_inline_if (self)
 
def _validate_structure (self)
 
def assign (self)
 
def condition (self)
 
def type (self)
 

Static Private Attributes

tuple _fields
 

Additional Inherited Members

- Static Public Attributes inherited from robot.parsing.model.blocks.Block
tuple errors = ()
 

Detailed Description

Represents IF structures in the model.

Used with IF, Inline IF, ELSE IF and ELSE nodes. The :attr:`type` attribute
specifies the type.

Definition at line 194 of file blocks.py.

Constructor & Destructor Documentation

◆ __init__()

def robot.parsing.model.blocks.If.__init__ (   self,
  header,
  body = None,
  orelse = None,
  end = None,
  errors = () 
)

Definition at line 200 of file blocks.py.

Member Function Documentation

◆ _validate_body()

def robot.parsing.model.blocks.If._validate_body (   self)
private

Definition at line 234 of file blocks.py.

◆ _validate_end()

def robot.parsing.model.blocks.If._validate_end (   self)
private

Definition at line 253 of file blocks.py.

◆ _validate_inline_if()

def robot.parsing.model.blocks.If._validate_inline_if (   self)
private

Definition at line 257 of file blocks.py.

◆ _validate_structure()

def robot.parsing.model.blocks.If._validate_structure (   self)
private

Definition at line 239 of file blocks.py.

◆ assign()

def robot.parsing.model.blocks.If.assign (   self)
private

Definition at line 222 of file blocks.py.

◆ condition()

def robot.parsing.model.blocks.If.condition (   self)
private

Definition at line 216 of file blocks.py.

◆ type()

def robot.parsing.model.blocks.If.type (   self)
private

Definition at line 210 of file blocks.py.

◆ validate()

def robot.parsing.model.blocks.If.validate (   self,
  context 
)

Reimplemented from robot.parsing.model.blocks.Block.

Definition at line 225 of file blocks.py.

Member Data Documentation

◆ _fields

robot.parsing.model.blocks.If._fields
staticprivate

Definition at line 198 of file blocks.py.

◆ body

robot.parsing.model.blocks.If.body

Definition at line 202 of file blocks.py.

◆ end

robot.parsing.model.blocks.If.end

Definition at line 204 of file blocks.py.

◆ errors

robot.parsing.model.blocks.If.errors

Definition at line 205 of file blocks.py.

◆ header

robot.parsing.model.blocks.If.header

Definition at line 201 of file blocks.py.

◆ orelse

robot.parsing.model.blocks.If.orelse

Definition at line 203 of file blocks.py.

Property Documentation

◆ assign

robot.parsing.model.blocks.If.assign = property
static

Definition at line 220 of file blocks.py.

◆ condition

robot.parsing.model.blocks.If.condition = property
static

Definition at line 214 of file blocks.py.

◆ type

robot.parsing.model.blocks.If.type = property
static

Definition at line 208 of file blocks.py.


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