-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add __repr__ support for pyjobject. If method defined on java class, …
…it will be picked up for tp_repr of the python wrapper
- Loading branch information
1 parent
32a11b7
commit 6589210
Showing
3 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package jep.test; | ||
|
||
/** | ||
* Supporting test_object.py | ||
*/ | ||
public class TestPyJObject { | ||
|
||
public static class ReprClass { | ||
public String __repr__() { | ||
return getClass().getSimpleName(); | ||
} | ||
} | ||
|
||
public static class ReprSubClass extends ReprClass { | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters