Package jazzparser :: Package formalisms :: Package base :: Module syntax :: Class VariableSubstitutor
[hide private]
[frames] | no frames]

Class VariableSubstitutor

source code

object --+
         |
        VariableSubstitutor

An instance of VariableSubstitutor defines a type of variable forming a component of categories. The instance defines how this variable type is accessed and set, given a category and a key.

Nested Classes [hide private]
  InconsistencyError
  SubstitutionError
Instance Methods [hide private]
 
__init__(self, name, value_setter, key_replacer, canonical_key=<built-in function min>)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
substitute(self, category, key, value) source code
 
get_canonical_key(self, keylist) source code
 
replace_key(self, category, old_key, new_key) source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, value_setter, key_replacer, canonical_key=<built-in function min>)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)