java-api 17.26.6__py2-none-any.whl → 25.26.1__py2-none-any.whl
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.
- java/io/__init__.py +22 -1
- java/lang/__init__.py +230 -11
- java/lang/reflect/__init__.py +151 -2
- java/math/__init__.py +5 -0
- java/net/__init__.py +5 -0
- java/net/http/__init__.py +27 -2
- java/nio/__init__.py +4 -0
- java/nio/charset/__init__.py +2 -2
- java/nio/file/__init__.py +2 -2
- java/text/__init__.py +60 -1
- java/time/__init__.py +12 -0
- java/time/chrono/__init__.py +4 -0
- java/time/format/__init__.py +5 -0
- java/util/__init__.py +235 -0
- java/util/concurrent/__init__.py +53 -1
- java/util/regex/__init__.py +30 -6
- java/util/stream/__init__.py +104 -1
- {java_api-17.26.6.dist-info → java_api-25.26.1.dist-info}/METADATA +5 -5
- {java_api-17.26.6.dist-info → java_api-25.26.1.dist-info}/RECORD +23 -23
- javax/security/auth/__init__.py +10 -0
- {java_api-17.26.6.dist-info → java_api-25.26.1.dist-info}/LICENSE +0 -0
- {java_api-17.26.6.dist-info → java_api-25.26.1.dist-info}/WHEEL +0 -0
- {java_api-17.26.6.dist-info → java_api-25.26.1.dist-info}/top_level.txt +0 -0
java/io/__init__.py
CHANGED
|
@@ -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
|
java/lang/__init__.py
CHANGED
|
@@ -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.
|
|
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,
|
|
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,
|
|
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
|
-
|
|
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
|
|
1032
|
-
# type: (
|
|
1033
|
-
|
|
1250
|
+
def readln(prompt=None):
|
|
1251
|
+
# type: (Optional[Union[str, unicode]]) -> Union[str, unicode]
|
|
1252
|
+
pass
|
java/lang/reflect/__init__.py
CHANGED
|
@@ -1,9 +1,158 @@
|
|
|
1
|
-
__all__ = ["Type"]
|
|
1
|
+
__all__ = ["AccessFlag", "ClassFileFormatVersion", "Type"]
|
|
2
2
|
|
|
3
|
-
from typing import Union
|
|
3
|
+
from typing import Any, List, Optional, Set, Union
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class Type(object):
|
|
7
7
|
def getTypeName(self):
|
|
8
8
|
# type: () -> Union[str, unicode]
|
|
9
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
|
java/math/__init__.py
CHANGED
|
@@ -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):
|
java/net/__init__.py
CHANGED
|
@@ -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):
|
java/net/http/__init__.py
CHANGED
|
@@ -1,14 +1,39 @@
|
|
|
1
1
|
__all__ = ["HttpClient", "HttpRequest", "HttpResponse"]
|
|
2
2
|
|
|
3
|
+
from typing import TYPE_CHECKING, Optional
|
|
4
|
+
|
|
3
5
|
from java.lang import Object
|
|
4
6
|
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
from java.time import Duration
|
|
9
|
+
|
|
5
10
|
|
|
6
11
|
class HttpResponse(object):
|
|
7
|
-
|
|
12
|
+
def connectionLabel(self):
|
|
13
|
+
# type: () -> Optional[str]
|
|
14
|
+
pass
|
|
8
15
|
|
|
9
16
|
|
|
10
17
|
class HttpClient(Object):
|
|
11
|
-
|
|
18
|
+
def awaitTermination(self, duration):
|
|
19
|
+
# type: (Duration) -> bool
|
|
20
|
+
pass
|
|
21
|
+
|
|
22
|
+
def close(self):
|
|
23
|
+
# type: () -> None
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
def isTerminated(self):
|
|
27
|
+
# type: () -> bool
|
|
28
|
+
pass
|
|
29
|
+
|
|
30
|
+
def shutdown(self):
|
|
31
|
+
# type: () -> None
|
|
32
|
+
pass
|
|
33
|
+
|
|
34
|
+
def shutdownNow(self):
|
|
35
|
+
# type: () -> None
|
|
36
|
+
pass
|
|
12
37
|
|
|
13
38
|
|
|
14
39
|
class HttpRequest(Object):
|
java/nio/__init__.py
CHANGED
|
@@ -287,6 +287,10 @@ class CharBuffer(Buffer, Appendable, CharSequence):
|
|
|
287
287
|
# type: (Any) -> CharBuffer
|
|
288
288
|
pass
|
|
289
289
|
|
|
290
|
+
def getChars(self, srcBegin, srcEnd, dst, dstBegin):
|
|
291
|
+
# type: (int, int, object, int) -> None
|
|
292
|
+
pass
|
|
293
|
+
|
|
290
294
|
def hasArray(self):
|
|
291
295
|
# type: () -> bool
|
|
292
296
|
return True
|
java/nio/charset/__init__.py
CHANGED
|
@@ -47,8 +47,8 @@ class Charset(Object):
|
|
|
47
47
|
pass
|
|
48
48
|
|
|
49
49
|
@staticmethod
|
|
50
|
-
def forName(charsetName):
|
|
51
|
-
# type: (Union[str, unicode]) -> Charset
|
|
50
|
+
def forName(charsetName, fallback=None):
|
|
51
|
+
# type: (Union[str, unicode], Optional[Charset]) -> Charset
|
|
52
52
|
pass
|
|
53
53
|
|
|
54
54
|
def isRegistered(self):
|
java/nio/file/__init__.py
CHANGED
|
@@ -616,8 +616,8 @@ class Path(Watchable):
|
|
|
616
616
|
# type: (Path) -> Path
|
|
617
617
|
pass
|
|
618
618
|
|
|
619
|
-
def resolve(self, other):
|
|
620
|
-
# type: (Union[Path, str, unicode]) -> Path
|
|
619
|
+
def resolve(self, other, *more):
|
|
620
|
+
# type: (Union[Path, str, unicode], *Union[Path, str, unicode]) -> Path # noqa: W505
|
|
621
621
|
pass
|
|
622
622
|
|
|
623
623
|
def resolveSibling(self, other):
|