Package lepl :: Package matchers :: Module support :: Class BaseMatcher
[hide private]
[frames] | no frames]

Class BaseMatcher

source code


A base class that provides support to all matchers.
Instance Methods [hide private]
 
__repr__(self)
repr(x)
source code
 
_fmt_repr(self, indent, value, visited, key=None) source code
 
_format_repr(self, indent, key, contents) source code
 
_indented_repr(self, indent0, visited, key=None) source code
 
_fmt_compact(self) source code
 
_fmt_str(self, value, key=None) source code
 
__str__(self)
str(x)
source code
 
kargs(self) source code
 
tree(self)
An ASCII tree for display.
source code
 
tree_repr(self)
The text to display via tree()
source code
 
clone(self)
Clone this matcher (and associated graph).
source code

Inherited from support.graph.ArgAsAttributeMixin: __init__, __iter__

Inherited from support.graph.PostorderWalkerMixin: postorder

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Inherited from matcher.Matcher: indented_repr

Inherited from matcher.Matcher (private): _match

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)

_fmt_compact(self)

source code 
Decorators:
  • @property

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)

kargs(self)

source code 
Decorators:
  • @property

clone(self)

source code 
Clone this matcher (and associated graph). This is currently only used when we want to test different configurations.