@alloy-js/java 0.25.0-dev.1 → 0.25.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.
- package/CHANGELOG.md +4 -0
- package/dist/dev/src/builtins/index.js.map +1 -1
- package/dist/dev/src/builtins/util.js.map +1 -1
- package/dist/dev/src/components/Annotation.js +4 -4
- package/dist/dev/src/components/Annotation.js.map +1 -1
- package/dist/dev/src/components/ArgumentList.js +3 -3
- package/dist/dev/src/components/ArgumentList.js.map +1 -1
- package/dist/dev/src/components/Class.js +10 -10
- package/dist/dev/src/components/Class.js.map +1 -1
- package/dist/dev/src/components/Constructor.js +5 -5
- package/dist/dev/src/components/Constructor.js.map +1 -1
- package/dist/dev/src/components/Declaration.js +1 -1
- package/dist/dev/src/components/Declaration.js.map +1 -1
- package/dist/dev/src/components/Enum.js +9 -9
- package/dist/dev/src/components/Enum.js.map +1 -1
- package/dist/dev/src/components/ExtendsClause.js +4 -4
- package/dist/dev/src/components/ExtendsClause.js.map +1 -1
- package/dist/dev/src/components/ImplementsClause.js +4 -4
- package/dist/dev/src/components/ImplementsClause.js.map +1 -1
- package/dist/dev/src/components/ImportStatement.js.map +1 -1
- package/dist/dev/src/components/Interface.js +8 -8
- package/dist/dev/src/components/Interface.js.map +1 -1
- package/dist/dev/src/components/LexicalScope.js +1 -1
- package/dist/dev/src/components/LexicalScope.js.map +1 -1
- package/dist/dev/src/components/MavenProject.js +24 -24
- package/dist/dev/src/components/MavenProject.js.map +1 -1
- package/dist/dev/src/components/Method.js +4 -4
- package/dist/dev/src/components/Method.js.map +1 -1
- package/dist/dev/src/components/Modifiers.js.map +1 -1
- package/dist/dev/src/components/Name.js.map +1 -1
- package/dist/dev/src/components/NamedArgumentList.js.map +1 -1
- package/dist/dev/src/components/ObjectDeclaration.js +2 -2
- package/dist/dev/src/components/ObjectDeclaration.js.map +1 -1
- package/dist/dev/src/components/PackageDirectory.js +5 -5
- package/dist/dev/src/components/PackageDirectory.js.map +1 -1
- package/dist/dev/src/components/Parameters.js.map +1 -1
- package/dist/dev/src/components/ProjectDirectory.js +1 -1
- package/dist/dev/src/components/ProjectDirectory.js.map +1 -1
- package/dist/dev/src/components/Reference.js.map +1 -1
- package/dist/dev/src/components/SourceFile.js +9 -9
- package/dist/dev/src/components/SourceFile.js.map +1 -1
- package/dist/dev/src/components/TypeArguments.js +11 -11
- package/dist/dev/src/components/TypeArguments.js.map +1 -1
- package/dist/dev/src/components/TypeParameters.js +5 -5
- package/dist/dev/src/components/TypeParameters.js.map +1 -1
- package/dist/dev/src/components/Value.js.map +1 -1
- package/dist/dev/src/components/Variable.js +1 -1
- package/dist/dev/src/components/Variable.js.map +1 -1
- package/dist/dev/src/components/index.js.map +1 -1
- package/dist/dev/src/components/stc/index.js.map +1 -1
- package/dist/dev/src/create-library.js.map +1 -1
- package/dist/dev/src/index.js.map +1 -1
- package/dist/dev/src/name-policy.js.map +1 -1
- package/dist/dev/src/symbols/index.js +0 -1
- package/dist/dev/src/symbols/index.js.map +1 -1
- package/dist/dev/src/symbols/java-lexical-scope.js.map +1 -1
- package/dist/dev/src/symbols/java-output-symbol.js.map +1 -1
- package/dist/dev/src/symbols/java-package-scope.js.map +1 -1
- package/dist/dev/src/symbols/java-project-scope.js.map +1 -1
- package/dist/dev/src/symbols/reference.js.map +1 -1
- package/dist/dev/src/symbols/scopes.js.map +1 -1
- package/dist/dev/src/utils.js.map +1 -1
- package/dist/dev/test/annotation.test.js +13 -13
- package/dist/dev/test/annotation.test.js.map +1 -1
- package/dist/dev/test/class.test.js +29 -29
- package/dist/dev/test/class.test.js.map +1 -1
- package/dist/dev/test/constructor.test.js +16 -16
- package/dist/dev/test/constructor.test.js.map +1 -1
- package/dist/dev/test/enum.test.js +28 -28
- package/dist/dev/test/enum.test.js.map +1 -1
- package/dist/dev/test/externals.test.js +6 -6
- package/dist/dev/test/externals.test.js.map +1 -1
- package/dist/dev/test/interface.test.js +22 -22
- package/dist/dev/test/interface.test.js.map +1 -1
- package/dist/dev/test/maven.test.js +4 -4
- package/dist/dev/test/maven.test.js.map +1 -1
- package/dist/dev/test/method.test.js +40 -40
- package/dist/dev/test/method.test.js.map +1 -1
- package/dist/dev/test/package.test.js +4 -4
- package/dist/dev/test/package.test.js.map +1 -1
- package/dist/dev/test/reference.test.js +21 -21
- package/dist/dev/test/reference.test.js.map +1 -1
- package/dist/dev/test/type-arguments.test.js +21 -21
- package/dist/dev/test/type-arguments.test.js.map +1 -1
- package/dist/dev/test/utils.js +3 -3
- package/dist/dev/test/utils.js.map +1 -1
- package/dist/dev/test/values.test.js +5 -5
- package/dist/dev/test/values.test.js.map +1 -1
- package/dist/dev/test/variables.test.js +32 -32
- package/dist/dev/test/variables.test.js.map +1 -1
- package/dist/dev/test/vitest.setup.js.map +1 -1
- package/dist/src/builtins/index.js.map +1 -1
- package/dist/src/builtins/util.d.ts.map +1 -1
- package/dist/src/builtins/util.js.map +1 -1
- package/dist/src/components/Annotation.d.ts +1 -1
- package/dist/src/components/Annotation.d.ts.map +1 -1
- package/dist/src/components/Annotation.js.map +1 -1
- package/dist/src/components/ArgumentList.d.ts +1 -1
- package/dist/src/components/ArgumentList.d.ts.map +1 -1
- package/dist/src/components/ArgumentList.js.map +1 -1
- package/dist/src/components/Class.d.ts +4 -4
- package/dist/src/components/Class.d.ts.map +1 -1
- package/dist/src/components/Class.js.map +1 -1
- package/dist/src/components/Constructor.d.ts +2 -2
- package/dist/src/components/Constructor.d.ts.map +1 -1
- package/dist/src/components/Constructor.js.map +1 -1
- package/dist/src/components/Declaration.d.ts +2 -2
- package/dist/src/components/Declaration.d.ts.map +1 -1
- package/dist/src/components/Declaration.js.map +1 -1
- package/dist/src/components/Enum.d.ts +3 -3
- package/dist/src/components/Enum.d.ts.map +1 -1
- package/dist/src/components/Enum.js.map +1 -1
- package/dist/src/components/ExtendsClause.d.ts +1 -1
- package/dist/src/components/ExtendsClause.d.ts.map +1 -1
- package/dist/src/components/ExtendsClause.js.map +1 -1
- package/dist/src/components/ImplementsClause.d.ts +1 -1
- package/dist/src/components/ImplementsClause.d.ts.map +1 -1
- package/dist/src/components/ImplementsClause.js.map +1 -1
- package/dist/src/components/ImportStatement.js.map +1 -1
- package/dist/src/components/Interface.d.ts +4 -4
- package/dist/src/components/Interface.d.ts.map +1 -1
- package/dist/src/components/Interface.js.map +1 -1
- package/dist/src/components/LexicalScope.d.ts +1 -1
- package/dist/src/components/LexicalScope.d.ts.map +1 -1
- package/dist/src/components/LexicalScope.js.map +1 -1
- package/dist/src/components/MavenProject.d.ts +2 -2
- package/dist/src/components/MavenProject.d.ts.map +1 -1
- package/dist/src/components/MavenProject.js.map +1 -1
- package/dist/src/components/Method.d.ts +3 -3
- package/dist/src/components/Method.d.ts.map +1 -1
- package/dist/src/components/Method.js.map +1 -1
- package/dist/src/components/Modifiers.js.map +1 -1
- package/dist/src/components/Name.js.map +1 -1
- package/dist/src/components/NamedArgumentList.d.ts +1 -1
- package/dist/src/components/NamedArgumentList.d.ts.map +1 -1
- package/dist/src/components/NamedArgumentList.js.map +1 -1
- package/dist/src/components/ObjectDeclaration.d.ts +3 -3
- package/dist/src/components/ObjectDeclaration.d.ts.map +1 -1
- package/dist/src/components/ObjectDeclaration.js.map +1 -1
- package/dist/src/components/PackageDirectory.d.ts +1 -1
- package/dist/src/components/PackageDirectory.d.ts.map +1 -1
- package/dist/src/components/PackageDirectory.js.map +1 -1
- package/dist/src/components/Parameters.d.ts +2 -2
- package/dist/src/components/Parameters.d.ts.map +1 -1
- package/dist/src/components/Parameters.js.map +1 -1
- package/dist/src/components/ProjectDirectory.d.ts +3 -2
- package/dist/src/components/ProjectDirectory.d.ts.map +1 -1
- package/dist/src/components/ProjectDirectory.js.map +1 -1
- package/dist/src/components/Reference.d.ts +1 -1
- package/dist/src/components/Reference.d.ts.map +1 -1
- package/dist/src/components/Reference.js.map +1 -1
- package/dist/src/components/SourceFile.d.ts +2 -2
- package/dist/src/components/SourceFile.d.ts.map +1 -1
- package/dist/src/components/SourceFile.js.map +1 -1
- package/dist/src/components/TypeArguments.d.ts +1 -1
- package/dist/src/components/TypeArguments.d.ts.map +1 -1
- package/dist/src/components/TypeArguments.js.map +1 -1
- package/dist/src/components/TypeParameters.d.ts +1 -1
- package/dist/src/components/TypeParameters.d.ts.map +1 -1
- package/dist/src/components/TypeParameters.js.map +1 -1
- package/dist/src/components/Value.js.map +1 -1
- package/dist/src/components/Variable.d.ts +2 -2
- package/dist/src/components/Variable.d.ts.map +1 -1
- package/dist/src/components/Variable.js.map +1 -1
- package/dist/src/components/index.js.map +1 -1
- package/dist/src/components/stc/index.d.ts.map +1 -1
- package/dist/src/components/stc/index.js.map +1 -1
- package/dist/src/create-library.d.ts +1 -1
- package/dist/src/create-library.d.ts.map +1 -1
- package/dist/src/create-library.js.map +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/name-policy.d.ts +1 -1
- package/dist/src/name-policy.d.ts.map +1 -1
- package/dist/src/name-policy.js.map +1 -1
- package/dist/src/symbols/index.d.ts +1 -1
- package/dist/src/symbols/index.d.ts.map +1 -1
- package/dist/src/symbols/index.js +0 -1
- package/dist/src/symbols/index.js.map +1 -1
- package/dist/src/symbols/java-lexical-scope.js.map +1 -1
- package/dist/src/symbols/java-output-symbol.d.ts +2 -1
- package/dist/src/symbols/java-output-symbol.d.ts.map +1 -1
- package/dist/src/symbols/java-output-symbol.js.map +1 -1
- package/dist/src/symbols/java-package-scope.d.ts.map +1 -1
- package/dist/src/symbols/java-package-scope.js.map +1 -1
- package/dist/src/symbols/java-project-scope.d.ts +2 -1
- package/dist/src/symbols/java-project-scope.d.ts.map +1 -1
- package/dist/src/symbols/java-project-scope.js.map +1 -1
- package/dist/src/symbols/reference.d.ts +1 -1
- package/dist/src/symbols/reference.d.ts.map +1 -1
- package/dist/src/symbols/reference.js.map +1 -1
- package/dist/src/symbols/scopes.d.ts +2 -2
- package/dist/src/symbols/scopes.d.ts.map +1 -1
- package/dist/src/symbols/scopes.js.map +1 -1
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js.map +1 -1
- package/dist/test/annotation.test.js.map +1 -1
- package/dist/test/class.test.js.map +1 -1
- package/dist/test/constructor.test.js.map +1 -1
- package/dist/test/enum.test.js.map +1 -1
- package/dist/test/externals.test.js.map +1 -1
- package/dist/test/interface.test.js.map +1 -1
- package/dist/test/maven.test.js.map +1 -1
- package/dist/test/method.test.js.map +1 -1
- package/dist/test/package.test.js.map +1 -1
- package/dist/test/reference.test.js.map +1 -1
- package/dist/test/type-arguments.test.js.map +1 -1
- package/dist/test/utils.d.ts +1 -1
- package/dist/test/utils.d.ts.map +1 -1
- package/dist/test/utils.js.map +1 -1
- package/dist/test/values.test.js.map +1 -1
- package/dist/test/variables.test.js.map +1 -1
- package/dist/test/vitest.setup.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/docs/api/components/ArgumentList.md +4 -4
- package/docs/api/components/Class.md +4 -4
- package/docs/api/components/Constructor.md +1 -1
- package/docs/api/components/Declaration.md +6 -6
- package/docs/api/components/Enum.md +18 -18
- package/docs/api/components/EnumMember.md +16 -16
- package/docs/api/components/Interface.md +3 -3
- package/docs/api/components/Method.md +3 -3
- package/docs/api/components/ObjectDeclaration.md +19 -19
- package/docs/api/components/PackageDirectory.md +4 -4
- package/docs/api/components/ProjectDirectory.md +6 -6
- package/docs/api/components/SourceFile.md +4 -4
- package/docs/api/components/TypeArguments.md +3 -3
- package/docs/api/components/Variable.md +17 -17
- package/docs/api/types/CommonDeclarationProps.md +5 -5
- package/docs/api/types/JavaProjectScopeOptions.md +4 -4
- package/package.json +8 -8
- package/src/builtins/util.ts +1 -0
- package/src/components/Annotation.tsx +2 -1
- package/src/components/ArgumentList.tsx +2 -1
- package/src/components/Class.tsx +9 -4
- package/src/components/Constructor.tsx +4 -2
- package/src/components/Declaration.tsx +5 -8
- package/src/components/Enum.tsx +7 -3
- package/src/components/ExtendsClause.tsx +2 -1
- package/src/components/ImplementsClause.tsx +2 -1
- package/src/components/Interface.tsx +9 -4
- package/src/components/LexicalScope.tsx +3 -7
- package/src/components/MavenProject.tsx +12 -17
- package/src/components/Method.tsx +12 -9
- package/src/components/NamedArgumentList.tsx +1 -1
- package/src/components/ObjectDeclaration.tsx +5 -3
- package/src/components/PackageDirectory.tsx +4 -5
- package/src/components/Parameters.tsx +2 -1
- package/src/components/ProjectDirectory.tsx +6 -6
- package/src/components/Reference.tsx +2 -1
- package/src/components/SourceFile.tsx +8 -7
- package/src/components/TypeArguments.tsx +2 -1
- package/src/components/TypeParameters.tsx +2 -1
- package/src/components/Variable.tsx +5 -2
- package/src/components/stc/index.ts +1 -0
- package/src/create-library.ts +5 -5
- package/src/name-policy.ts +2 -1
- package/src/symbols/index.ts +1 -1
- package/src/symbols/java-output-symbol.ts +6 -11
- package/src/symbols/java-project-scope.ts +1 -1
- package/src/symbols/reference.ts +5 -3
- package/src/symbols/scopes.ts +2 -2
- package/src/utils.ts +1 -0
- package/temp/api.json +8 -8
- package/test/annotation.test.tsx +1 -0
- package/test/class.test.tsx +1 -0
- package/test/constructor.test.tsx +3 -2
- package/test/enum.test.tsx +1 -0
- package/test/externals.test.tsx +1 -0
- package/test/interface.test.tsx +1 -0
- package/test/maven.test.tsx +2 -1
- package/test/method.test.tsx +4 -3
- package/test/package.test.tsx +1 -0
- package/test/reference.test.tsx +1 -0
- package/test/type-arguments.test.tsx +4 -3
- package/test/utils.tsx +3 -1
- package/test/values.test.tsx +1 -0
- package/test/variables.test.tsx +5 -4
- package/tsdoc-metadata.json +1 -1
- 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
|
|
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
|
|
62
|
+
| children | optional[Children](../../../core/types/children/) | |
|
|
63
63
|
| default | optional boolean | |
|
|
64
|
-
| extends | optional
|
|
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
|
|
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
|
|
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
|
|
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
|
|
36
|
-
| name | string \| [Namekey](../../../core/types/namekey/)
|
|
37
|
-
| nameKind | optional
|
|
38
|
-
| refkey | optional
|
|
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
|
|
59
|
-
| default | optional boolean
|
|
60
|
-
| final | optional boolean
|
|
61
|
-
| implements | optional
|
|
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
|
|
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
|
|
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
|
|
60
|
+
| children | optional[Children](../../../core/types/children/) | |
|
|
61
61
|
| default | optional boolean | |
|
|
62
|
-
| extends | optional
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
63
|
-
| children | optional
|
|
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
|
|
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
|
|
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
|
|
38
|
-
| gradleProjectConfig | optional
|
|
39
|
-
| mavenProjectConfig | optional
|
|
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
|
|
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
|
|
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
|
|
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
|
|
8
|
-
| name | string \| [Namekey](../../../core/types/namekey/)
|
|
9
|
-
| refkey | optional
|
|
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
|
|
10
|
-
| mavenProjectConfig | optional
|
|
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
|
|
3
|
+
"version": "0.25.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.25.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": "^
|
|
30
|
+
"@types/node": "^26.1.1",
|
|
33
31
|
"concurrently": "^10.0.3",
|
|
34
|
-
"typescript": "^
|
|
35
|
-
"vitest": "4.1.
|
|
32
|
+
"typescript": "^7.0.2",
|
|
33
|
+
"vitest": "4.1.10",
|
|
34
|
+
"@alloy-js/cli": "~0.25.0",
|
|
35
|
+
"@alloy-js/rollup-plugin": "~0.2.0"
|
|
36
36
|
},
|
|
37
37
|
"type": "module",
|
|
38
38
|
"scripts": {
|
package/src/builtins/util.ts
CHANGED
|
@@ -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 {
|
package/src/components/Class.tsx
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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
|
|
9
|
+
import type { ModifierProps } from "./Modifiers.jsx";
|
|
10
|
+
import { Modifiers } from "./Modifiers.jsx";
|
|
7
11
|
import { Name } from "./Name.js";
|
|
8
|
-
import {
|
|
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
|
-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
|
package/src/components/Enum.tsx
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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
|
|
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,10 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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
|
|
8
|
+
import type { ModifierProps } from "./Modifiers.jsx";
|
|
9
|
+
import { Modifiers } from "./Modifiers.jsx";
|
|
6
10
|
import { Name } from "./Name.js";
|
|
7
|
-
import {
|
|
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
|
-
|
|
3
|
-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
${
|
|
167
|
-
${
|
|
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
|
-
|
|
269
|
+
: undefined
|
|
275
270
|
}${
|
|
276
|
-
resource.targetPath !== undefined
|
|
277
|
-
`
|
|
271
|
+
resource.targetPath !== undefined
|
|
272
|
+
? `
|
|
278
273
|
<targetPath>${resource.targetPath}</targetPath>`
|
|
279
|
-
|
|
274
|
+
: undefined
|
|
280
275
|
}
|
|
281
276
|
</resource>
|
|
282
277
|
`,
|