@sitevision/api 2023.2.2-beta.1 → 2023.2.2-beta.2

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 (125) hide show
  1. package/package.json +1 -1
  2. package/types/java/io/File/index.d.ts +0 -120
  3. package/types/java/io/File/index.js +0 -2
  4. package/types/java/lang/Boolean/index.d.ts +0 -123
  5. package/types/java/lang/Boolean/index.js +1 -8
  6. package/types/java/lang/Class/index.d.ts +2 -93
  7. package/types/java/lang/Class/index.js +0 -1
  8. package/types/java/lang/ClassLoader/index.d.ts +0 -91
  9. package/types/java/lang/ClassLoader/index.js +0 -5
  10. package/types/java/lang/Double/index.d.ts +0 -541
  11. package/types/java/lang/Double/index.js +2 -13
  12. package/types/java/lang/Enum/index.d.ts +0 -23
  13. package/types/java/lang/Enum/index.js +0 -1
  14. package/types/java/lang/Float/index.d.ts +0 -494
  15. package/types/java/lang/Float/index.js +2 -13
  16. package/types/java/lang/Integer/index.d.ts +0 -780
  17. package/types/java/lang/Integer/index.js +2 -29
  18. package/types/java/lang/Long/index.d.ts +0 -788
  19. package/types/java/lang/Long/index.js +2 -28
  20. package/types/java/lang/Package/index.d.ts +0 -28
  21. package/types/java/lang/Package/index.js +0 -2
  22. package/types/java/lang/String/index.d.ts +0 -193
  23. package/types/java/lang/String/index.js +0 -4
  24. package/types/java/lang/reflect/AccessibleObject/index.d.ts +0 -25
  25. package/types/java/math/BigDecimal/index.d.ts +1 -40
  26. package/types/java/math/BigDecimal/index.js +0 -1
  27. package/types/java/math/BigInteger/index.d.ts +0 -25
  28. package/types/java/math/BigInteger/index.js +0 -2
  29. package/types/java/net/InetAddress/index.d.ts +0 -134
  30. package/types/java/net/InetAddress/index.js +1 -6
  31. package/types/java/net/NetworkInterface/index.d.ts +0 -50
  32. package/types/java/net/NetworkInterface/index.js +0 -4
  33. package/types/java/net/URI/index.d.ts +0 -22
  34. package/types/java/net/URI/index.js +0 -1
  35. package/types/java/net/URL/index.d.ts +0 -23
  36. package/types/java/net/URL/index.js +1 -2
  37. package/types/java/net/URLConnection/index.d.ts +0 -125
  38. package/types/java/net/URLConnection/index.js +1 -10
  39. package/types/java/nio/channels/AsynchronousFileChannel/index.d.ts +0 -136
  40. package/types/java/nio/channels/AsynchronousFileChannel/index.js +0 -1
  41. package/types/java/nio/channels/FileChannel/index.d.ts +0 -128
  42. package/types/java/nio/channels/FileChannel/index.js +0 -1
  43. package/types/java/nio/charset/Charset/index.d.ts +1 -58
  44. package/types/java/nio/charset/Charset/index.js +0 -4
  45. package/types/java/nio/file/spi/FileSystemProvider/index.d.ts +0 -12
  46. package/types/java/nio/file/spi/FileSystemProvider/index.js +0 -1
  47. package/types/java/text/DateFormat/index.d.ts +0 -130
  48. package/types/java/text/DateFormat/index.js +0 -5
  49. package/types/java/text/DateFormatSymbols/index.d.ts +0 -45
  50. package/types/java/text/DateFormatSymbols/index.js +0 -2
  51. package/types/java/text/NumberFormat/index.d.ts +0 -123
  52. package/types/java/text/NumberFormat/index.js +0 -6
  53. package/types/java/time/Clock/index.d.ts +1 -162
  54. package/types/java/time/Clock/index.js +0 -8
  55. package/types/java/time/Duration/index.d.ts +3 -193
  56. package/types/java/time/Duration/index.js +0 -10
  57. package/types/java/time/Instant/index.d.ts +0 -101
  58. package/types/java/time/Instant/index.js +0 -5
  59. package/types/java/time/LocalDate/index.d.ts +4 -134
  60. package/types/java/time/LocalDate/index.js +0 -6
  61. package/types/java/time/LocalDateTime/index.d.ts +7 -285
  62. package/types/java/time/LocalDateTime/index.js +0 -6
  63. package/types/java/time/LocalTime/index.d.ts +2 -146
  64. package/types/java/time/LocalTime/index.js +0 -6
  65. package/types/java/time/OffsetDateTime/index.d.ts +7 -177
  66. package/types/java/time/OffsetDateTime/index.js +0 -6
  67. package/types/java/time/OffsetTime/index.d.ts +3 -141
  68. package/types/java/time/OffsetTime/index.js +0 -5
  69. package/types/java/time/Period/index.d.ts +1 -135
  70. package/types/java/time/Period/index.js +0 -8
  71. package/types/java/time/ZoneId/index.d.ts +1 -121
  72. package/types/java/time/ZoneId/index.js +0 -5
  73. package/types/java/time/ZoneOffset/index.d.ts +1 -104
  74. package/types/java/time/ZoneOffset/index.js +0 -6
  75. package/types/java/time/ZonedDateTime/index.d.ts +6 -284
  76. package/types/java/time/ZonedDateTime/index.js +0 -7
  77. package/types/java/time/format/DateTimeFormatter/index.d.ts +2 -215
  78. package/types/java/time/format/DateTimeFormatter/index.js +0 -6
  79. package/types/java/time/format/DecimalStyle/index.d.ts +0 -34
  80. package/types/java/time/format/DecimalStyle/index.js +0 -3
  81. package/types/java/time/temporal/ValueRange/index.d.ts +0 -43
  82. package/types/java/time/temporal/ValueRange/index.js +0 -1
  83. package/types/java/time/zone/ZoneOffsetTransition/index.d.ts +2 -19
  84. package/types/java/time/zone/ZoneOffsetTransition/index.js +0 -1
  85. package/types/java/time/zone/ZoneRules/index.d.ts +2 -28
  86. package/types/java/time/zone/ZoneRules/index.js +0 -1
  87. package/types/java/util/Calendar/index.d.ts +2 -67
  88. package/types/java/util/Calendar/index.js +0 -3
  89. package/types/java/util/Comparator/index.d.ts +16 -16
  90. package/types/java/util/Currency/index.d.ts +0 -38
  91. package/types/java/util/Currency/index.js +0 -2
  92. package/types/java/util/Date/index.d.ts +0 -160
  93. package/types/java/util/Date/index.js +0 -3
  94. package/types/java/util/Locale/index.d.ts +0 -344
  95. package/types/java/util/Locale/index.js +1 -11
  96. package/types/java/util/Optional/index.d.ts +0 -27
  97. package/types/java/util/Optional/index.js +0 -3
  98. package/types/java/util/OptionalDouble/index.d.ts +0 -15
  99. package/types/java/util/OptionalDouble/index.js +0 -2
  100. package/types/java/util/OptionalInt/index.d.ts +0 -15
  101. package/types/java/util/OptionalInt/index.js +0 -2
  102. package/types/java/util/OptionalLong/index.d.ts +0 -15
  103. package/types/java/util/OptionalLong/index.js +0 -2
  104. package/types/java/util/TimeZone/index.d.ts +0 -65
  105. package/types/java/util/TimeZone/index.js +0 -4
  106. package/types/javax/jcr/PropertyType/index.d.ts +2 -18
  107. package/types/javax/jcr/PropertyType/index.js +1 -4
  108. package/types/javax/jcr/version/OnParentVersionAction/index.d.ts +2 -19
  109. package/types/javax/jcr/version/OnParentVersionAction/index.js +1 -4
  110. package/types/java/net/ContentHandler/index.d.ts +0 -70
  111. package/types/java/net/ContentHandler/index.js +0 -10
  112. package/types/java/net/ContentHandlerFactory/index.d.ts +0 -26
  113. package/types/java/net/ContentHandlerFactory/index.js +0 -10
  114. package/types/java/net/FileNameMap/index.d.ts +0 -16
  115. package/types/java/net/FileNameMap/index.js +0 -10
  116. package/types/java/net/URLStreamHandler/index.d.ts +0 -199
  117. package/types/java/net/URLStreamHandler/index.js +0 -19
  118. package/types/java/net/URLStreamHandlerFactory/index.d.ts +0 -24
  119. package/types/java/net/URLStreamHandlerFactory/index.js +0 -10
  120. package/types/java/time/format/FormatStyle/index.d.ts +0 -14
  121. package/types/java/time/format/FormatStyle/index.js +0 -13
  122. package/types/java/util/Locale.Category/index.d.ts +0 -12
  123. package/types/java/util/Locale.Category/index.js +0 -11
  124. package/types/java/util/Locale.FilteringMode/index.d.ts +0 -97
  125. package/types/java/util/Locale.FilteringMode/index.js +0 -14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitevision/api",
