Package jazzparser :: Package formalisms :: Package base :: Module modalities :: Class ModalityTreeNode
[hide private]
[frames] | no frames]

Class ModalityTreeNode

source code

object --+
         |
        ModalityTreeNode

A node in the modality tree.

Instance Methods [hide private]
 
__init__(self, modality, children=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
contains(self, modality)
This node contains its own modality and the modalities in all of its subtrees.
source code
 
generalizes(self, modality)
This node generalizes anothe modality if the other modality is to be found in any of the nodes in its subtrees.
source code
 
__str__(self)
str(x)
source code
 
find(self, modality)
Returns a list of all the nodes in this tree (including this node) with the given modality.
source code

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

Static Methods [hide private]
 
from_dom(xml)
Builds a modality tree node from its DOM XML representation.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, modality, children=None)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)