@alloy-js/java 0.25.0-dev.1 → 0.26.0

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 (279) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/dev/src/builtins/index.js.map +1 -1
  3. package/dist/dev/src/builtins/util.js.map +1 -1
  4. package/dist/dev/src/components/Annotation.js +4 -4
  5. package/dist/dev/src/components/Annotation.js.map +1 -1
  6. package/dist/dev/src/components/ArgumentList.js +3 -3
  7. package/dist/dev/src/components/ArgumentList.js.map +1 -1
  8. package/dist/dev/src/components/Class.js +10 -10
  9. package/dist/dev/src/components/Class.js.map +1 -1
  10. package/dist/dev/src/components/Constructor.js +5 -5
  11. package/dist/dev/src/components/Constructor.js.map +1 -1
  12. package/dist/dev/src/components/Declaration.js +1 -1
  13. package/dist/dev/src/components/Declaration.js.map +1 -1
  14. package/dist/dev/src/components/Enum.js +9 -9
  15. package/dist/dev/src/components/Enum.js.map +1 -1
  16. package/dist/dev/src/components/ExtendsClause.js +4 -4
  17. package/dist/dev/src/components/ExtendsClause.js.map +1 -1
  18. package/dist/dev/src/components/ImplementsClause.js +4 -4
  19. package/dist/dev/src/components/ImplementsClause.js.map +1 -1
  20. package/dist/dev/src/components/ImportStatement.js.map +1 -1
  21. package/dist/dev/src/components/Interface.js +8 -8
  22. package/dist/dev/src/components/Interface.js.map +1 -1
  23. package/dist/dev/src/components/LexicalScope.js +1 -1
  24. package/dist/dev/src/components/LexicalScope.js.map +1 -1
  25. package/dist/dev/src/components/MavenProject.js +24 -24
  26. package/dist/dev/src/components/MavenProject.js.map +1 -1
  27. package/dist/dev/src/components/Method.js +4 -4
  28. package/dist/dev/src/components/Method.js.map +1 -1
  29. package/dist/dev/src/components/Modifiers.js.map +1 -1
  30. package/dist/dev/src/components/Name.js.map +1 -1
  31. package/dist/dev/src/components/NamedArgumentList.js.map +1 -1
  32. package/dist/dev/src/components/ObjectDeclaration.js +2 -2
  33. package/dist/dev/src/components/ObjectDeclaration.js.map +1 -1
  34. package/dist/dev/src/components/PackageDirectory.js +5 -5
  35. package/dist/dev/src/components/PackageDirectory.js.map +1 -1
  36. package/dist/dev/src/components/Parameters.js.map +1 -1
  37. package/dist/dev/src/components/ProjectDirectory.js +1 -1
  38. package/dist/dev/src/components/ProjectDirectory.js.map +1 -1
  39. package/dist/dev/src/components/Reference.js.map +1 -1
  40. package/dist/dev/src/components/SourceFile.js +9 -9
  41. package/dist/dev/src/components/SourceFile.js.map +1 -1
  42. package/dist/dev/src/components/TypeArguments.js +11 -11
  43. package/dist/dev/src/components/TypeArguments.js.map +1 -1
  44. package/dist/dev/src/components/TypeParameters.js +5 -5
  45. package/dist/dev/src/components/TypeParameters.js.map +1 -1
  46. package/dist/dev/src/components/Value.js.map +1 -1
  47. package/dist/dev/src/components/Variable.js +1 -1
  48. package/dist/dev/src/components/Variable.js.map +1 -1
  49. package/dist/dev/src/components/index.js.map +1 -1
  50. package/dist/dev/src/components/stc/index.js.map +1 -1
  51. package/dist/dev/src/create-library.js.map +1 -1
  52. package/dist/dev/src/index.js.map +1 -1
  53. package/dist/dev/src/name-policy.js.map +1 -1
  54. package/dist/dev/src/symbols/index.js +0 -1
  55. package/dist/dev/src/symbols/index.js.map +1 -1
  56. package/dist/dev/src/symbols/java-lexical-scope.js.map +1 -1
  57. package/dist/dev/src/symbols/java-output-symbol.js.map +1 -1
  58. package/dist/dev/src/symbols/java-package-scope.js.map +1 -1
  59. package/dist/dev/src/symbols/java-project-scope.js.map +1 -1
  60. package/dist/dev/src/symbols/reference.js.map +1 -1
  61. package/dist/dev/src/symbols/scopes.js.map +1 -1
  62. package/dist/dev/src/utils.js.map +1 -1
  63. package/dist/dev/test/annotation.test.js +13 -13
  64. package/dist/dev/test/annotation.test.js.map +1 -1
  65. package/dist/dev/test/class.test.js +29 -29
  66. package/dist/dev/test/class.test.js.map +1 -1
  67. package/dist/dev/test/constructor.test.js +16 -16
  68. package/dist/dev/test/constructor.test.js.map +1 -1
  69. package/dist/dev/test/enum.test.js +28 -28
  70. package/dist/dev/test/enum.test.js.map +1 -1
  71. package/dist/dev/test/externals.test.js +6 -6
  72. package/dist/dev/test/externals.test.js.map +1 -1
  73. package/dist/dev/test/interface.test.js +22 -22
  74. package/dist/dev/test/interface.test.js.map +1 -1
  75. package/dist/dev/test/maven.test.js +4 -4
  76. package/dist/dev/test/maven.test.js.map +1 -1
  77. package/dist/dev/test/method.test.js +40 -40
  78. package/dist/dev/test/method.test.js.map +1 -1
  79. package/dist/dev/test/package.test.js +4 -4
  80. package/dist/dev/test/package.test.js.map +1 -1
  81. package/dist/dev/test/reference.test.js +21 -21
  82. package/dist/dev/test/reference.test.js.map +1 -1
  83. package/dist/dev/test/type-arguments.test.js +21 -21
  84. package/dist/dev/test/type-arguments.test.js.map +1 -1
  85. package/dist/dev/test/utils.js +3 -3
  86. package/dist/dev/test/utils.js.map +1 -1
  87. package/dist/dev/test/values.test.js +5 -5
  88. package/dist/dev/test/values.test.js.map +1 -1
  89. package/dist/dev/test/variables.test.js +32 -32
  90. package/dist/dev/test/variables.test.js.map +1 -1
  91. package/dist/dev/test/vitest.setup.js.map +1 -1
  92. package/dist/src/builtins/index.js.map +1 -1
  93. package/dist/src/builtins/util.d.ts.map +1 -1
  94. package/dist/src/builtins/util.js.map +1 -1
  95. package/dist/src/components/Annotation.d.ts +1 -1
  96. package/dist/src/components/Annotation.d.ts.map +1 -1
  97. package/dist/src/components/Annotation.js.map +1 -1
  98. package/dist/src/components/ArgumentList.d.ts +1 -1
  99. package/dist/src/components/ArgumentList.d.ts.map +1 -1
  100. package/dist/src/components/ArgumentList.js.map +1 -1
  101. package/dist/src/components/Class.d.ts +4 -4
  102. package/dist/src/components/Class.d.ts.map +1 -1
  103. package/dist/src/components/Class.js.map +1 -1
  104. package/dist/src/components/Constructor.d.ts +2 -2
  105. package/dist/src/components/Constructor.d.ts.map +1 -1
  106. package/dist/src/components/Constructor.js.map +1 -1
  107. package/dist/src/components/Declaration.d.ts +2 -2
  108. package/dist/src/components/Declaration.d.ts.map +1 -1
  109. package/dist/src/components/Declaration.js.map +1 -1
  110. package/dist/src/components/Enum.d.ts +3 -3
  111. package/dist/src/components/Enum.d.ts.map +1 -1
  112. package/dist/src/components/Enum.js.map +1 -1
  113. package/dist/src/components/ExtendsClause.d.ts +1 -1
  114. package/dist/src/components/ExtendsClause.d.ts.map +1 -1
  115. package/dist/src/components/ExtendsClause.js.map +1 -1
  116. package/dist/src/components/ImplementsClause.d.ts +1 -1
  117. package/dist/src/components/ImplementsClause.d.ts.map +1 -1
  118. package/dist/src/components/ImplementsClause.js.map +1 -1
  119. package/dist/src/components/ImportStatement.js.map +1 -1
  120. package/dist/src/components/Interface.d.ts +4 -4
  121. package/dist/src/components/Interface.d.ts.map +1 -1
  122. package/dist/src/components/Interface.js.map +1 -1
  123. package/dist/src/components/LexicalScope.d.ts +1 -1
  124. package/dist/src/components/LexicalScope.d.ts.map +1 -1
  125. package/dist/src/components/LexicalScope.js.map +1 -1
  126. package/dist/src/components/MavenProject.d.ts +2 -2
  127. package/dist/src/components/MavenProject.d.ts.map +1 -1
  128. package/dist/src/components/MavenProject.js.map +1 -1
  129. package/dist/src/components/Method.d.ts +3 -3
  130. package/dist/src/components/Method.d.ts.map +1 -1
  131. package/dist/src/components/Method.js.map +1 -1
  132. package/dist/src/components/Modifiers.js.map +1 -1
  133. package/dist/src/components/Name.js.map +1 -1
  134. package/dist/src/components/NamedArgumentList.d.ts +1 -1
  135. package/dist/src/components/NamedArgumentList.d.ts.map +1 -1
  136. package/dist/src/components/NamedArgumentList.js.map +1 -1
  137. package/dist/src/components/ObjectDeclaration.d.ts +3 -3
  138. package/dist/src/components/ObjectDeclaration.d.ts.map +1 -1
  139. package/dist/src/components/ObjectDeclaration.js.map +1 -1
  140. package/dist/src/components/PackageDirectory.d.ts +1 -1
  141. package/dist/src/components/PackageDirectory.d.ts.map +1 -1
  142. package/dist/src/components/PackageDirectory.js.map +1 -1
  143. package/dist/src/components/Parameters.d.ts +2 -2
  144. package/dist/src/components/Parameters.d.ts.map +1 -1
  145. package/dist/src/components/Parameters.js.map +1 -1
  146. package/dist/src/components/ProjectDirectory.d.ts +3 -2
  147. package/dist/src/components/ProjectDirectory.d.ts.map +1 -1
  148. package/dist/src/components/ProjectDirectory.js.map +1 -1
  149. package/dist/src/components/Reference.d.ts +1 -1
  150. package/dist/src/components/Reference.d.ts.map +1 -1
  151. package/dist/src/components/Reference.js.map +1 -1
  152. package/dist/src/components/SourceFile.d.ts +2 -2
  153. package/dist/src/components/SourceFile.d.ts.map +1 -1
  154. package/dist/src/components/SourceFile.js.map +1 -1
  155. package/dist/src/components/TypeArguments.d.ts +1 -1
  156. package/dist/src/components/TypeArguments.d.ts.map +1 -1
  157. package/dist/src/components/TypeArguments.js.map +1 -1
  158. package/dist/src/components/TypeParameters.d.ts +1 -1
  159. package/dist/src/components/TypeParameters.d.ts.map +1 -1
  160. package/dist/src/components/TypeParameters.js.map +1 -1
  161. package/dist/src/components/Value.js.map +1 -1
  162. package/dist/src/components/Variable.d.ts +2 -2
  163. package/dist/src/components/Variable.d.ts.map +1 -1
  164. package/dist/src/components/Variable.js.map +1 -1
  165. package/dist/src/components/index.js.map +1 -1
  166. package/dist/src/components/stc/index.d.ts.map +1 -1
  167. package/dist/src/components/stc/index.js.map +1 -1
  168. package/dist/src/create-library.d.ts +1 -1
  169. package/dist/src/create-library.d.ts.map +1 -1
  170. package/dist/src/create-library.js.map +1 -1
  171. package/dist/src/index.js.map +1 -1
  172. package/dist/src/name-policy.d.ts +1 -1
  173. package/dist/src/name-policy.d.ts.map +1 -1
  174. package/dist/src/name-policy.js.map +1 -1
  175. package/dist/src/symbols/index.d.ts +1 -1
  176. package/dist/src/symbols/index.d.ts.map +1 -1
  177. package/dist/src/symbols/index.js +0 -1
  178. package/dist/src/symbols/index.js.map +1 -1
  179. package/dist/src/symbols/java-lexical-scope.js.map +1 -1
  180. package/dist/src/symbols/java-output-symbol.d.ts +2 -1
  181. package/dist/src/symbols/java-output-symbol.d.ts.map +1 -1
  182. package/dist/src/symbols/java-output-symbol.js.map +1 -1
  183. package/dist/src/symbols/java-package-scope.d.ts.map +1 -1
  184. package/dist/src/symbols/java-package-scope.js.map +1 -1
  185. package/dist/src/symbols/java-project-scope.d.ts +2 -1
  186. package/dist/src/symbols/java-project-scope.d.ts.map +1 -1
  187. package/dist/src/symbols/java-project-scope.js.map +1 -1
  188. package/dist/src/symbols/reference.d.ts +1 -1
  189. package/dist/src/symbols/reference.d.ts.map +1 -1
  190. package/dist/src/symbols/reference.js.map +1 -1
  191. package/dist/src/symbols/scopes.d.ts +2 -2
  192. package/dist/src/symbols/scopes.d.ts.map +1 -1
  193. package/dist/src/symbols/scopes.js.map +1 -1
  194. package/dist/src/utils.d.ts.map +1 -1
  195. package/dist/src/utils.js.map +1 -1
  196. package/dist/test/annotation.test.js.map +1 -1
  197. package/dist/test/class.test.js.map +1 -1
  198. package/dist/test/constructor.test.js.map +1 -1
  199. package/dist/test/enum.test.js.map +1 -1
  200. package/dist/test/externals.test.js.map +1 -1
  201. package/dist/test/interface.test.js.map +1 -1
  202. package/dist/test/maven.test.js.map +1 -1
  203. package/dist/test/method.test.js.map +1 -1
  204. package/dist/test/package.test.js.map +1 -1
  205. package/dist/test/reference.test.js.map +1 -1
  206. package/dist/test/type-arguments.test.js.map +1 -1
  207. package/dist/test/utils.d.ts +1 -1
  208. package/dist/test/utils.d.ts.map +1 -1
  209. package/dist/test/utils.js.map +1 -1
  210. package/dist/test/values.test.js.map +1 -1
  211. package/dist/test/variables.test.js.map +1 -1
  212. package/dist/test/vitest.setup.js.map +1 -1
  213. package/dist/tsconfig.tsbuildinfo +1 -1
  214. package/docs/api/components/ArgumentList.md +4 -4
  215. package/docs/api/components/Class.md +4 -4
  216. package/docs/api/components/Constructor.md +1 -1
  217. package/docs/api/components/Declaration.md +6 -6
  218. package/docs/api/components/Enum.md +18 -18
  219. package/docs/api/components/EnumMember.md +16 -16
  220. package/docs/api/components/Interface.md +3 -3
  221. package/docs/api/components/Method.md +3 -3
  222. package/docs/api/components/ObjectDeclaration.md +19 -19
  223. package/docs/api/components/PackageDirectory.md +4 -4
  224. package/docs/api/components/ProjectDirectory.md +6 -6
  225. package/docs/api/components/SourceFile.md +4 -4
  226. package/docs/api/components/TypeArguments.md +3 -3
  227. package/docs/api/components/Variable.md +17 -17
  228. package/docs/api/types/CommonDeclarationProps.md +5 -5
  229. package/docs/api/types/JavaProjectScopeOptions.md +4 -4
  230. package/package.json +8 -8
  231. package/src/builtins/util.ts +1 -0
  232. package/src/components/Annotation.tsx +2 -1
  233. package/src/components/ArgumentList.tsx +2 -1
  234. package/src/components/Class.tsx +9 -4
  235. package/src/components/Constructor.tsx +4 -2
  236. package/src/components/Declaration.tsx +5 -8
  237. package/src/components/Enum.tsx +7 -3
  238. package/src/components/ExtendsClause.tsx +2 -1
  239. package/src/components/ImplementsClause.tsx +2 -1
  240. package/src/components/Interface.tsx +9 -4
  241. package/src/components/LexicalScope.tsx +3 -7
  242. package/src/components/MavenProject.tsx +12 -17
  243. package/src/components/Method.tsx +12 -9
  244. package/src/components/NamedArgumentList.tsx +1 -1
  245. package/src/components/ObjectDeclaration.tsx +5 -3
  246. package/src/components/PackageDirectory.tsx +4 -5
  247. package/src/components/Parameters.tsx +2 -1
  248. package/src/components/ProjectDirectory.tsx +6 -6
  249. package/src/components/Reference.tsx +2 -1
  250. package/src/components/SourceFile.tsx +8 -7
  251. package/src/components/TypeArguments.tsx +2 -1
  252. package/src/components/TypeParameters.tsx +2 -1
  253. package/src/components/Variable.tsx +5 -2
  254. package/src/components/stc/index.ts +1 -0
  255. package/src/create-library.ts +5 -5
  256. package/src/name-policy.ts +2 -1
  257. package/src/symbols/index.ts +1 -1
  258. package/src/symbols/java-output-symbol.ts +6 -11
  259. package/src/symbols/java-project-scope.ts +1 -1
  260. package/src/symbols/reference.ts +5 -3
  261. package/src/symbols/scopes.ts +2 -2
  262. package/src/utils.ts +1 -0
  263. package/temp/api.json +8 -8
  264. package/test/annotation.test.tsx +1 -0
  265. package/test/class.test.tsx +1 -0
  266. package/test/constructor.test.tsx +3 -2
  267. package/test/enum.test.tsx +1 -0
  268. package/test/externals.test.tsx +1 -0
  269. package/test/interface.test.tsx +1 -0
  270. package/test/maven.test.tsx +2 -1
  271. package/test/method.test.tsx +4 -3
  272. package/test/package.test.tsx +1 -0
  273. package/test/reference.test.tsx +1 -0
  274. package/test/type-arguments.test.tsx +4 -3
  275. package/test/utils.tsx +3 -1
  276. package/test/values.test.tsx +1 -0
  277. package/test/variables.test.tsx +5 -4
  278. package/tsdoc-metadata.json +1 -1
  279. package/vitest.config.ts +0 -12
