lsst.obs.base  20.0.0-70-g7d2a655+0903613596
Public Member Functions | List of all members
lsst.obs.base.gen2to3.repoWalker.parser.SubstitutableRegEx Class Reference

Public Member Functions

def __init__ (self)
 
def addRegexTerm (self, str regex)
 
def addSubstitutionTerm (self, str template)
 
re.Pattern format (self, dict dataId)
 
FormattableRegEx simplify (self)
 

Detailed Description

An implementation of `FormattableRegEx` formed from a concatenation of
actual regular terms and %-style format strings.

Definition at line 80 of file parser.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.obs.base.gen2to3.repoWalker.parser.SubstitutableRegEx.__init__ (   self)

Definition at line 84 of file parser.py.

Member Function Documentation

◆ addRegexTerm()

def lsst.obs.base.gen2to3.repoWalker.parser.SubstitutableRegEx.addRegexTerm (   self,
str  regex 
)
Add a regular expression term.

Definition at line 89 of file parser.py.

◆ addSubstitutionTerm()

def lsst.obs.base.gen2to3.repoWalker.parser.SubstitutableRegEx.addSubstitutionTerm (   self,
str  template 
)
Add a %-style format template term.

Definition at line 94 of file parser.py.

◆ format()

re.Pattern lsst.obs.base.gen2to3.repoWalker.parser.SubstitutableRegEx.format (   self,
dict  dataId 
)

Definition at line 99 of file parser.py.

◆ simplify()

FormattableRegEx lsst.obs.base.gen2to3.repoWalker.parser.SubstitutableRegEx.simplify (   self)
Return a possibly-simplified version of this object.

If `addSubstitionTerm` was never called, this returns a simple
`FixedRegEx`.

Definition at line 104 of file parser.py.


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