class documentation

Base class that inline patterns subclass.

Method __init__ Create an instant of an inline pattern.
Method getCompiledRegExp Return a compiled regular expression.
Method handleMatch Return a ElementTree element from the given match.
Method type Return class name, to define pattern type
Method unescape Return unescaped text given text with an inline placeholder.
Constant ANCESTOR_EXCLUDES Undocumented
Instance Variable compiled_re Undocumented
Instance Variable md Undocumented
Instance Variable pattern Undocumented
def __init__(self, pattern, md=None): (source)

Create an instant of an inline pattern. Keyword arguments: * pattern: A regular expression that matches a pattern

def getCompiledRegExp(self): (source)

Return a compiled regular expression.

def handleMatch(self, m): (source)

Return a ElementTree element from the given match. Subclasses should override this method. Keyword arguments: * m: A re match object containing a match of the pattern.

def type(self): (source)

Return class name, to define pattern type

def unescape(self, text): (source)

Return unescaped text given text with an inline placeholder.

ANCESTOR_EXCLUDES = (source)

Undocumented

Value
tuple()
compiled_re = (source)

Undocumented

pattern = (source)

Undocumented