Robot Framework Integrated Development Environment (RIDE)
robotide.preferences.configobj.InterpolationEngine Class Reference
Inheritance diagram for robotide.preferences.configobj.InterpolationEngine:
robotide.preferences.configobj.ConfigParserInterpolation robotide.preferences.configobj.TemplateInterpolation

Public Member Functions

def __init__ (self, section)
 
def interpolate (self, key, value)
 

Public Attributes

 section
 

Private Member Functions

def _fetch (self, key)
 Helper function to fetch values from owning section. More...
 
def _parse_match (self, match)
 Implementation-dependent helper function. More...
 

Static Private Attributes

string _cookie
 
 _KEYCRE
 

Detailed Description

Definition at line 293 of file configobj.py.

Constructor & Destructor Documentation

◆ __init__()

def robotide.preferences.configobj.InterpolationEngine.__init__ (   self,
  section 
)

Definition at line 305 of file configobj.py.

Member Function Documentation

◆ _fetch()

def robotide.preferences.configobj.InterpolationEngine._fetch (   self,
  key 
)
private

Helper function to fetch values from owning section.

    Returns a 2-tuple: the value, and the section where it was found.

Definition at line 369 of file configobj.py.

◆ _parse_match()

def robotide.preferences.configobj.InterpolationEngine._parse_match (   self,
  match 
)
private

Implementation-dependent helper function.

    Will be passed a match object corresponding to the interpolation
    key we just found (e.g., "%(foo)s" or "$foo"). Should look up that
    key in the appropriate config file section (using the ``_fetch()``
    helper function) and return a 3-tuple: (key, value, section)

    ``key`` is the name of the key we're looking for
    ``value`` is the value found for that key
    ``section`` is a reference to the section where it was found

    ``key`` and ``section`` should be None if no further
    interpolation should be performed on the resulting value
    (e.g., if we interpolated "$$" and returned "$").

Reimplemented in robotide.preferences.configobj.TemplateInterpolation, and robotide.preferences.configobj.ConfigParserInterpolation.

Definition at line 416 of file configobj.py.

◆ interpolate()

def robotide.preferences.configobj.InterpolationEngine.interpolate (   self,
  key,
  value 
)

Definition at line 310 of file configobj.py.

Member Data Documentation

◆ _cookie

robotide.preferences.configobj.InterpolationEngine._cookie
staticprivate

Definition at line 303 of file configobj.py.

◆ _KEYCRE

robotide.preferences.configobj.InterpolationEngine._KEYCRE
staticprivate

Definition at line 299 of file configobj.py.

◆ section

robotide.preferences.configobj.InterpolationEngine.section

Definition at line 307 of file configobj.py.


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