3
- "version": "2023.2.2-beta.1",
3
+ "version": "2023.2.2-beta.2",
4
4
  "author": "Sitevision AB",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -748,45 +748,6 @@ export type File = Object &
748
748
  */
749
749
  canExecute(): boolean;
750
750
 
751
- /**
752
- * List the available filesystem roots.
753
- *
754
- * <p> A particular Java platform may support zero or more
755
- * hierarchically-organized file systems. Each file system has a
756
- * {@code root} directory from which all other files in that file system
757
- * can be reached. Windows platforms, for example, have a root directory
758
- * for each active drive; UNIX platforms have a single root directory,
759
- * namely {@code "/"}. The set of available filesystem roots is affected
760
- * by various system-level operations such as the insertion or ejection of
761
- * removable media and the disconnecting or unmounting of physical or
762
- * virtual disk drives.
763
- *
764
- * <p> This method returns an array of {@code File} objects that denote the
765
- * root directories of the available filesystem roots. It is guaranteed
766
- * that the canonical pathname of any file physically present on the local
767
- * machine will begin with one of the roots returned by this method.
768
- *
769
- * <p> The canonical pathname of a file that resides on some other machine
770
- * and is accessed via a remote-filesystem protocol such as SMB or NFS may
771
- * or may not begin with one of the roots returned by this method. If the
772
- * pathname of a remote file is syntactically indistinguishable from the
773
- * pathname of a local file then it will begin with one of the roots
774
- * returned by this method. Thus, for example, {@code File} objects
775
- * denoting the root directories of the mapped network drives of a Windows
776
- * platform will be returned by this method, while {@code File} objects
777
- * containing UNC pathnames will not be returned by this method.
778
- *
779
- * <p> Unlike most methods in this class, this method does not throw
780
- * security exceptions. If a security manager exists and its {@link
781
- * SecurityManager#checkRead(String)} method denies read access to a
782
- * particular root directory, then that directory will not appear in the
783
- * result.
784
- * @return An array of {@code File} objects denoting the available&#xA; filesystem roots, or {@code null} if the set of roots could not&#xA; be determined. The array will be empty if there are no&#xA; filesystem roots.
785
- * @since 1.2
786
- * @see java.nio.file.FileStore
787
- */
788
- listRoots(): File;
789
-
790
751
  /**
791
752
  * Returns the size of the partition <a href="#partName">named</a> by this
792
753
  * abstract pathname.
@@ -835,87 +796,6 @@ export type File = Object &
835
796
  */