@@ -25,7 +25,7 @@ A list of arguments to be passed to a function, constructor, enum, and so forth.
25
25
 
26
26
  ## Props
27
27
 
28
- | | | |
29
- | ------------------- | ----------------------------------------------------- | - |
30
- | args | optional [Children](../../../core/types/children/)\[] | |
31
- | omitParensWhenEmpty | optional boolean | |
28
+ | | | |
29
+ | ------------------- | ---------------------------------------------------- | - |
30
+ | args | optional[Children](../../../core/types/children/)\[] | |
31
+ | omitParensWhenEmpty | optional boolean | |
@@ -59,18 +59,18 @@
59
59
  | | | |
60
60
  | ------------ | ------------------------------------------------------------------- | - |
61
61
  | abstract | optional boolean | |
62
- | children | optional [Children](../../../core/types/children/) | |
62
+ | children | optional[Children](../../../core/types/children/) | |
63
63
  | default | optional boolean | |
64
- | extends | optional [Children](../../../core/types/children/) | |
64
+ | extends | optional[Children](../../../core/types/children/) | |
65
65
  | final | optional boolean | |
66
66
  | generics | optional Record\<string, [Children](../../../core/types/children/)> | |
67
- | implements | optional [Children](../../../core/types/children/)\[] | |
67
+ | implements | optional[Children](../../../core/types/children/)\[] | |
68
68
  | name | string \| [Namekey](../../../core/types/namekey/) | |
