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

Class ModalSlash

source code

object --+
         |
        ModalSlash
Known Subclasses:

A CCG slash class that wants modalities should inherit (first) from the base Slash (or some subclass) and also from this, to add the modality functionality.

Instance Methods [hide private]
 
__init__(self, modality)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_extra_eq(self, other)
An additional requirement for equality.
source code
 
__post_string(self)
Add something to the end of the str to put the modality symbol on the slash.
source code
 
__pre_string(self) source code

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

Properties [hide private]
  _post_string
Add something to the end of the str to put the modality symbol on the slash.
  _pre_string

Inherited from object: __class__

Method Details [hide private]

__init__(self, modality)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

__post_string(self)

source code 

Add something to the end of the str to put the modality symbol on the slash. If you want some alternative slash representation, you're welcome to override this in the slash subclass.


Property Details [hide private]

_post_string

Add something to the end of the str to put the modality symbol on the slash. If you want some alternative slash representation, you're welcome to override this in the slash subclass.

Get Method:
__post_string(self) - Add something to the end of the str to put the modality symbol on the slash.

_pre_string

Get Method:
__pre_string(self)