java-api 17.26.6__tar.gz → 25.26.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. java_api-25.26.1/CHANGELOG.md +5 -0
  2. {java_api-17.26.6 → java_api-25.26.1}/PKG-INFO +5 -5
  3. {java_api-17.26.6 → java_api-25.26.1}/README.md +2 -2
  4. {java_api-17.26.6 → java_api-25.26.1}/setup.cfg +3 -3
  5. {java_api-17.26.6 → java_api-25.26.1}/src/java/io/__init__.py +22 -1
  6. {java_api-17.26.6 → java_api-25.26.1}/src/java/lang/__init__.py +230 -11
  7. java_api-25.26.1/src/java/lang/reflect/__init__.py +158 -0
  8. {java_api-17.26.6 → java_api-25.26.1}/src/java/math/__init__.py +5 -0
  9. {java_api-17.26.6 → java_api-25.26.1}/src/java/net/__init__.py +5 -0
  10. java_api-25.26.1/src/java/net/http/__init__.py +40 -0
  11. {java_api-17.26.6 → java_api-25.26.1}/src/java/nio/__init__.py +4 -0
  12. {java_api-17.26.6 → java_api-25.26.1}/src/java/nio/charset/__init__.py +2 -2
  13. {java_api-17.26.6 → java_api-25.26.1}/src/java/nio/file/__init__.py +2 -2
  14. {java_api-17.26.6 → java_api-25.26.1}/src/java/text/__init__.py +60 -1
  15. {java_api-17.26.6 → java_api-25.26.1}/src/java/time/__init__.py +12 -0
  16. {java_api-17.26.6 → java_api-25.26.1}/src/java/time/chrono/__init__.py +4 -0
  17. {java_api-17.26.6 → java_api-25.26.1}/src/java/time/format/__init__.py +5 -0
  18. {java_api-17.26.6 → java_api-25.26.1}/src/java/util/__init__.py +235 -0
  19. {java_api-17.26.6 → java_api-25.26.1}/src/java/util/concurrent/__init__.py +53 -1
  20. {java_api-17.26.6 → java_api-25.26.1}/src/java/util/regex/__init__.py +30 -6
  21. {java_api-17.26.6 → java_api-25.26.1}/src/java/util/stream/__init__.py +104 -1
  22. {java_api-17.26.6 → java_api-25.26.1}/src/java_api.egg-info/PKG-INFO +5 -5
  23. {java_api-17.26.6 → java_api-25.26.1}/src/javax/security/auth/__init__.py +10 -0
  24. java_api-17.26.6/CHANGELOG.md +0 -43
  25. java_api-17.26.6/src/java/lang/reflect/__init__.py +0 -9
  26. java_api-17.26.6/src/java/net/http/__init__.py +0 -15
  27. {java_api-17.26.6 → java_api-25.26.1}/LICENSE +0 -0
  28. {java_api-17.26.6 → java_api-25.26.1}/MANIFEST.in +0 -0
  29. {java_api-17.26.6 → java_api-25.26.1}/pyproject.toml +0 -0
  30. {java_api-17.26.6 → java_api-25.26.1}/setup.py +0 -0
  31. {java_api-17.26.6 → java_api-25.26.1}/src/java/__init__.py +0 -0
  32. {java_api-17.26.6 → java_api-25.26.1}/src/java/awt/__init__.py +0 -0
  33. {java_api-17.26.6 → java_api-25.26.1}/src/java/awt/event/__init__.py +0 -0
  34. {java_api-17.26.6 → java_api-25.26.1}/src/java/awt/geom/__init__.py +0 -0
  35. {java_api-17.26.6 → java_api-25.26.1}/src/java/awt/image/__init__.py +0 -0
  36. {java_api-17.26.6 → java_api-25.26.1}/src/java/awt/print/__init__.py +0 -0
  37. {java_api-17.26.6 → java_api-25.26.1}/src/java/beans/__init__.py +0 -0
  38. {java_api-17.26.6 → java_api-25.26.1}/src/java/nio/channels/__init__.py +0 -0
  39. {java_api-17.26.6 → java_api-25.26.1}/src/java/nio/file/attribute/__init__.py +0 -0
  40. {java_api-17.26.6 → java_api-25.26.1}/src/java/org/__init__.py +0 -0
  41. {java_api-17.26.6 → java_api-25.26.1}/src/java/org/jdesktop/__init__.py +0 -0
  42. {java_api-17.26.6 → java_api-25.26.1}/src/java/org/jdesktop/core/__init__.py +0 -0
  43. {java_api-17.26.6 → java_api-25.26.1}/src/java/org/jdesktop/core/animation/__init__.py +0 -0
  44. {java_api-17.26.6 → java_api-25.26.1}/src/java/org/jdesktop/core/animation/timing/__init__.py +0 -0
  45. {java_api-17.26.6 → java_api-25.26.1}/src/java/security/__init__.py +0 -0
  46. {java_api-17.26.6 → java_api-25.26.1}/src/java/time/temporal/__init__.py +0 -0
  47. {java_api-17.26.6 → java_api-25.26.1}/src/java/util/function/__init__.py +0 -0
  48. {java_api-17.26.6 → java_api-25.26.1}/src/java_api.egg-info/SOURCES.txt +0 -0
  49. {java_api-17.26.6 → java_api-25.26.1}/src/java_api.egg-info/dependency_links.txt +0 -0
  50. {java_api-17.26.6 → java_api-25.26.1}/src/java_api.egg-info/requires.txt +0 -0
  51. {java_api-17.26.6 → java_api-25.26.1}/src/java_api.egg-info/top_level.txt +0 -0
  52. {java_api-17.26.6 → java_api-25.26.1}/src/javax/__init__.py +0 -0
  53. {java_api-17.26.6 → java_api-25.26.1}/src/javax/security/__init__.py +0 -0
  54. {java_api-17.26.6 → java_api-25.26.1}/src/javax/swing/__init__.py +0 -0
  55. {java_api-17.26.6 → java_api-25.26.1}/src/javax/swing/event/__init__.py +0 -0
  56. {java_api-17.26.6 → java_api-25.26.1}/src/javax/swing/plaf/__init__.py +0 -0
  57. {java_api-17.26.6 → java_api-25.26.1}/src/javax/swing/text/__init__.py +0 -0
