Package cssutils :: Module util :: Class Base2
[hide private]
[frames] | no frames]

Class Base2

source code

object --+    
         |    
      Base --+
             |
            Base2
Known Subclasses:

Base class for new seq handling, used by Selector for now only
Nested Classes [hide private]

Inherited from Base (private): _prods

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_setSeq(self, newseq)
sets newseq and makes it readonly
source code
 
_tempSeq(self, readonly=False)
get a writeable Seq() which is added later
source code
 
_adddefaultproductions(self, productions, new=None)
adds default productions if not already present, used by _parse only
source code

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

Static Methods [hide private]

Inherited from Base (private): _normalize

Class Variables [hide private]

Inherited from Base (private): _SHORTHANDPROPERTIES, _log

Properties [hide private]
  seq
seq for most classes

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

_adddefaultproductions(self, productions, new=None)

source code 

adds default productions if not already present, used by _parse only

each production should return the next expected token normaly a name like "uri" or "EOF" some have no expectation like S or COMMENT, so simply return the current value of self.__expected

Overrides: Base._adddefaultproductions

Property Details [hide private]

seq

seq for most classes
Get Method:
unreachable(self)