Robot Framework Integrated Development Environment (RIDE)
robotide.lib.robot.parsing.robotreader.RobotReader Class Reference
Inheritance diagram for robotide.lib.robot.parsing.robotreader.RobotReader:
robotide.lib.robot.parsing.tsvreader.TsvReader

Public Member Functions

def __init__ (self, spaces=2)
 
def check_separator (self, line)
 if line.startswith('*') and not self._cell_section: row = line.strip('*').strip(' ') if row in ['Keyword', 'Keywords', 'Test Case', 'Test Cases', 'Task', 'Tasks', 'Variable', 'Variables']: self._cell_section = True More...
 
def read (self, file, populator, path=None)
 
def sharp_strip (self, line)
 
def split_row (self, row)
 

Private Member Functions

def _check_deprecations (self, cells, path, line_number)
 
def _strip_whitespace (cls, string)
 

Static Private Member Functions

def _normalize_whitespace (string)
 

Private Attributes

 _cell_section
 
 _pipe_ends
 
 _pipe_splitter
 
 _pipe_starts
 
 _separator_check
 
 _space_splitter
 
 _spaces
 

Detailed Description

Definition at line 24 of file robotreader.py.

Constructor & Destructor Documentation

◆ __init__()

def robotide.lib.robot.parsing.robotreader.RobotReader.__init__ (   self,
  spaces = 2 
)

Definition at line 26 of file robotreader.py.

Member Function Documentation

◆ _check_deprecations()

def robotide.lib.robot.parsing.robotreader.RobotReader._check_deprecations (   self,
  cells,
  path,
  line_number 
)
private

Reimplemented in robotide.lib.robot.parsing.tsvreader.TsvReader.

Definition at line 137 of file robotreader.py.

◆ _normalize_whitespace()

def robotide.lib.robot.parsing.robotreader.RobotReader._normalize_whitespace (   string)
staticprivate

Definition at line 155 of file robotreader.py.

◆ _strip_whitespace()

def robotide.lib.robot.parsing.robotreader.RobotReader._strip_whitespace (   cls,
  string 
)
private

Definition at line 151 of file robotreader.py.

◆ check_separator()

def robotide.lib.robot.parsing.robotreader.RobotReader.check_separator (   self,
  line 
)

if line.startswith('*') and not self._cell_section: row = line.strip('*').strip(' ') if row in ['Keyword', 'Keywords', 'Test Case', 'Test Cases', 'Task', 'Tasks', 'Variable', 'Variables']: self._cell_section = True

self._space_splitter = re.compile(r"[ \t\xa0]{" + f"{self._spaces}" + "}|\t+")

Definition at line 167 of file robotreader.py.

◆ read()

def robotide.lib.robot.parsing.robotreader.RobotReader.read (   self,
  file,
  populator,
  path = None 
)

Definition at line 37 of file robotreader.py.

◆ sharp_strip()

def robotide.lib.robot.parsing.robotreader.RobotReader.sharp_strip (   self,
  line 
)

Definition at line 67 of file robotreader.py.

◆ split_row()

def robotide.lib.robot.parsing.robotreader.RobotReader.split_row (   self,
  row 
)

Reimplemented in robotide.lib.robot.parsing.tsvreader.TsvReader.

Definition at line 130 of file robotreader.py.

Member Data Documentation

◆ _cell_section

robotide.lib.robot.parsing.robotreader.RobotReader._cell_section
private

Definition at line 34 of file robotreader.py.

◆ _pipe_ends

robotide.lib.robot.parsing.robotreader.RobotReader._pipe_ends
private

Definition at line 32 of file robotreader.py.

◆ _pipe_splitter

robotide.lib.robot.parsing.robotreader.RobotReader._pipe_splitter
private

Definition at line 30 of file robotreader.py.

◆ _pipe_starts

robotide.lib.robot.parsing.robotreader.RobotReader._pipe_starts
private

Definition at line 31 of file robotreader.py.

◆ _separator_check

robotide.lib.robot.parsing.robotreader.RobotReader._separator_check
private

Definition at line 33 of file robotreader.py.

◆ _space_splitter

robotide.lib.robot.parsing.robotreader.RobotReader._space_splitter
private

Definition at line 29 of file robotreader.py.

◆ _spaces

robotide.lib.robot.parsing.robotreader.RobotReader._spaces
private

Definition at line 27 of file robotreader.py.


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