836
797
  getUsableSpace(): number;
837
798
 
838
- /**
839
- * <p> Creates a new empty file in the specified directory, using the
840
- * given prefix and suffix strings to generate its name. If this method
841
- * returns successfully then it is guaranteed that:
842
- *
843
- * <ol>
844
- * <li> The file denoted by the returned abstract pathname did not exist
845
- * before this method was invoked, and
846
- * <li> Neither this method nor any of its variants will return the same
847
- * abstract pathname again in the current invocation of the virtual
848
- * machine.
849
- * </ol>
850
- *
851
- * This method provides only part of a temporary-file facility. To arrange
852
- * for a file created by this method to be deleted automatically, use the
853
- * <code>{@link #deleteOnExit}</code> method.
854
- *
855
- * <p> The <code>prefix</code> argument must be at least three characters
856
- * long. It is recommended that the prefix be a short, meaningful string
857
- * such as <code>"hjb"</code> or <code>"mail"</code>. The
858
- * <code>suffix</code> argument may be <code>null</code>, in which case the
859
- * suffix <code>".tmp"</code> will be used.
860
- *
861
- * <p> To create the new file, the prefix and the suffix may first be
862
- * adjusted to fit the limitations of the underlying platform. If the
863
- * prefix is too long then it will be truncated, but its first three
864
- * characters will always be preserved. If the suffix is too long then it
865
- * too will be truncated, but if it begins with a period character
866
- * (<code>'.'</code>) then the period and the first three characters
867
- * following it will always be preserved. Once these adjustments have been
868
- * made the name of the new file will be generated by concatenating the
869
- * prefix, five or more internally-generated characters, and the suffix.
870
- *
871
- * <p> If the <code>directory</code> argument is <code>null</code> then the
872
- * system-dependent default temporary-file directory will be used. The
873
- * default temporary-file directory is specified by the system property
874
- * <code>java.io.tmpdir</code>. On UNIX systems the default value of this
875
- * property is typically <code>"/tmp"</code> or <code>"/var/tmp"</code>; on
876
- * Microsoft Windows systems it is typically <code>"C:\\WINNT\\TEMP"</code>. A different
877
- * value may be given to this system property when the Java virtual machine
878
- * is invoked, but programmatic changes to this property are not guaranteed
879
- * to have any effect upon the temporary directory used by this method.
880
- * @param prefix The prefix string to be used in generating the file's&#xA; name; must be at least three characters long
881
- * @param suffix The suffix string to be used in generating the file's&#xA; name; may be <code>null</code>, in which case the&#xA; suffix <code>".tmp"</code> will be used
882
- * @param directory The directory in which the file is to be created, or&#xA; <code>null</code> if the default temporary-file&#xA; directory is to be used
883
- * @return An abstract pathname denoting a newly-created empty file
884
- * @throws IllegalArgumentException&#xA; If the <code>prefix</code> argument contains fewer than three&#xA; characters
885
- * @throws IOException If a file could not be created
886
- * @throws SecurityException&#xA; If a security manager exists and its <code>{@link&#xA; java.lang.SecurityManager#checkWrite(java.lang.String)}</code>&#xA; method does not allow a file to be created
887
- * @since 1.2
888
- */
889
- createTempFile(
890
- prefix: String | string,
891
- suffix: String | string,
892
- directory: File
893
- ): File;
894
-
895
- /**
896
- * Creates an empty file in the default temporary-file directory, using
897
- * the given prefix and suffix to generate its name. Invoking this method
898
- * is equivalent to invoking <code>{@link #createTempFile(java.lang.String,
899
- * java.lang.String, java.io.File)
900
- * createTempFile(prefix,&nbsp;suffix,&nbsp;null)}</code>.
901
- *
902
- * <p> The {@link
903
- * java.nio.file.Files#createTempFile(String,String,java.nio.file.attribute.FileAttribute[])
904
- * Files.createTempFile} method provides an alternative method to create an
905
- * empty file in the temporary-file directory. Files created by that method
906
- * may have more restrictive access permissions to files created by this
907
- * method and so may be more suited to security-sensitive applications.
908
- * @param prefix The prefix string to be used in generating the file's&#xA; name; must be at least three characters long
909
- * @param suffix The suffix string to be used in generating the file's&#xA; name; may be <code>null</code>, in which case the&#xA; suffix <code>".tmp"</code> will be used
910
- * @return An abstract pathname denoting a newly-created empty file
911
- * @throws IllegalArgumentException&#xA; If the <code>prefix</code> argument contains fewer than three&#xA; characters
912
- * @throws IOException If a file could not be created
913
- * @throws SecurityException&#xA; If a security manager exists and its <code>{@link&#xA; java.lang.SecurityManager#checkWrite(java.lang.String)}</code>&#xA; method does not allow a file to be created
914
- * @since 1.2
915
- * @see java.nio.file.Files#createTempDirectory(String,FileAttribute[])
916
- */
917
- createTempFile(prefix: String | string, suffix: String | string): File;
918
-
919
799
  /**
920
800
  * Compares two abstract pathnames lexicographically. The ordering
921
801
  * defined by this method depends upon the underlying system. On UNIX
@@ -38,11 +38,9 @@ var _default = {
38
38
  setReadable: function setReadable() {},
39
39
  setExecutable: function setExecutable() {},
40
40
  canExecute: function canExecute() {},
41
- listRoots: function listRoots() {},
42
41
  getTotalSpace: function getTotalSpace() {},
43
42
  getFreeSpace: function getFreeSpace() {},
44
43
  getUsableSpace: function getUsableSpace() {},
45
- createTempFile: function createTempFile() {},
46
44
  compareTo: function compareTo() {},
47
45
  equals: function equals() {},
48
46
  hashCode: function hashCode() {},
@@ -22,19 +22,6 @@ import type { Class } from "../Class";
22
22
  export type Boolean = Object &
23
23
  Serializable &
24
24
  Comparable & {
25
- /**
26
- * Parses the string argument as a boolean. The {@code boolean}
27
- * returned represents the value {@code true} if the string argument
28
- * is not {@code null} and is equal, ignoring case, to the string
29
- * {@code "true"}. <p>
30
- * Example: {@code Boolean.parseBoolean("True")} returns {@code true}.<br>
31
- * Example: {@code Boolean.parseBoolean("yes")} returns {@code false}.
32
- * @param s the {@code String} containing the boolean&#xA; representation to be parsed
33
- * @return the boolean represented by the string argument
34
- * @since 1.5
35
- */
36
- parseBoolean(s: String | string): boolean;
37
-
38
25
  /**
39
26
  * Returns the value of this {@code Boolean} object as a boolean
40
27
  * primitive.
@@ -42,42 +29,6 @@ export type Boolean = Object &
42
29
  */