69
69
  | native | optional boolean | |
70
70
  | private | optional boolean | |
71
71
  | protected | optional boolean | |
72
72
  | public | optional boolean | |
73
- | refkey | optional [Refkey](../../../core/types/refkey/) | |
73
+ | refkey | optional[Refkey](../../../core/types/refkey/) | |
74
74
  | static | optional boolean | |
75
75
  | strictfp | optional boolean | |
76
76
  | synchronized | optional boolean | |
@@ -57,7 +57,7 @@ Declare a constructor, usually for a class or enum If no name is provided, will
57
57
  | | | |
58
58
  | ------------ | ------------------------------------------------------------------- | - |
59
59
  | abstract | optional boolean | |
60
- | children | optional [Children](../../../core/types/children/) | |
60
+ | children | optional[Children](../../../core/types/children/) | |
61
61
  | default | optional boolean | |
62
62
  | final | optional boolean | |
63
63
  | name | optional string | |
@@ -30,9 +30,9 @@ Declare a symbol in the program. Declaring classes, interfaces, enums, etc. Shou
30
30
 
31
31
  ## Props
32
32
 
33
- | | | |
34
- | -------- | -------------------------------------------------- | ------------------------------------------------- |
35
- | children | optional [Children](../../../core/types/children/) | |
36
- | name | string \| [Namekey](../../../core/types/namekey/) | |
37
- | nameKind | optional [JavaElements](../../types/javaelements/) | The name policy kind to apply to the declaration. |
38
- | refkey | optional [Refkey](../../../core/types/refkey/) | |
33
+ | | | |
34
+ | -------- | ------------------------------------------------- | ------------------------------------------------- |
35
+ | children | optional[Children](../../../core/types/children/) | |
36
+ | name | string \| [Namekey](../../../core/types/namekey/) | |
37
+ | nameKind | optional[JavaElements](../../types/javaelements/) | The name policy kind to apply to the declaration. |
38
+ | refkey | optional[Refkey](../../../core/types/refkey/) | |
@@ -52,21 +52,21 @@
52
52
 
