Robot Framework
robot.parsing.model.blocks.File Class Reference
Inheritance diagram for robot.parsing.model.blocks.File:
robot.parsing.model.blocks.Block

Public Member Functions

def __init__ (self, sections=None, source=None, languages=())
 
def save (self, output=None)
 Save model to the given output or to the original source file. More...
 
- Public Member Functions inherited from robot.parsing.model.blocks.Block
def validate (self, context)
 
def validate_model (self)
 

Public Attributes

 languages
 
 sections
 
 source
 

Static Private Attributes

tuple _attributes
 
tuple _fields
 

Additional Inherited Members

- Static Public Attributes inherited from robot.parsing.model.blocks.Block
tuple errors = ()
 
- Properties inherited from robot.parsing.model.blocks.Block
 col_offset = property
 
 end_col_offset = property
 
 end_lineno = property
 
 lineno = property
 

Detailed Description

Definition at line 89 of file blocks.py.

Constructor & Destructor Documentation

◆ __init__()

def robot.parsing.model.blocks.File.__init__ (   self,
  sections = None,
  source = None,
  languages = () 
)

Definition at line 99 of file blocks.py.

Member Function Documentation

◆ save()

def robot.parsing.model.blocks.File.save (   self,
  output = None 
)

Save model to the given output or to the original source file.

    The ``output`` can be a path to a file or an already opened file
    object. If ``output`` is not given, the original source file will
    be overwritten.

Definition at line 110 of file blocks.py.

Member Data Documentation

◆ _attributes

robot.parsing.model.blocks.File._attributes
staticprivate

Definition at line 97 of file blocks.py.

◆ _fields

robot.parsing.model.blocks.File._fields
staticprivate

Definition at line 93 of file blocks.py.

◆ languages

robot.parsing.model.blocks.File.languages

Definition at line 102 of file blocks.py.

◆ sections

robot.parsing.model.blocks.File.sections

Definition at line 100 of file blocks.py.

◆ source

robot.parsing.model.blocks.File.source

Definition at line 101 of file blocks.py.


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