43
30
  booleanValue(): boolean;
44
31
 
45
- /**
46
- * Returns a {@code Boolean} instance representing the specified
47
- * {@code boolean} value. If the specified {@code boolean} value
48
- * is {@code true}, this method returns {@code Boolean.TRUE};
49
- * if it is {@code false}, this method returns {@code Boolean.FALSE}.
50
- * If a new {@code Boolean} instance is not required, this method
51
- * should generally be used in preference to the constructor
52
- * {@link #Boolean(boolean)}, as this method is likely to yield
53
- * significantly better space and time performance.
54
- * @param b a boolean value.
55
- * @return a {@code Boolean} instance representing {@code b}.
56
- * @since 1.4
57
- */
58
- valueOf(b: boolean): boolean;
59
-
60
- /**
61
- * Returns a {@code Boolean} with a value represented by the
62
- * specified string. The {@code Boolean} returned represents a
63
- * true value if the string argument is not {@code null}
64
- * and is equal, ignoring case, to the string {@code "true"}.
65
- * @param s a string.
66
- * @return the {@code Boolean} value represented by the string.
67
- */
68
- valueOf(s: String | string): boolean;
69
-
70
- /**
71
- * Returns a {@code String} object representing the specified
72
- * boolean. If the specified boolean is {@code true}, then
73
- * the string {@code "true"} will be returned, otherwise the
74
- * string {@code "false"} will be returned.
75
- * @param b the boolean to be converted
76
- * @return the string representation of the specified {@code boolean}
77
- * @since 1.4
78
- */
79
- toString(b: boolean): string;
80
-
81
32
  /**
82
33
  * Returns a {@code String} object representing this Boolean's
83
34
  * value. If this object represents the value {@code true},
@@ -93,15 +44,6 @@ export type Boolean = Object &
93
44
  */