53
53
  ## Props
54
54
 
55
- | | | |
56
- | ------------ | ----------------------------------------------------- | - |
57
- | abstract | optional boolean | |
58
- | children | optional [Children](../../../core/types/children/) | |
59
- | default | optional boolean | |
60
- | final | optional boolean | |
61
- | implements | optional [Children](../../../core/types/children/)\[] | |
62
- | name | string \| [Namekey](../../../core/types/namekey/) | |
63
- | native | optional boolean | |
64
- | private | optional boolean | |
65
- | protected | optional boolean | |
66
- | public | optional boolean | |
67
- | refkey | optional [Refkey](../../../core/types/refkey/) | |
68
- | static | optional boolean | |
69
- | strictfp | optional boolean | |
70
- | synchronized | optional boolean | |
71
- | transient | optional boolean | |
72
- | volatile | optional boolean | |
55
+ | | | |
56
+ | ------------ | ---------------------------------------------------- | - |
57
+ | abstract | optional boolean | |
58
+ | children | optional[Children](../../../core/types/children/) | |
59
+ | default | optional boolean | |
60
+ | final | optional boolean | |
61
+ | implements | optional[Children](../../../core/types/children/)\[] | |
62
+ | name | string \| [Namekey](../../../core/types/namekey/) | |
63
+ | native | optional boolean | |
64
+ | private | optional boolean | |
65
+ | protected | optional boolean | |
66
+ | public | optional boolean | |
67
+ | refkey | optional[Refkey](../../../core/types/refkey/) | |
68
+ | static | optional boolean | |
69
+ | strictfp | optional boolean | |
70
+ | synchronized | optional boolean | |
71
+ | transient | optional boolean | |
72
+ | volatile | optional boolean | |
@@ -50,19 +50,19 @@
50
50
 
