Package jazzparser :: Module grammar :: Class Family
[hide private]
[frames] | no frames]

Class Family

source code

object --+
         |
        Family

A lexical family.

Instance Methods [hide private]
 
__init__(self, formalism, name, pos, entries, chordfn=None, expanded=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__str__(self)
str(x)
source code

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

Static Methods [hide private]
 
from_dom(formalism, element)
Builds a Family instance from a DOM element read in from the XML grammar definition.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, formalism, name, pos, entries, chordfn=None, expanded=None)
(Constructor)

source code 

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

Parameters:
  • expanded (string or None) - if the family is generated by a lexical expansion rule, should contain the name of the rule that generated it. Otherwise None
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)