94
45
  hashCode(): number;
95
46
 
96
- /**
97
- * Returns a hash code for a {@code boolean} value; compatible with
98
- * {@code Boolean.hashCode()}.
99
- * @param value the value to hash
100
- * @return a hash code value for a {@code boolean} value.
101
- * @since 1.8
102
- */
103
- hashCode(value: boolean): number;
104
-
105
47
  /**
106
48
  * Returns {@code true} if and only if the argument is not
107
49
  * {@code null} and is a {@code Boolean} object that
@@ -111,25 +53,6 @@ export type Boolean = Object &
111
53
  */
112
54
  equals(obj: unknown): boolean;
113
55
 
114
- /**
115
- * Returns {@code true} if and only if the system property
116
- * named by the argument exists and is equal to the string
117
- * {@code "true"}. (Beginning with version 1.0.2 of the
118
- * Java<small><sup>TM</sup></small> platform, the test of
119
- * this string is case insensitive.) A system property is accessible
120
- * through {@code getProperty}, a method defined by the
121
- * {@code System} class.
122
- * <p>
123
- * If there is no property with the specified name, or if the specified
124
- * name is empty or null, then {@code false} is returned.
125
- * @param name the system property name.
126
- * @return the {@code boolean} value of the system property.
127
- * @throws SecurityException for the same reasons as&#xA; {@link System#getProperty(String) System.getProperty}
128
- * @see java.lang.System#getProperty(java.lang.String)
129
- * @see java.lang.System#getProperty(java.lang.String, java.lang.String)
130
- */
131
- getBoolean(name: String | string): boolean;
132
-
133
56
  /**
134
57
  * Compares this {@code Boolean} instance with another.
135
58
  * @param b the {@code Boolean} instance to be compared
@@ -140,52 +63,6 @@ export type Boolean = Object &
140
63
  */
141
64
  compareTo(b: boolean): number;
142
65
 