51
51
  ## Props
52
52
 
53
- | | | |
54
- | ------------ | ----------------------------------------------------- | - |
55
- | abstract | optional boolean | |
56
- | args | optional [Children](../../../core/types/children/)\[] | |
57
- | default | optional boolean | |
58
- | final | optional boolean | |
59
- | name | string | |
60
- | native | optional boolean | |
61
- | private | optional boolean | |
62
- | protected | optional boolean | |
63
- | public | optional boolean | |
64
- | static | optional boolean | |
65
- | strictfp | optional boolean | |
66
- | synchronized | optional boolean | |
67
- | transient | optional boolean | |
68
- | volatile | optional boolean | |
53
+ | | | |
54
+ | ------------ | ---------------------------------------------------- | - |
55
+ | abstract | optional boolean | |
56
+ | args | optional[Children](../../../core/types/children/)\[] | |
57
+ | default | optional boolean | |
58
+ | final | optional boolean | |
59
+ | name | string | |
60
+ | native | optional boolean | |
61
+ | private | optional boolean | |
62
+ | protected | optional boolean | |
63
+ | public | optional boolean | |
64
+ | static | optional boolean | |
65
+ | strictfp | optional boolean | |
66
+ | synchronized | optional boolean | |
67
+ | transient | optional boolean | |
68
+ | volatile | optional boolean | |
@@ -57,9 +57,9 @@
57
57
  | | | |
58
58
  | ------------ | ------------------------------------------------------------------- | - |
59
59
  | abstract | optional boolean | |
60
- | children | optional [Children](../../../core/types/children/) | |
60
+ | children | optional[Children](../../../core/types/children/) | |
61
61
  | default | optional boolean | |
62
- | extends | optional [Children](../../../core/types/children/)\[] | |
62
+ | extends | optional[Children](../../../core/types/children/)\[] | |
63
63
  | final | optional boolean | |
64
64
  | generics | optional Record\<string, [Children](../../../core/types/children/)> | |
65
65
  | name | string \| [Namekey](../../../core/types/namekey/) | |
@@ -67,7 +67,7 @@
67
67
  | private | optional boolean | |
68
68
  | protected | optional boolean | |
69
69
  | public | optional boolean | |
70
- | refkey | optional [Refkey](../../../core/types/refkey/) | |
70
+ | refkey | optional[Refkey](../../../core/types/refkey/) | |
71
71
  | static | optional boolean | |
72
72
  | strictfp | optional boolean | |
73
73
  | synchronized | optional boolean | |
@@ -61,7 +61,7 @@
61
61
  | | | |
62
62
  | ------------ | ------------------------------------------------------------------- | - |
63
63
  | abstract | optional boolean | |
64
- | children | optional [Children](../../../core/types/children/) | |
64
+ | children | optional[Children](../../../core/types/children/) | |
65
65
  | default | optional boolean | |
66
66
  | final | optional boolean | |
67
67
  | generics | optional Record\<string, [Children](../../../core/types/children/)> | |
@@ -71,10 +71,10 @@
71
71
  | private | optional boolean | |
72
72
  | protected | optional boolean | |
73
73
  | public | optional boolean | |
74
- | return | optional [Children](../../../core/types/children/) | |
74
+ | return | optional[Children](../../../core/types/children/) | |
75
75
  | static | optional boolean | |
76
76
  | strictfp | optional boolean | |
77
77
  | synchronized | optional boolean | |
78
- | throws | optional [Children](../../../core/types/children/) | |
78
+ | throws | optional[Children](../../../core/types/children/) | |
79
79
  | transient | optional boolean | |
80
80
  | volatile | optional boolean | |
@@ -56,22 +56,22 @@ Shorthand to instantiate a new object. Declares it with ‘new’ and passes arg
56
56
 
57
57
  ## Props
58
58
 