@@ -0,0 +1,5 @@
1
+ ## 25.26.1 (2026-11-15)
2
+
3
+ ### Feat
4
+
5
+ - add java.lang.System (#56)
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: java_api
3
- Version: 17.26.6
3
+ Version: 25.26.1
4
4
  Summary: Java API Specification
5
5
  Home-page: https://github.com/ignition-devs/java-api
6
6
  Author: César Román
7
7
  Author-email: cesar@coatl.dev
8
8
  License: MIT
9
- Project-URL: Source, https://github.com/ignition-devs/java-api/tree/17
10
- Project-URL: Documentation, https://docs.oracle.com/en/java/javase/17/docs/api/index.html
9
+ Project-URL: Source, https://github.com/ignition-devs/java-api/tree/25
10
+ Project-URL: Documentation, https://docs.oracle.com/en/java/javase/25/docs/api/index.html
11
11
  Project-URL: Funding, https://github.com/sponsors/cesarcoatl
12
12
  Project-URL: Tracker, https://github.com/ignition-devs/java-api/issues
13
13
  Description: # java-api
@@ -21,7 +21,7 @@ Description: # java-api
21
21
  [![Join us on GitHub discussions](https://img.shields.io/badge/github-discussions-informational)](https://github.com/orgs/ignition-devs/discussions)
22
22
 
23
23
  java-api is a Python package that allows developers to get code completion
24
- for Java 17 API Specification functions and classes in their IDE of choice.
24
+ for Java 25 API Specification functions and classes in their IDE of choice.
25
25
 
26
26
  ## Table of contents
27
27
 
@@ -95,7 +95,7 @@ Description: # java-api
95
95
 
96
96
  These packages include supporting Java classes and interfaces. For more
97
97
  information, see documentation here:
98
- <https://docs.oracle.com/en/java/javase/17/docs/api/index.html>.
98
+ <https://docs.oracle.com/en/java/javase/25/docs/api/index.html>.
99
99
 
100
100
  ## Contributing
101
101
 
@@ -9,7 +9,7 @@
9
9
  [![Join us on GitHub discussions](https://img.shields.io/badge/github-discussions-informational)](https://github.com/orgs/ignition-devs/discussions)
10
10
 
11
11
  java-api is a Python package that allows developers to get code completion
12
- for Java 17 API Specification functions and classes in their IDE of choice.
12
+ for Java 25 API Specification functions and classes in their IDE of choice.
13
13
 
14
14
  ## Table of contents
15
15
 
@@ -83,7 +83,7 @@ This project consists of the following packages:
83
83
 
84
84
  These packages include supporting Java classes and interfaces. For more
85
85
  information, see documentation here:
86
- <https://docs.oracle.com/en/java/javase/17/docs/api/index.html>.
86
+ <https://docs.oracle.com/en/java/javase/25/docs/api/index.html>.
87
87
 
88
88
  ## Contributing
89
89
 
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = java_api
3
- version = 17.26.6
3
+ version = 25.26.1
4
4
  description = Java API Specification
5
5
  long_description = file: README.md
6
6
  long_description_content_type = text/markdown
@@ -29,9 +29,9 @@ keywords =
29
29
  inductive automation
30
30
  java
31
31
  project_urls =
32
- Documentation = https://docs.oracle.com/en/java/javase/17/docs/api/index.html
32
+ Documentation = https://docs.oracle.com/en/java/javase/25/docs/api/index.html
33
33
  Funding = https://github.com/sponsors/cesarcoatl
34
- Source = https://github.com/ignition-devs/java-api/tree/17
34
+ Source = https://github.com/ignition-devs/java-api/tree/25
35
35
  Tracker = https://github.com/ignition-devs/java-api/issues
36
36
 
37
37
  [options]
@@ -31,7 +31,7 @@ __all__ = [
31
31
  "Writer",
32
32
  ]
33
33
 
34
- from typing import Any, Optional, Union
34
+ from typing import Any, List, Optional, Union
35
35
 
36
36
  from java.lang import (
37
37
  Appendable,
@@ -220,6 +220,10 @@ class PrintStream(FilterOutputStream):
220
220
  # type: () -> bool
221
221
  return True
222
222
 
223
+ def charset(self):
224
+ # type: () -> Charset
225
+ pass
226
+
223
227
  def format(self, *args):
224
228
  # type: (*Any) -> PrintStream
225
229
  pass
@@ -305,6 +309,10 @@ class FileInputStream(InputStream):
305
309
  # type: () -> FileDescriptor
306
310
  pass
307
311
 
312
+ def transferTo(self, out):
313
+ # type: (OutputStream) -> long
314
+ pass
315
+
308
316
 
309
317
  class IOException(Exception):
310
318
  def __init__(self, message=None, cause=None):
@@ -335,10 +343,23 @@ class Reader(Object, Readable, Closeable):
335
343
  # type: () -> Reader
336
344
  pass
337
345
 
346
+ @staticmethod
347
+ def of(csq):
348
+ # type: (CharSequence) -> Reader
349
+ pass
350
+
338
351
  def read(self, cb):
339
352
  # type: (CharBuffer) -> int
340
353
  pass
341
354
 
355
+ def readAllAsString(self):
356
+ # type: () -> Union[str, unicode]
357
+ pass
358
+
359
+ def readAllLines(self):
360
+ # type: () -> List[Union[str, unicode]]
361
+ pass
362
+
342
363
  def ready(self):
343
364
  # type: () -> bool
344
365
  return True
@@ -14,10 +14,12 @@ __all__ = [
14
14
  "Comparable",
15
15
  "Enum",
16
16
  "Exception",
17
+ "IO",
17
18
  "IllegalArgumentException",
18
19
  "IllegalStateException",
19
20
  "IndexOutOfBoundsException",
20
21
  "Iterable",
22
+ "MatchException",
21
23
  "NullPointerException",
22
24
  "Number",
23
25
  "Object",
@@ -25,6 +27,7 @@ __all__ = [
25
27
  "Record",
26
28
  "Runnable",
27
29
  "RuntimeException",
30
+ "ScopedValue",
28
31
  "StackTraceElement",
29
32
  "String",
30
33
  "StringBuffer",
@@ -33,22 +36,25 @@ __all__ = [
33
36
  "Thread",
34
37
  "Throwable",
35
38
  "UnsupportedOperationException",
39
+ "WrongThreadException",
36
40
  ]
37
41
 
38
42
  import __builtin__ as builtins
39
43
  import array
40
44
  import os
41
45
  import time
42
- from typing import TYPE_CHECKING, Any, List, Optional, Union
46
+ from typing import TYPE_CHECKING, Any, List, Optional, Set, Union
43
47
 
44
- from java.lang.reflect import Type
48
+ from java.lang.reflect import AccessFlag, Type
45
49
 
46
50
  if TYPE_CHECKING:
47
51
  from java.io import InputStream, PrintStream
48
52
  from java.nio import CharBuffer
49
53
  from java.nio.channels import Channel
54
+ from java.time import Duration
50
55
  from java.util import Iterator, Properties, Spliterator
51
- from java.util.function import Consumer
56
+ from java.util.concurrent import ThreadFactory
57
+ from java.util.function import Consumer, Supplier
52
58
  from java.util.stream import IntStream, Stream
53
59
 
54
60
 
@@ -138,6 +144,10 @@ class CharSequence(object):
138
144
  # type: (CharSequence, CharSequence) -> int
139
145
  pass
140
146
 
147
+ def getChars(self, srcBegin, srcEnd, dst, dstBegin):
148
+ # type: (int, int, object, int) -> None
149
+ pass
150
+
141
151
  def length(self):
142
152
  # type: () -> int
143
153
  raise NotImplementedError
@@ -184,6 +194,10 @@ class Runnable(object):
184
194
 
185
195
 
186
196
  class Class(Object, Type):
197
+ def accessFlags(self):
198
+ # type: () -> Set[AccessFlag]
199
+ pass
200
+
187
201
  def asSubClass(self, clazz):
188
202
  # type: (Class) -> Any
189
203
  pass
@@ -192,6 +206,11 @@ class Class(Object, Type):
192
206
  # type: (Object) -> Any
193
207
  pass
194
208
 
209
+ @staticmethod
210
+ def forPrimitiveName(name):
211
+ # type: (Union[str, unicode]) -> Class
212
+ pass
213
+
195
214
  def getTypeName(self):
196
215
  # type: () -> Union[str, unicode]
197
216
  pass
@@ -378,8 +397,8 @@ class String(unicode):
378
397
  # type: () -> int
379
398
  return hash(self)
380
399
 
381
- def indexOf(self, arg, fromIndex=None):
382
- # type: (Union[int, String], Optional[int]) -> int
400
+ def indexOf(self, arg, fromIndex=None, toIndex=None):
401
+ # type: (Union[int, String], Optional[int], Optional[int]) -> int # noqa: W505
383
402
  pass
384
403
 
385
404
  def intern(self):
@@ -438,6 +457,10 @@ class String(unicode):
438
457
  # type: (String, String) -> String
439
458
  pass
440
459
 
460
+ def splitWithDelimiters(self, regex, limit):
461
+ # type: (String, int) -> List[Union[str, unicode]]
462
+ pass
463
+
441
464
  def startsWith(self, prefix, offset=0):
442
465
  # type: (String, int) -> bool
443
466
  return self.startswith(prefix, offset)
@@ -536,7 +559,7 @@ class StringBuffer(Object, CharSequence):
536
559
  pass
537
560
 
538
561
  def getChars(self, srcBegin, srcEnd, dst, dstBegin):
539
- # type: (int, int, str, int) -> None
562
+ # type: (int, int, object, int) -> None
540
563
  pass
541
564
 
542
565
  def indexOf(self, string, fromIndex=0):
@@ -559,6 +582,10 @@ class StringBuffer(Object, CharSequence):
559
582
  # type: (int, int) -> int
560
583
  pass
561
584
 
585
+ def repeat(self, *args):
586
+ # type: (*Any) -> StringBuffer
587
+ pass
588
+
562
589
  def replace(self, start, end, string):
563
590
  # type: (int, int, str) -> StringBuffer
564
591
  pass
@@ -635,7 +662,7 @@ class StringBuilder(Object, CharSequence):
635
662
  pass
636
663
 
637
664
  def getChars(self, srcBegin, srcEnd, dst, dstBegin):
638
- # type: (int, int, str, int) -> None
665
+ # type: (int, int, object, int) -> None
639
666
  pass
640
667
 
641
668
  def indexOf(self, str_, fromIndex=0):
@@ -658,6 +685,10 @@ class StringBuilder(Object, CharSequence):
658
685
  # type: (int, int) -> int
659
686
  pass
660
687
 
688
+ def repeat(self, *args):
689
+ # type: (*Any) -> StringBuilder
690
+ pass
691
+
661
692
  def replace(self, start, end, str_):
662
693
  # type: (int, int, int) -> StringBuilder
663
694
  pass
@@ -705,7 +736,7 @@ class System(Object):
705
736
  @staticmethod
706
737
  def arraycopy(src, srcPos, dest, destPos, length):
707
738
  # type: (Any, int, Any, int, int) -> None
708
- pass
739
+ dest[destPos : destPos + length] = src[srcPos : srcPos + length]
709
740
 
710
741
  @staticmethod
711
742
  def clearProperty(key):
@@ -1007,12 +1038,86 @@ class UnsupportedOperationException(RuntimeException):
1007
1038
  super(UnsupportedOperationException, self).__init__(message, cause)
1008
1039
 
1009
1040
 
1041
+ class MatchException(RuntimeException):
1042
+ """Thrown when an exhaustive switch expression or pattern matching
1043
+ statement fails to match.
1044
+ """
1045
+
1046
+ def __init__(self, message=None, cause=None):
1047
+ # type: (Optional[str], Optional[Throwable]) -> None
1048
+ super(MatchException, self).__init__(message, cause)
1049
+
1050
+
1051
+ class WrongThreadException(RuntimeException):
1052
+ """Thrown to indicate that a method has been called by a thread that
1053
+ is not the correct thread for the operation.
1054
+ """
1055
+
1056
+ def __init__(self, message=None, cause=None):
1057
+ # type: (Optional[str], Optional[Throwable]) -> None
1058
+ super(WrongThreadException, self).__init__(message, cause)
1059
+
1060
+
1010
1061
  class Record(Object):
1011
1062
  def __init__(self):
1012
1063
  # type: () -> None
1013
1064
  super(Record, self).__init__()
1014
1065
 
1015
1066
 
1067
+ class ScopedValue(Object):
1068
+ """A value that may be bound to the current thread for a bounded
1069
+ period of execution.
1070
+ """
1071
+
1072
+ class CallableOp(object):
1073
+ def call(self):
1074
+ # type: () -> Any
1075
+ raise NotImplementedError
1076
+
1077
+ class Carrier(object):
1078
+ def call(self, op):
1079
+ # type: (ScopedValue.CallableOp) -> Any
1080
+ pass
1081
+
1082
+ def get(self, key):
1083
+ # type: (ScopedValue) -> Any
1084
+ pass
1085
+
1086
+ def run(self, op):
1087
+ # type: (Runnable) -> None
1088
+ pass
1089
+
1090
+ def where(self, key, value):
1091
+ # type: (ScopedValue, Any) -> ScopedValue.Carrier
1092
+ pass
1093
+
1094
+ def get(self):
1095
+ # type: () -> Any
1096
+ pass
1097
+
1098
+ def isBound(self):
1099
+ # type: () -> bool
1100
+ return True
1101
+
1102
+ @staticmethod
1103
+ def newInstance():
1104
+ # type: () -> ScopedValue
1105
+ pass
1106
+
1107
+ def orElse(self, other):
1108
+ # type: (Any) -> Any
1109
+ pass
1110
+
1111
+ def orElseThrow(self, supplier=None):
1112
+ # type: (Optional[Supplier]) -> Any
1113
+ pass
1114
+
1115
+ @staticmethod
1116
+ def where(key, value):
1117
+ # type: (ScopedValue, Any) -> ScopedValue.Carrier
1118
+ pass
1119
+
1120
+
1016
1121
  class Thread(Object):
1017
1122
  """A thread is a thread of execution in a program.
1018
1123
 
@@ -1027,7 +1132,121 @@ class Thread(Object):
1027
1132
  method in this class will cause a NullPointerException to be thrown.
1028
1133
  """
1029
1134
 
1135
+ class Builder(object):
1136
+ def factory(self):
1137
+ # type: () -> ThreadFactory
1138
+ pass
1139
+
1140
+ def inheritInheritableThreadLocals(self, inherit):
1141
+ # type: (bool) -> Thread.Builder
1142
+ pass
1143
+
1144
+ def name(self, *args):
1145
+ # type: (*Any) -> Thread.Builder
1146
+ pass
1147
+
1148
+ def start(self, task):
1149
+ # type: (Runnable) -> Thread
1150
+ pass
1151
+
1152
+ def uncaughtExceptionHandler(self, handler):
1153
+ # type: (Any) -> Thread.Builder
1154
+ pass
1155
+
1156
+ def unstarted(self, task):
1157
+ # type: (Runnable) -> Thread
1158
+ pass
1159
+
1160
+ class OfPlatform(Builder):
1161
+ def daemon(self, on=None):
1162
+ # type: (Optional[bool]) -> Thread.OfPlatform
1163
+ pass
1164
+
1165
+ def group(self, group):
1166
+ # type: (Any) -> Thread.OfPlatform
1167
+ pass
1168
+
1169
+ def inheritInheritableThreadLocals(self, inherit):
1170
+ # type: (bool) -> Thread.OfPlatform
1171
+ pass
1172
+
1173
+ def name(self, *args):
1174
+ # type: (*Any) -> Thread.OfPlatform
1175
+ pass
1176
+
1177
+ def priority(self, priority):
1178
+ # type: (int) -> Thread.OfPlatform
1179
+ pass
1180
+
1181
+ def stackSize(self, stackSize):
1182
+ # type: (long) -> Thread.OfPlatform
1183
+ pass
1184
+
1185
+ def uncaughtExceptionHandler(self, handler):
1186
+ # type: (Any) -> Thread.OfPlatform
1187
+ pass
1188
+
1189
+ class OfVirtual(Builder):
1190
+ def inheritInheritableThreadLocals(self, inherit):
1191
+ # type: (bool) -> Thread.OfVirtual
1192
+ pass
1193
+
1194
+ def name(self, *args):
1195
+ # type: (*Any) -> Thread.OfVirtual
1196
+ pass
1197
+
1198
+ def uncaughtExceptionHandler(self, handler):
1199
+ # type: (Any) -> Thread.OfVirtual
1200
+ pass
1201
+
1202
+ def isVirtual(self):
1203
+ # type: () -> bool
1204
+ return True
1205
+
1206
+ def join(self, *args):
1207
+ # type: (*Any) -> Optional[bool]
1208
+ pass
1209
+
1210
+ @staticmethod
1211
+ def ofPlatform():
1212
+ # type: () -> Thread.OfPlatform
1213
+ pass
1214
+
1215
+ @staticmethod
1216
+ def ofVirtual():
1217
+ # type: () -> Thread.OfVirtual
1218
+ pass
1219
+
1220
+ @staticmethod
1221
+ def sleep(millis, nanos=0):
1222
+ # type: (Union[long, Duration], int) -> None
1223
+ if isinstance(millis, (int, long)):
1224
+ time.sleep(millis // 1000)
1225
+
1226
+ @staticmethod
1227
+ def startVirtualThread(task):
1228
+ # type: (Runnable) -> Thread
1229
+ pass
1230
+
1231
+ def threadId(self):
1232
+ # type: () -> long
1233
+ pass
1234
+
1235
+
1236
+ class IO(object):
1237
+ """A utility class for basic console input and output."""
1238
+
1239
+ @staticmethod
1240
+ def print(obj=None):
1241
+ # type: (Optional[Object]) -> None
1242
+ pass
1243
+
1244
+ @staticmethod
1245
+ def println(obj=None):
1246
+ # type: (Optional[Object]) -> None
1247
+ pass
1248
+
1030
1249
  @staticmethod
1031
- def sleep(millis):
1032
- # type: (long) -> None
1033
- time.sleep(millis // 1000)
1250
+ def readln(prompt=None):
1251
+ # type: (Optional[Union[str, unicode]]) -> Union[str, unicode]
1252
+ pass
@@ -0,0 +1,158 @@
1
+ __all__ = ["AccessFlag", "ClassFileFormatVersion", "Type"]
2
+
3
+ from typing import Any, List, Optional, Set, Union
4
+
5
+
6
+ class Type(object):
7
+ def getTypeName(self):
8
+ # type: () -> Union[str, unicode]
9
+ raise NotImplementedError
10
+
11
+
12
+ class AccessFlag(object):
13
+ """Represents a JVM access flag.
14
+
15
+ Access flags were added in Java 20.
16
+ """
17
+
18
+ class Location(object):
19
+ CLASS = None # type: AccessFlag.Location
20
+ FIELD = None # type: AccessFlag.Location
21
+ METHOD = None # type: AccessFlag.Location
22
+ INNER_CLASS = None # type: AccessFlag.Location
23
+ METHOD_PARAMETER = None # type: AccessFlag.Location
24
+ MODULE = None # type: AccessFlag.Location
25
+ MODULE_REQUIRES = None # type: AccessFlag.Location
26
+ MODULE_EXPORTS = None # type: AccessFlag.Location
27
+ MODULE_OPENS = None # type: AccessFlag.Location
28
+
29
+ def flagsMask(self, classFileFormatVersion=None):
30
+ # type: (Optional[ClassFileFormatVersion]) -> int
31
+ pass
32
+
33
+ def flags(self, classFileFormatVersion=None):
34
+ # type: (Optional[ClassFileFormatVersion]) -> Set[AccessFlag] # noqa: W505
35
+ pass
36
+
37
+ @staticmethod
38
+ def values():
39
+ # type: () -> List[AccessFlag.Location]
40
+ pass
41
+
42
+ @staticmethod
43
+ def valueOf(name):
44
+ # type: (Union[str, unicode]) -> AccessFlag.Location
45
+ pass
46
+
47
+ PUBLIC = None # type: AccessFlag
48
+ PRIVATE = None # type: AccessFlag
49
+ PROTECTED = None # type: AccessFlag
50
+ STATIC = None # type: AccessFlag
51
+ FINAL = None # type: AccessFlag
52
+ SUPER = None # type: AccessFlag
53
+ OPEN = None # type: AccessFlag
54
+ TRANSITIVE = None # type: AccessFlag
55
+ SYNCHRONIZED = None # type: AccessFlag
56
+ STATIC_PHASE = None # type: AccessFlag
57
+ VOLATILE = None # type: AccessFlag
58
+ BRIDGE = None # type: AccessFlag
59
+ TRANSIENT = None # type: AccessFlag
60
+ VARARGS = None # type: AccessFlag
61
+ NATIVE = None # type: AccessFlag
62
+ INTERFACE = None # type: AccessFlag
63
+ ABSTRACT = None # type: AccessFlag
64
+ STRICT = None # type: AccessFlag
65
+ SYNTHETIC = None # type: AccessFlag
66
+ ANNOTATION = None # type: AccessFlag
67
+ ENUM = None # type: AccessFlag
68
+ MANDATED = None # type: AccessFlag
69
+ MODULE = None # type: AccessFlag
70
+
71
+ def locations(self, classFileFormatVersion=None):
72
+ # type: (Optional[ClassFileFormatVersion]) -> Set[AccessFlag.Location] # noqa: W505
73
+ pass
74
+
75
+ def mask(self):
76
+ # type: () -> int
77
+ pass
78
+
79
+ @staticmethod
80
+ def maskToAccessFlags(mask, location, classFileFormatVersion=None):
81
+ # type: (int, AccessFlag.Location, Optional[ClassFileFormatVersion]) -> Set[AccessFlag] # noqa: W505
82
+ pass
83
+
84
+ def sourceModifier(self):
85
+ # type: () -> bool
86
+ pass
87
+
88
+ @staticmethod
89
+ def values():
90
+ # type: () -> List[AccessFlag]
91
+ pass
92
+
93
+ @staticmethod
94
+ def valueOf(name):
95
+ # type: (Union[str, unicode]) -> AccessFlag
96
+ pass
97
+
98
+
99
+ class ClassFileFormatVersion(object):
100
+ """Represents a class file format version.
101
+
102
+ Class file format versions were added in Java 20.
103
+ """
104
+
105
+ RELEASE_0 = None # type: ClassFileFormatVersion
106
+ RELEASE_1 = None # type: ClassFileFormatVersion
107
+ RELEASE_2 = None # type: ClassFileFormatVersion
108
+ RELEASE_3 = None # type: ClassFileFormatVersion
109
+ RELEASE_4 = None # type: ClassFileFormatVersion
110
+ RELEASE_5 = None # type: ClassFileFormatVersion
111
+ RELEASE_6 = None # type: ClassFileFormatVersion
112
+ RELEASE_7 = None # type: ClassFileFormatVersion
113
+ RELEASE_8 = None # type: ClassFileFormatVersion
114
+ RELEASE_9 = None # type: ClassFileFormatVersion
115
+ RELEASE_10 = None # type: ClassFileFormatVersion
116
+ RELEASE_11 = None # type: ClassFileFormatVersion
117
+ RELEASE_12 = None # type: ClassFileFormatVersion
118
+ RELEASE_13 = None # type: ClassFileFormatVersion
119
+ RELEASE_14 = None # type: ClassFileFormatVersion
120
+ RELEASE_15 = None # type: ClassFileFormatVersion
121
+ RELEASE_16 = None # type: ClassFileFormatVersion
122
+ RELEASE_17 = None # type: ClassFileFormatVersion
123
+ RELEASE_18 = None # type: ClassFileFormatVersion
124
+ RELEASE_19 = None # type: ClassFileFormatVersion
125
+ RELEASE_20 = None # type: ClassFileFormatVersion
126
+ RELEASE_21 = None # type: ClassFileFormatVersion
127
+ RELEASE_22 = None # type: ClassFileFormatVersion
128
+ RELEASE_23 = None # type: ClassFileFormatVersion
129
+ RELEASE_24 = None # type: ClassFileFormatVersion
130
+ RELEASE_25 = None # type: ClassFileFormatVersion
131
+
132
+ @staticmethod
133
+ def fromMajor(major):
134
+ # type: (int) -> ClassFileFormatVersion
135
+ pass
136
+
137
+ @staticmethod
138
+ def latest():
139
+ # type: () -> ClassFileFormatVersion
140
+ pass
141
+
142
+ def major(self):
143
+ # type: () -> int
144
+ pass
145
+
146
+ def runtimeVersion(self):
147
+ # type: () -> Any
148
+ pass
149
+
150
+ @staticmethod
151
+ def values():
152
+ # type: () -> List[ClassFileFormatVersion]
153
+ pass
154
+
155
+ @staticmethod
156
+ def valueOf(arg):
157
+ # type: (Any) -> ClassFileFormatVersion
158
+ pass
@@ -10,6 +10,7 @@ from java.lang import Enum, Number, Object
10
10
  class BigDecimal(Number):
11
11
  ONE = None # type: BigDecimal
12
12
  TEN = None # type: BigDecimal
13
+ TWO = None # type: BigDecimal
13
14
  ZERO = None # type: BigDecimal
14
15
 
15
16
  def __init__(self, *args):
@@ -61,6 +62,10 @@ class BigInteger(Number):
61
62
  # type: () -> long
62
63
  pass
63
64
 
65
+ def parallelMultiply(self, val):
66
+ # type: (BigInteger) -> BigInteger
67
+ pass
68
+
64
69
 
65
70
  class MathContext(Object):
66
71
  def __init__(self, *args):
@@ -244,6 +244,11 @@ class InetAddress(Object):
244
244
  # type: () -> bool
245
245
  return True
246
246
 
247
+ @staticmethod
248
+ def ofLiteral(ipAddressString):
249
+ # type: (Union[str, unicode]) -> InetAddress
250
+ pass
251
+
247
252
 
248
253
  class InetSocketAddress(SocketAddress):
249
254
  def __init__(self, *args):