| Home | Trees | Index | Help |
|
|---|
| Package Modeling :: Module delegation :: Class DelegateWrapper |
|
| Method Summary | |
|---|---|
Initializes the DelegateWrapper | |
__getattr__(self,
name)
| |
Returns the delegate object | |
reevaluateDelegateObject(self)
| |
Tells whether the wrapped delegate object can responds to the method interfaceMethodName as defined in the delegate's interface. | |
Sets the delegate object | |
Inspect the delegate's interface and extracts the necessary methods' names and signatures | |
Generic function returning a sequence made of couples (<functionName>, <functionSignature>), each couple representing one of aClass 's methods. | |
| Class Variable Summary | |
|---|---|
NoneType |
_delegate = None |
| Method Details |
|---|
__init__(self,
interface,
object=None)
Initializes the DelegateWrapper |
delegateObject(self)Returns the delegate object |
respondsTo(self, interfaceMethodName)Tells whether the wrapped delegate object can responds to the method
Returned value is None for false, 1 (integer) for true |
setDelegateObject(self, object)Sets the delegate object |
_compileInterface(self)Inspect the delegate's interface and extracts the necessary methods' names and signatures |
_getClassMethodsSignatures(self, aClass)Generic function returning a sequence made of couples
(<functionName>, <functionSignature>), each couple representing one of
An example of such a couple is (from tests/test_delegation.py):
('canTheWorldBeChanged', "(['self', 'isElvisAlive'], None, None, (1,))")
See also: |
| Class Variable Details |
|---|
_delegate
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Sat Mar 4 13:36:21 2006 | http://epydoc.sf.net |