59
- | | | |
60
- | ------------ | ----------------------------------------------------- | - |
61
- | abstract | optional boolean | |
62
- | args | optional [Children](../../../core/types/children/)\[] | |
63
- | children | optional [Children](../../../core/types/children/) | |
64
- | default | optional boolean | |
65
- | final | optional boolean | |
66
- | name | string \| [Namekey](../../../core/types/namekey/) | |
67
- | native | optional boolean | |
68
- | private | optional boolean | |
69
- | protected | optional boolean | |
70
- | public | optional boolean | |
71
- | refkey | optional [Refkey](../../../core/types/refkey/) | |
72
- | static | optional boolean | |
73
- | strictfp | optional boolean | |
74
- | synchronized | optional boolean | |
75
- | transient | optional boolean | |
76
- | type | [Children](../../../core/types/children/) | |
77
- | volatile | optional boolean | |
59
+ | | | |
60
+ | ------------ | ---------------------------------------------------- | - |
61
+ | abstract | optional boolean | |
62
+ | args | optional[Children](../../../core/types/children/)\[] | |
63
+ | children | optional[Children](../../../core/types/children/) | |
64
+ | default | optional boolean | |
65
+ | final | optional boolean | |
66
+ | name | string \| [Namekey](../../../core/types/namekey/) | |
67
+ | native | optional boolean | |
68
+ | private | optional boolean | |
69
+ | protected | optional boolean | |
70
+ | public | optional boolean | |
71
+ | refkey | optional[Refkey](../../../core/types/refkey/) | |
72
+ | static | optional boolean | |
73
+ | strictfp | optional boolean | |
74
+ | synchronized | optional boolean | |
75
+ | transient | optional boolean | |
76
+ | type | [Children](../../../core/types/children/) | |
77
+ | volatile | optional boolean | |
@@ -22,7 +22,7 @@
22
22
 
23
23
  ## Props
24
24
 
25
- | | | |
26
- | -------- | -------------------------------------------------- | - |
27
- | children | optional [Children](../../../core/types/children/) | |
28
- | package | string | |
25
+ | | | |
26
+ | -------- | ------------------------------------------------- | - |
27
+ | children | optional[Children](../../../core/types/children/) | |
28
+ | package | string | |
@@ -32,9 +32,9 @@ Represents a java project directory. Use if you want to generate a Java project
32
32
 
33
33
  ## Props
34
34
 
35
- | | | |
36
- | ------------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
37
- | children | optional [Children](../../../core/types/children/) | |
38
- | gradleProjectConfig | optional [GradleProjectConfig](../../types/gradleprojectconfig/) | |
39
- | mavenProjectConfig | optional [MavenProjectConfig](../../types/mavenprojectconfig/) | Specify project configuration for either maven or gradle. If not specified, will create generic Java project |
40
- | name | string | |
35
+ | | | |
36
+ | ------------------- | --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
37
+ | children | optional[Children](../../../core/types/children/) | |
38
+ | gradleProjectConfig | optional[GradleProjectConfig](../../types/gradleprojectconfig/) | |
39
+ | mavenProjectConfig | optional[MavenProjectConfig](../../types/mavenprojectconfig/) | Specify project configuration for either maven or gradle. If not specified, will create generic Java project |
40
+ | name | string | |
@@ -26,7 +26,7 @@ Handles top level package declaration, as well as importing other sources
26
26
 
27
27
  ## Props
28
28
 
29
- | | | |
30
- | -------- | -------------------------------------------------- | - |
31
- | children | optional [Children](../../../core/types/children/) | |
32
- | path | string | |
29
+ | | | |
30
+ | -------- | ------------------------------------------------- | - |
31
+ | children | optional[Children](../../../core/types/children/) | |
32
+ | path | string | |
@@ -24,6 +24,6 @@ Type arguments for a generic type. Can be called with either an array of Childre
24
24
 
25
25
  ## Props
26
26
 
27
- | | | |
28
- | ---- | ------------------------------------------------------------------------------------------------------------------------- | - |
29
- | args | optional [Children](../../../core/types/children/)\[] \| [TypeArgumentDescriptor](../../types/typeargumentdescriptor/)\[] | |
27
+ | | | |
28
+ | ---- | ------------------------------------------------------------------------------------------------------------------------ | - |
29
+ | args | optional[Children](../../../core/types/children/)\[] \| [TypeArgumentDescriptor](../../types/typeargumentdescriptor/)\[] | |
@@ -52,20 +52,20 @@
52
52
 
53
53
  ## Props
54
54
 
55
- | | | |
56
- | ------------ | -------------------------------------------------- | - |
57
- | abstract | optional boolean | |
58
- | default | optional boolean | |
59
- | final | optional boolean | |
60
- | name | string \| [Namekey](../../../core/types/namekey/) | |
61
- | native | optional boolean | |
62
- | private | optional boolean | |
63
- | protected | optional boolean | |
64
- | public | optional boolean | |
65
- | static | optional boolean | |
66
- | strictfp | optional boolean | |
67
- | synchronized | optional boolean | |
68
- | transient | optional boolean | |
69
- | type | [Children](../../../core/types/children/) | |
70
- | value | optional [Children](../../../core/types/children/) | |
71
- | volatile | optional boolean | |
55
+ | | | |
56
+ | ------------ | ------------------------------------------------- | - |
57
+ | abstract | optional boolean | |
58
+ | default | optional boolean | |
59
+ | final | optional boolean | |
60
+ | name | string \| [Namekey](../../../core/types/namekey/) | |
61
+ | native | optional boolean | |
62
+ | private | optional boolean | |
63
+ | protected | optional boolean | |
64
+ | public | optional boolean | |
65
+ | static | optional boolean | |
66
+ | strictfp | optional boolean | |
67
+ | synchronized | optional boolean | |
68
+ | transient | optional boolean | |
69
+ | type | [Children](../../../core/types/children/) | |
70
+ | value | optional[Children](../../../core/types/children/) | |
71
+ | volatile | optional boolean | |
@@ -2,8 +2,8 @@
2
2
 
3
3
  ## Members
4
4
 
5
- | | | |
6
- | -------- | -------------------------------------------------- | - |
7
- | children | optional [Children](../../../core/types/children/) | |
8
- | name | string \| [Namekey](../../../core/types/namekey/) | |
9
- | refkey | optional [Refkey](../../../core/types/refkey/) | |
5
+ | | | |
6
+ | -------- | ------------------------------------------------- | - |
7
+ | children | optional[Children](../../../core/types/children/) | |
8
+ | name | string \| [Namekey](../../../core/types/namekey/) | |
9
+ | refkey | optional[Refkey](../../../core/types/refkey/) | |
@@ -4,7 +4,7 @@
4
4
 
