Package gavo :: Package utils :: Module stanxml :: Class Stub
[frames] | no frames]

Class Stub

source code

object --+
         |
        Stub
Known Subclasses:

A sentinel class for embedding objects not yet existing into stanxml trees.

These have a single opaque object and need to be dealt with by the user. One example of how these can be used is the ColRefs in stc to utype conversion.

Stubs are equal to each othter if their handles are identical.

Instance Methods
 
__init__(self, dest)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__repr__(self)
repr(x)
source code
 
__eq__(self, other) source code
 
__ne__(self, other) source code
 
__hash__(self)
hash(x)
source code
 
isEmpty(self) source code
 
shouldBeSkipped(self) source code
 
getChildDict(self) source code
 
iterAttNames(self) source code
 
apply(self, func)
does nothing.
source code

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

Class Variables
  name_ = 'stub'
  text_ = None
hash(x)
Properties

Inherited from object: __class__

Method Details

__init__(self, dest)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__hash__(self)
(Hashing function)

source code 

hash(x)

Overrides: object.__hash__
(inherited documentation)

apply(self, func)

source code 

does nothing.

Stubs don't have what Element.apply needs, so we don't even pretend.