|
From: Stuart S. <st...@me...> - 2001-08-05 18:59:26
|
If the dummy exception would appear in the Java source,
it might be helpful to name the Exception so that the
context of PyJava / Jython is clear, e.g.
JythonIgnoreMethodTag
(although IgnoreMethodTag might have this context embedded
by virtue of the package it will contained in... which raises the
question of which package ). Otherwise, this seems to match
the pattern used by Cloneable more or less.
Stuart
Swerdloff
Finn Bock wrote:
> 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
>
> _______________________________________________
> Jython-dev mailing list
> Jyt...@li...
> http://lists.sourceforge.net/lists/listinfo/jython-dev
|