5
5
  Extends [OutputScopeOptions](../../../core/types/outputscopeoptions/)
6
6
 
7
- | | | |
8
- | ------------------- | ------------------------------------------------------- | - |
9
- | gradleProjectConfig | optional [GradleProjectConfig](../gradleprojectconfig/) | |
10
- | mavenProjectConfig | optional [MavenProjectConfig](../mavenprojectconfig/) | |
7
+ | | | |
8
+ | ------------------- | ------------------------------------------------------ | - |
9
+ | gradleProjectConfig | optional[GradleProjectConfig](../gradleprojectconfig/) | |
10
+ | mavenProjectConfig | optional[MavenProjectConfig](../mavenprojectconfig/) | |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alloy-js/java",
3
- "version": "0.25.0-dev.1",
3
+ "version": "0.26.0",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,19 +20,19 @@
20
20
  "author": "brian.terlson@microsoft.com",
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
- "@alloy-js/core": "~0.24.1 || >= 0.25.0-dev.2",
24
23
  "change-case": "^5.4.4",
25
- "pathe": "^2.0.3"
24
+ "pathe": "^2.0.3",
25
+ "@alloy-js/core": "~0.26.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@alloy-js/cli": "~0.24.0 || >= 0.25.0-dev.0",
29
- "@alloy-js/rollup-plugin": "~0.1.2 || >= 0.1.3-dev.3",
30
28
  "@microsoft/api-extractor": "~7.58.8",
31
29
  "@rollup/plugin-typescript": "^12.3.0",
32
- "@types/node": "^25.9.2",
30
+ "@types/node": "^26.1.1",
33
31
  "concurrently": "^10.0.3",
34
- "typescript": "^6.0.3",
35
- "vitest": "4.1.8"
32
+ "typescript": "^7.0.2",
33
+ "vitest": "4.1.10",
34
+ "@alloy-js/cli": "~0.26.0",
35
+ "@alloy-js/rollup-plugin": "~0.2.0"
36
36
  },
37
37
  "type": "module",