143
- /**
144
- * Compares two {@code boolean} values.
145
- * The value returned is identical to what would be returned by:
146
- * <pre>
147
- * Boolean.valueOf(x).compareTo(Boolean.valueOf(y))
148
- * </pre>
149
- * @param x the first {@code boolean} to compare
150
- * @param y the second {@code boolean} to compare
151
- * @return the value {@code 0} if {@code x == y};&#xA; a value less than {@code 0} if {@code !x && y}; and&#xA; a value greater than {@code 0} if {@code x && !y}
152
- * @since 1.7
153
- */
154
- compare(x: boolean, y: boolean): number;
155
-
156
- /**
157
- * Returns the result of applying the logical AND operator to the
158
- * specified {@code boolean} operands.
159
- * @param a the first operand
160
- * @param b the second operand
161
- * @return the logical AND of {@code a} and {@code b}
162
- * @see java.util.function.BinaryOperator
163
- * @since 1.8
164
- */
165
- logicalAnd(a: boolean, b: boolean): boolean;
166
-
167
- /**
168
- * Returns the result of applying the logical OR operator to the
169
- * specified {@code boolean} operands.
170
- * @param a the first operand
171
- * @param b the second operand
172
- * @return the logical OR of {@code a} and {@code b}
173
- * @see java.util.function.BinaryOperator
174
- * @since 1.8
175
- */
176
- logicalOr(a: boolean, b: boolean): boolean;
177
-
178
- /**
179
- * Returns the result of applying the logical XOR operator to the
180
- * specified {@code boolean} operands.
181
- * @param a the first operand
182
- * @param b the second operand
183
- * @return the logical XOR of {@code a} and {@code b}
184
- * @see java.util.function.BinaryOperator
185
- * @since 1.8
186
- */
187
- logicalXor(a: boolean, b: boolean): boolean;
188
-
189
66
  /**
190
67
  * The {@code Boolean} object corresponding to the primitive
191
68
  * value {@code true}.
@@ -5,17 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- parseBoolean: function parseBoolean() {},
9
8
  booleanValue: function booleanValue() {},
10
- valueOf: function valueOf() {},
11
9
  toString: function toString() {},
12
10
  hashCode: function hashCode() {},
13
11
  equals: function equals() {},
14
- getBoolean: function getBoolean() {},
15
- compareTo: function compareTo() {},
16
- compare: function compare() {},
17
- logicalAnd: function logicalAnd() {},
18
- logicalOr: function logicalOr() {},
19
- logicalXor: function logicalXor() {}
12
+ compareTo: function compareTo() {}
20
13
  };
21
14
  exports["default"] = _default;
@@ -1,8 +1,8 @@
1
1
  import type { String } from "../String";
2
2
 
3
- import type { ClassLoader } from "../ClassLoader";
4
-
5
3
  import type { Object } from "../Object";
4
+
5
+ import type { ClassLoader } from "../ClassLoader";
6
6
  import type { TypeVariable } from "../reflect/TypeVariable";
7
7
  import type { Type } from "../reflect/Type";
8
8
  import type { Package } from "../Package";
@@ -102,97 +102,6 @@ export type Class = Object &
102
102
  */
103
103
  toGenericString(): string;
104
104
 
