Skip to content

Commit 5c6de23

Browse files
committed
Split java type functions to a separate class
1 parent c1ebb21 commit 5c6de23

File tree

6 files changed

+284
-276
lines changed

6 files changed

+284
-276
lines changed

src/scyjava/__init__.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,19 +94,12 @@
9494
to_java,
9595
to_python,
9696
)
97-
from ._java import ( # noqa: F401
98-
JavaClasses,
97+
from ._jvm import ( # noqa: F401
9998
available_processors,
10099
gc,
101100
is_awt_initialized,
102-
is_jarray,
103101
is_jvm_headless,
104-
isjava,
105-
jarray,
106-
jclass,
107102
jimport,
108-
jinstance,
109-
jstacktrace,
110103
jvm_started,
111104
jvm_version,
112105
memory_max,
@@ -118,6 +111,15 @@
118111
when_jvm_stops,
119112
)
120113
from ._script import enable_python_scripting # noqa: F401
114+
from ._types import ( # noqa: F401
115+
JavaClasses,
116+
is_jarray,
117+
isjava,
118+
jarray,
119+
jclass,
120+
jinstance,
121+
jstacktrace,
122+
)
121123
from ._versions import ( # noqa: F401
122124
compare_version,
123125
get_version,

src/scyjava/_convert.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,19 @@
1212

1313
from jpype import JBoolean, JByte, JChar, JDouble, JFloat, JInt, JLong, JShort
1414

15-
from scyjava._java import (
16-
JavaClasses,
15+
from scyjava._jvm import (
1716
Mode,
17+
jimport,
18+
mode,
19+
start_jvm,
20+
)
21+
from scyjava._types import (
22+
JavaClasses,
1823
is_jarray,
1924
isjava,
2025
jarray,
2126
jclass,
22-
jimport,
2327
jinstance,
24-
mode,
25-
start_jvm,
2628
)
2729

2830
_logger = logging.getLogger(__name__)

0 commit comments

Comments
 (0)