38
38
  "scripts": {
@@ -1,4 +1,5 @@
1
1
  import type { SymbolCreator } from "@alloy-js/core";
2
+
2
3
  import { createLibrary } from "../create-library.js";
3
4
  // work around very strange issue where TypeScript complains that the inferred
4
5
  // type of the below cannot be named without a reference to ../../alloy-js/core
@@ -1,5 +1,6 @@
1
1
  import { Match, Switch } from "@alloy-js/core";
2
- import { Children } from "@alloy-js/core/jsx-runtime";
2
+ import type { Children } from "@alloy-js/core/jsx-runtime";
3
+
3
4
  import { NamedArgumentList } from "./NamedArgumentList.jsx";
4
5
 
5
6
  export interface AnnotationProps {
@@ -1,4 +1,5 @@
1
- import { Children, For, Indent } from "@alloy-js/core";
1
+ import type { Children } from "@alloy-js/core";
2
+ import { For, Indent } from "@alloy-js/core";
2
3
 
3
4
  export interface ArgumentListProps {
4
5
  args?: Children[];
@@ -1,11 +1,16 @@
1
- import { Block, Children, Show } from "@alloy-js/core";
2
- import { CommonDeclarationProps, Declaration } from "./Declaration.js";
1
+ import type { Children } from "@alloy-js/core";
2
+ import { Block, Show } from "@alloy-js/core";
3
+
4
+ import type { CommonDeclarationProps } from "./Declaration.js";
5
+ import { Declaration } from "./Declaration.js";
3
6
  import { ExtendsClause } from "./ExtendsClause.js";
4
7
  import { ImplementsClause } from "./ImplementsClause.js";
5
8
  import { LexicalScope } from "./LexicalScope.jsx";
6
- import { ModifierProps, Modifiers } from "./Modifiers.jsx";
9
+ import type { ModifierProps } from "./Modifiers.jsx";
10
+ import { Modifiers } from "./Modifiers.jsx";
7
11
  import { Name } from "./Name.js";
8
- import { TypeParameters, TypeParametersProps } from "./TypeParameters.jsx";
12
+ import type { TypeParametersProps } from "./TypeParameters.jsx";
13
+ import { TypeParameters } from "./TypeParameters.jsx";
9
14
 
10
15
  export interface ClassProps
11
16
  extends CommonDeclarationProps, ModifierProps, TypeParametersProps {
@@ -1,6 +1,8 @@
1
1
  import { Block } from "@alloy-js/core";
2
- import { Children } from "@alloy-js/core/jsx-runtime";
3
- import { ModifierProps, Modifiers } from "./Modifiers.jsx";
2
+ import type { Children } from "@alloy-js/core/jsx-runtime";
3
+
4
+ import type { ModifierProps } from "./Modifiers.jsx";
5
+ import { Modifiers } from "./Modifiers.jsx";
4
6
  import { Name } from "./Name.js";
5
7
  import { Parameters } from "./Parameters.js";
6
8
 
@@ -1,11 +1,8 @@
1
- import {
2
- Children,
3
- Declaration as CoreDeclaration,
4
- createSymbol,
5
- Namekey,
6
- Refkey,
7
- } from "@alloy-js/core";
8
- import { JavaElements, useJavaNamePolicy } from "../name-policy.js";
1
+ import type { Children, Namekey, Refkey } from "@alloy-js/core";
2
+ import { Declaration as CoreDeclaration, createSymbol } from "@alloy-js/core";
3
+
4
+ import type { JavaElements } from "../name-policy.js";
5
+ import { useJavaNamePolicy } from "../name-policy.js";
9
6
  import { JavaOutputSymbol } from "../symbols/java-output-symbol.js";
10
7
  import { useLexicalScope } from "../utils.js";
11
8
 
@@ -1,10 +1,14 @@
1
- import { Block, Children, List } from "@alloy-js/core";
1
+ import type { Children } from "@alloy-js/core";
2
+ import { Block, List } from "@alloy-js/core";
3
+
2
4
  import { useJavaNamePolicy } from "../name-policy.js";
3
5
  import { ArgumentList } from "./ArgumentList.jsx";
4
- import { CommonDeclarationProps, Declaration } from "./Declaration.js";
6
+ import type { CommonDeclarationProps } from "./Declaration.js";
7
+ import { Declaration } from "./Declaration.js";
5
8
  import { ImplementsClause } from "./ImplementsClause.jsx";
6
9
  import { LexicalScope } from "./LexicalScope.jsx";
7
- import { ModifierProps, Modifiers } from "./Modifiers.jsx";
10
+ import type { ModifierProps } from "./Modifiers.jsx";
11
+ import { Modifiers } from "./Modifiers.jsx";
8
12
  import { Name } from "./Name.js";
9
13
 
10
14
  export interface EnumProps extends CommonDeclarationProps, ModifierProps {
@@ -1,4 +1,5 @@
1
- import { Children, List, Show } from "@alloy-js/core";
1
+ import type { Children } from "@alloy-js/core";
2
+ import { List, Show } from "@alloy-js/core";
2
3
 
3
4
  export interface ExtendsClauseProps {
4
5
  extends: Children[] | undefined;
@@ -1,4 +1,5 @@
1
- import { Children, List, Show } from "@alloy-js/core";
1
+ import type { Children } from "@alloy-js/core";
2
+ import { List, Show } from "@alloy-js/core";
2
3
 
3
4
  export interface ImplementsClauseProps {
4
5
  interfaces: Children[] | undefined;
@@ -1,10 +1,15 @@
1
- import { Block, Children } from "@alloy-js/core";
2
- import { CommonDeclarationProps, Declaration } from "./Declaration.js";
1
+ import type { Children } from "@alloy-js/core";
2
+ import { Block } from "@alloy-js/core";
3
+
4
+ import type { CommonDeclarationProps } from "./Declaration.js";
5
+ import { Declaration } from "./Declaration.js";
3
6
  import { ExtendsClause } from "./ExtendsClause.jsx";
4
7
  import { LexicalScope } from "./LexicalScope.jsx";
5
- import { ModifierProps, Modifiers } from "./Modifiers.jsx";
8
+ import type { ModifierProps } from "./Modifiers.jsx";
9
+ import { Modifiers } from "./Modifiers.jsx";
6
10
  import { Name } from "./Name.js";
7
- import { TypeParameters, TypeParametersProps } from "./TypeParameters.jsx";
11
+ import type { TypeParametersProps } from "./TypeParameters.jsx";
12
+ import { TypeParameters } from "./TypeParameters.jsx";
8
13
 
9
14
  export interface InterfaceProps
10
15
  extends CommonDeclarationProps, ModifierProps, TypeParametersProps {
@@ -1,10 +1,6 @@
1
- import {
2
- createScope,
3
- Scope,
4
- ScopePropsWithInfo,
5
- ScopePropsWithValue,
6
- useScope,
7
- } from "@alloy-js/core";
1
+ import type { ScopePropsWithInfo, ScopePropsWithValue } from "@alloy-js/core";
2
+ import { createScope, Scope, useScope } from "@alloy-js/core";
3
+
8
4
  import { JavaLexicalScope } from "../symbols/index.js";
9
5
 
10
6
  export interface LexicalScopePropsWithScopeValue extends ScopePropsWithValue {}
@@ -1,12 +1,7 @@
1
- import {
2
- Children,
3
- code,
4
- List,
5
- mapJoin,
6
- Show,
7
- SourceFile,
8
- } from "@alloy-js/core";
9
- import { MavenProjectConfig } from "../symbols/index.js";
1
+ import type { Children } from "@alloy-js/core";
2
+ import { code, List, mapJoin, Show, SourceFile } from "@alloy-js/core";
3
+
4
+ import type { MavenProjectConfig } from "../symbols/index.js";
10
5
  import { useProject } from "./ProjectDirectory.js";
11
6
 
12
7
  export interface MavenProjectProps {
@@ -163,8 +158,8 @@ export function PomFileBuild(props: PomFileProps) {
163
158
 
164
159
  return code`
165
160
  <build>
166
- ${(<PomFileBuildPlugins {...props.projectConfig.build} />)}
167
- ${(<PomFileBuildResources {...props.projectConfig.build} />)}
161
+ ${<PomFileBuildPlugins {...props.projectConfig.build} />}
162
+ ${<PomFileBuildResources {...props.projectConfig.build} />}
168
163
  </build>
169
164
  `;
170
165
  }
@@ -268,15 +263,15 @@ function PomFileBuildResources(props: MavenProjectConfig["build"]) {
268
263
  </excludes>
269
264
  `
270
265
  }${
271
- resource.filtering !== undefined ?
272
- `
266
+ resource.filtering !== undefined
267
+ ? `
273
268
  <filtering>${resource.filtering}</filtering>`
274
- : undefined
269
+ : undefined
275
270
  }${
276
- resource.targetPath !== undefined ?
277
- `
271
+ resource.targetPath !== undefined
272
+ ? `
278
273
  <targetPath>${resource.targetPath}</targetPath>`
279
- : undefined
274
+ : undefined
280
275
  }
281
276
  </resource>
282
277
  `,