|
From: <bc...@wo...> - 2001-08-05 13:49:48
|
When making classes and modules it is often necessary to remove unwanted
names from the class dict. We have used the ClassDictInit mechanisme for
this, and it works ok when we want to clean up all methods with same
name.
I suggest we add another, finer mechanism where we can mark individual
java methods and constructors that they should not be reflected into
jython.
PyJavaClass will look for the dummy exception "IgnoreMethodTag". Methods
and constructors which throws this exception will be skipped and not
inserted into the class dict.
A common use would be:
public String toString() throws IgnoreMethodTag {
...
}
regards,
finn
|