# Class e.c.p.Pattern(object):

Part of elisa.core.pattern_matcher View In Hierarchy

Known subclasses: elisa.core.pattern_matcher.UriPattern

A pattern object contains a regular expression and the corresponding object.

Instance Variables | pattern | the compiled pattern (type: `_sre.SRE_PATTERN` )
| regex | the uncompiled pattern (type: str )
| obj | the object to match

Line # | Kind | Name | Docs
--- | --- | --- | ---
52 | Method | __init__ |
64 | Method | __repr__ | Undocumented
68 | Method | __cmp__ | Undocumented

def __init__(self, regex, obj):
overridden in elisa.core.pattern_matcher.UriPattern

Raises | InvalidPatter | when compiling the `regex` fails

def __repr__(self):
Undocumented
def __cmp__(self, other):
overridden in elisa.core.pattern_matcher.UriPattern
Undocumented