105
- /**
106
- * Returns the {@code Class} object associated with the class or
107
- * interface with the given string name. Invoking this method is
108
- * equivalent to:
109
- *
110
- * <blockquote>
111
- * {@code Class.forName(className, true, currentLoader)}
112
- * </blockquote>
113
- *
114
- * where {@code currentLoader} denotes the defining class loader of
115
- * the current class.
116
- *
117
- * <p> For example, the following code fragment returns the
118
- * runtime {@code Class} descriptor for the class named
119
- * {@code java.lang.Thread}:
120
- *
121
- * <blockquote>
122
- * {@code Class t = Class.forName("java.lang.Thread")}
123
- * </blockquote>
124
- * <p>
125
- * A call to {@code forName("X")} causes the class named
126
- * {@code X} to be initialized.
127
- * @param className the fully qualified name of the desired class.
128
- * @return the {@code Class} object for the class with the&#xA; specified name.
129
- * @throws LinkageError if the linkage fails
130
- * @throws ExceptionInInitializerError if the initialization provoked&#xA; by this method fails
131
- * @throws ClassNotFoundException if the class cannot be located
132
- */
133
- forName(className: String | string): Class;
134
-
135
- /**
136
- * Returns the {@code Class} object associated with the class or
137
- * interface with the given string name, using the given class loader.
138
- * Given the fully qualified name for a class or interface (in the same
139
- * format returned by {@code getName}) this method attempts to
140
- * locate, load, and link the class or interface. The specified class
141
- * loader is used to load the class or interface. If the parameter
142
- * {@code loader} is null, the class is loaded through the bootstrap
143
- * class loader. The class is initialized only if the
144
- * {@code initialize} parameter is {@code true} and if it has
145
- * not been initialized earlier.
146
- *
147
- * <p> If {@code name} denotes a primitive type or void, an attempt
148
- * will be made to locate a user-defined class in the unnamed package whose
149
- * name is {@code name}. Therefore, this method cannot be used to
150
- * obtain any of the {@code Class} objects representing primitive
151
- * types or void.
152
- *
153
- * <p> If {@code name} denotes an array class, the component type of
154
- * the array class is loaded but not initialized.
155
- *
156
- * <p> For example, in an instance method the expression:
157
- *
158
- * <blockquote>
159
- * {@code Class.forName("Foo")}
160
- * </blockquote>
161
- *
162
- * is equivalent to:
163
- *
164
- * <blockquote>
165
- * {@code Class.forName("Foo", true, this.getClass().getClassLoader())}
166
- * </blockquote>
167
- *
168
- * Note that this method throws errors related to loading, linking or
169
- * initializing as specified in Sections 12.2, 12.3 and 12.4 of <em>The
170
- * Java Language Specification</em>.
171
- * Note that this method does not check whether the requested class
172
- * is accessible to its caller.
173
- *
174
- * <p> If the {@code loader} is {@code null}, and a security
175
- * manager is present, and the caller's class loader is not null, then this
176
- * method calls the security manager's {@code checkPermission} method
177
- * with a {@code RuntimePermission("getClassLoader")} permission to
178
- * ensure it's ok to access the bootstrap class loader.
179
- * @param name fully qualified name of the desired class
180
- * @param initialize if {@code true} the class will be initialized.&#xA; See Section 12.4 of <em>The Java Language Specification</em>.
181
- * @param loader class loader from which the class must be loaded
182
- * @return class object representing the desired class
183
- * @throws LinkageError if the linkage fails
184
- * @throws ExceptionInInitializerError if the initialization provoked&#xA; by this method fails
185
- * @throws ClassNotFoundException if the class cannot be located by&#xA; the specified class loader
186
- * @see java.lang.Class#forName(String)
187
- * @see java.lang.ClassLoader
188
- * @since 1.2
189
- */
190
- forName(
191
- name: String | string,
192
- initialize: boolean,
193
- loader: ClassLoader
194
- ): Class;
195
-
196
105
  /**
197
106
  * Creates a new instance of the class represented by this {@code Class}
198
107
  * object. The class is instantiated as if by a {@code new}
@@ -7,7 +7,6 @@ exports["default"] = void 0;
7
7
  var _default = {
8
8
  toString: function toString() {},
9
9
  toGenericString: function toGenericString() {},
10
- forName: function forName() {},
11
10
  newInstance: function newInstance() {},
12
11
  isInstance: function isInstance() {},
13
12
  isAssignableFrom: function isAssignableFrom() {},
@@ -457,47 +457,6 @@ export type ClassLoader = Object & {
457
457
  */
458
458
  findResources(name: String | string): Enumeration;
459
459
 
460
- /**
461
- * Registers the caller as parallel capable.
462
- * The registration succeeds if and only if all of the following
463
- * conditions are met:
464
- * <ol>
465
- * <li> no instance of the caller has been created</li>
466
- * <li> all of the super classes (except class Object) of the caller are
467
- * registered as parallel capable</li>
468
- * </ol>
469
- * <p>Note that once a class loader is registered as parallel capable, there
470
- * is no way to change it back.</p>
471
- * @return true if the caller is successfully registered as&#xA; parallel capable and false if otherwise.
472
- * @since 1.7
473
- */
474
- registerAsParallelCapable(): boolean;
475
-
476
- /**
477
- * Find a resource of the specified name from the search path used to load
478
- * classes. This method locates the resource through the system class
479
- * loader (see {@link #getSystemClassLoader()}).
480
- * @param name&#xA; The resource name
481
- * @return A {@link java.net.URL <tt>URL</tt>} object for reading the&#xA; resource, or <tt>null</tt> if the resource could not be found
482
- * @since 1.1
483
- */
484
- getSystemResource(name: String | string): URL;
485
-
486
- /**
487
- * Finds all resources of the specified name from the search path used to
488
- * load classes. The resources thus found are returned as an
489
- * {@link java.util.Enumeration <tt>Enumeration</tt>} of {@link
490
- * java.net.URL <tt>URL</tt>} objects.
491
- *
492
- * <p> The search order is described in the documentation for {@link
493
- * #getSystemResource(String)}. </p>
494
- * @param name&#xA; The resource name
495
- * @return An enumeration of resource {@link java.net.URL <tt>URL</tt>}&#xA; objects
496
- * @throws IOException&#xA; If I/O errors occur
497
- * @since 1.2
498
- */
499
- getSystemResources(name: String | string): Enumeration;
500
-
501
460
  /**
502
461
  * Returns an input stream for reading the specified resource.
503
462
  *
@@ -509,16 +468,6 @@ export type ClassLoader = Object & {
509
468
  */
510
469
  getResourceAsStream(name: String | string): InputStream;
511
470
 
512
- /**
513
- * Open for reading, a resource of the specified name from the search path
514
- * used to load classes. This method locates the resource through the
515
- * system class loader (see {@link #getSystemClassLoader()}).
516
- * @param name&#xA; The resource name
517
- * @return An input stream for reading the resource, or <tt>null</tt>&#xA; if the resource could not be found
518
- * @since 1.1
519
- */
520
- getSystemResourceAsStream(name: String | string): InputStream;
521
-
522
471
  /**
523
472
  * Returns the parent class loader for delegation. Some implementations may
524
473
  * use <tt>null</tt> to represent the bootstrap class loader. This method
@@ -540,46 +489,6 @@ export type ClassLoader = Object & {
540
489
  */
541
490
  getParent(): ClassLoader;
542
491
 
543
- /**
544
- * Returns the system class loader for delegation. This is the default
545
- * delegation parent for new <tt>ClassLoader</tt> instances, and is
546
- * typically the class loader used to start the application.
547
- *
548
- * <p> This method is first invoked early in the runtime's startup
549
- * sequence, at which point it creates the system class loader and sets it
550
- * as the context class loader of the invoking <tt>Thread</tt>.
551
- *
552
- * <p> The default system class loader is an implementation-dependent
553
- * instance of this class.
554
- *
555
- * <p> If the system property "<tt>java.system.class.loader</tt>" is defined
556
- * when this method is first invoked then the value of that property is
557
- * taken to be the name of a class that will be returned as the system
558
- * class loader. The class is loaded using the default system class loader
559
- * and must define a public constructor that takes a single parameter of
560
- * type <tt>ClassLoader</tt> which is used as the delegation parent. An
561
- * instance is then created using this constructor with the default system
562
- * class loader as the parameter. The resulting class loader is defined
563
- * to be the system class loader.
564
- *
565
- * <p> If a security manager is present, and the invoker's class loader is
566
- * not <tt>null</tt> and the invoker's class loader is not the same as or
567
- * an ancestor of the system class loader, then this method invokes the
568
- * security manager's {@link
569
- * SecurityManager#checkPermission(java.security.Permission)
570
- * <tt>checkPermission</tt>} method with a {@link
571
- * RuntimePermission#RuntimePermission(String)
572
- * <tt>RuntimePermission("getClassLoader")</tt>} permission to verify
573
- * access to the system class loader. If not, a
574
- * <tt>SecurityException</tt> will be thrown. </p>
575
- * @return The system <tt>ClassLoader</tt> for delegation, or&#xA; <tt>null</tt> if none
576
- * @throws SecurityException&#xA; If a security manager exists and its <tt>checkPermission</tt>&#xA; method doesn't allow access to the system class loader.
577
- * @throws IllegalStateException&#xA; If invoked recursively during the construction of the class&#xA; loader specified by the "<tt>java.system.class.loader</tt>"&#xA; property.
578
- * @throws Error&#xA; If the system property "<tt>java.system.class.loader</tt>"&#xA; is defined but the named class could not be loaded, the&#xA; provider class does not define the required constructor, or an&#xA; exception is thrown by that constructor when it is invoked. The&#xA; underlying cause of the error can be retrieved via the&#xA; {@link Throwable#getCause()} method.
579
- * @revised 1.4
580
- */
581
- getSystemClassLoader(): ClassLoader;
582
-
583
492
  /**
584
493
  * Defines a package by name in this <tt>ClassLoader</tt>. This allows
585
494
  * class loaders to define the packages for their classes. Packages must
@@ -17,13 +17,8 @@ var _default = {
17
17
  getResources: function getResources() {},
18
18
  findResource: function findResource() {},
19
19
  findResources: function findResources() {},
20
- registerAsParallelCapable: function registerAsParallelCapable() {},
21
- getSystemResource: function getSystemResource() {},
22
- getSystemResources: function getSystemResources() {},
23
20
  getResourceAsStream: function getResourceAsStream() {},
24
- getSystemResourceAsStream: function getSystemResourceAsStream() {},
25
21
  getParent: function getParent() {},
26
- getSystemClassLoader: function getSystemClassLoader() {},
27
22
  definePackage: function definePackage() {},
28
23
  getPackage: function getPackage() {},
29
24
  getPackages: function getPackages() {},