@alloy-js/java 0.26.0 → 0.27.0-dev.1
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/docs/api/components/Class.md +31 -23
- package/docs/api/components/Constructor.md +6 -0
- package/docs/api/components/Declaration.md +11 -9
- package/docs/api/components/Enum.md +29 -21
- package/docs/api/components/EnumMember.md +6 -0
- package/docs/api/components/Interface.md +30 -22
- package/docs/api/components/Method.md +6 -0
- package/docs/api/components/ObjectDeclaration.md +30 -22
- package/docs/api/components/{Parameters_2.md → Parameters.md} +5 -5
- package/docs/api/components/PomFile.md +25 -0
- package/docs/api/components/Variable.md +25 -19
- package/docs/api/components/index.md +8 -7
- package/docs/api/contexts/PackageDirectory-context.md +1 -1
- package/docs/api/contexts/Project-context.md +1 -1
- package/docs/api/contexts/SourceFile-context.md +1 -1
- package/docs/api/contexts/index.md +3 -3
- package/docs/api/functions/createLibrary.md +1 -1
- package/docs/api/functions/ref.md +3 -3
- package/docs/api/index.md +1 -1
- package/docs/api/types/CommonDeclarationProps.md +5 -5
- package/docs/api/types/JavaLexicalScope.md +14 -4
- package/docs/api/types/JavaOutputSymbol.md +7 -7
- package/docs/api/types/JavaPackageScope.md +15 -5
- package/docs/api/types/JavaProjectScope.md +2 -2
- package/docs/api/types/LibraryDescriptor.md +3 -3
- package/docs/api/types/LibraryRefkeys.md +1 -3
- package/docs/api/types/MavenProjectConfig.md +11 -11
- package/docs/api/types/index.md +3 -3
- package/docs/api/variables/index.md +1 -1
- package/docs/api/variables/javaUtil.md +1 -3
- package/package.json +7 -9
- package/api-extractor.json +0 -4
- package/temp/api.json +0 -6846
- package/tsdoc-metadata.json +0 -11
|
@@ -11,9 +11,9 @@ function ref(refkey: Refkey): () => string;
|
|
|
11
11
|
|
|
12
12
|
## Parameters
|
|
13
13
|
|
|
14
|
-
| | |
|
|
15
|
-
| ------ | ------ |
|
|
16
|
-
| refkey | Refkey |
|
|
14
|
+
| | | |
|
|
15
|
+
| ------ | ------ | ----------------------- |
|
|
16
|
+
| refkey | Refkey | Reference key to symbol |
|
|
17
17
|
|
|
18
18
|
## Returns
|
|
19
19
|
|
package/docs/api/index.md
CHANGED
|
@@ -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/)<[NamekeyOptions](../../../core/types/namekeyoptions/)> | |
|
|
9
|
+
| refkey | optional[Refkey](../../../core/types/refkey/) | |
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
# JavaLexicalScope
|
|
2
2
|
|
|
3
|
+
A container of symbols accessible within some scope in your output code.
|
|
4
|
+
|
|
3
5
|
## Members
|
|
4
6
|
|
|
5
7
|
Extends [OutputScope](../../../core/types/outputscope/)
|
|
6
8
|
|
|
7
|
-
| |
|
|
8
|
-
| ----------------- |
|
|
9
|
-
| declarationSpaces | string\[]
|
|
10
|
-
| symbols |
|
|
9
|
+
| | | |
|
|
10
|
+
| ----------------- | ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
11
|
+
| declarationSpaces | string\[] | The declaration space keys for this scope type. Subclasses override this to declare which declaration spaces are created on construction (e.g., `["types", "values"]`). |
|
|
12
|
+
| symbols | [OutputSpace](../../../core/types/outputspace/) | |
|
|
13
|
+
|
|
14
|
+
## Remarks
|
|
15
|
+
|
|
16
|
+
Scopes form a tree. All scopes except the global scope have a parent scope identified by `parent`. Scopes can have nested scopes which can be accessed using the `children` property. Whether a child scope can be accessed from the parent scope is determined by each language’s scoping rules.
|
|
17
|
+
|
|
18
|
+
This interface is the base implementation of scope. Generally, most languages will have subtypes of this interface that provide additional metadata about the scope. For example, TypeScript scopes need to track whether the scope represents a package, module, class, function, etc.
|
|
19
|
+
|
|
20
|
+
Scopes are reactive values, which allows you to observe changes to the scope within a reactive context.
|
|
@@ -6,10 +6,10 @@ Represents an ‘exported’ symbol from a .java file. Class, enum, interface et
|
|
|
6
6
|
|
|
7
7
|
Extends [OutputSymbol](../../../core/types/outputsymbol/)
|
|
8
8
|
|
|
9
|
-
| |
|
|
10
|
-
| ------------ |
|
|
11
|
-
| constructor | (name: string \| Namekey
|
|
12
|
-
|
|
|
13
|
-
| debugInfo | Record\<string, unknown>
|
|
14
|
-
|
|
|
15
|
-
|
|
|
9
|
+
| | | |
|
|
10
|
+
| ------------ | --------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
11
|
+
| constructor | (name: string \| Namekey\<NamekeyOptions>, spaces: OutputSpace \| OutputSpace\[] \| undefined, options?: JavaOutputSymbolOptions) | |
|
|
12
|
+
| memberSpaces | readonly \[“static”, “instance”] | The member space keys for this symbol type. Subclasses override this to declare which member spaces are created on construction (e.g., `["static", "instance"]`). |
|
|
13
|
+
| debugInfo | Record\<string, unknown> | |
|
|
14
|
+
| package | string \| undefined | Fully qualified package name |
|
|
15
|
+
| copy | () => JavaOutputSymbol | Create a clone of this symbol whose name and flags reactively track the original. |
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
# JavaPackageScope
|
|
2
2
|
|
|
3
|
+
A container of symbols accessible within some scope in your output code.
|
|
4
|
+
|
|
3
5
|
## Members
|
|
4
6
|
|
|
5
7
|
Extends [OutputScope](../../../core/types/outputscope/)
|
|
6
8
|
|
|
7
|
-
| |
|
|
8
|
-
| ----------------- |
|
|
9
|
-
| declarationSpaces | readonly \[“symbols”]
|
|
10
|
-
| kind | string
|
|
11
|
-
| symbols |
|
|
9
|
+
| | | |
|
|
10
|
+
| ----------------- | ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
11
|
+
| declarationSpaces | readonly \[“symbols”] | The declaration space keys for this scope type. Subclasses override this to declare which declaration spaces are created on construction (e.g., `["types", "values"]`). |
|
|
12
|
+
| kind | string | |
|
|
13
|
+
| symbols | [OutputSpace](../../../core/types/outputspace/) | |
|
|
14
|
+
|
|
15
|
+
## Remarks
|
|
16
|
+
|
|
17
|
+
Scopes form a tree. All scopes except the global scope have a parent scope identified by `parent`. Scopes can have nested scopes which can be accessed using the `children` property. Whether a child scope can be accessed from the parent scope is determined by each language’s scoping rules.
|
|
18
|
+
|
|
19
|
+
This interface is the base implementation of scope. Generally, most languages will have subtypes of this interface that provide additional metadata about the scope. For example, TypeScript scopes need to track whether the scope represents a package, module, class, function, etc.
|
|
20
|
+
|
|
21
|
+
Scopes are reactive values, which allows you to observe changes to the scope within a reactive context.
|
|
@@ -8,10 +8,10 @@ Extends [OutputScope](../../../core/types/outputscope/)
|
|
|
8
8
|
|
|
9
9
|
| | | |
|
|
10
10
|
| ------------------- | ------------------------------------------------------------- | ------------------------------------------------------------------------- |
|
|
11
|
-
| constructor | (name: string, options
|
|
12
|
-
| addDependency | (dependency: JavaDependency) => string | |
|
|
11
|
+
| constructor | (name: string, options?: JavaProjectScopeOptions) | |
|
|
13
12
|
| dependencies | Map\<string, [JavaDependency](../javadependency/)> | The dependencies of this project Map qualified package name to dependency |
|
|
14
13
|
| gradleProjectConfig | [GradleProjectConfig](../gradleprojectconfig/) \| undefined | Define project configuration. Either maven or gradle |
|
|
15
14
|
| kind | string | |
|
|
16
15
|
| mavenProjectConfig | [MavenProjectConfig](../mavenprojectconfig/) \| undefined | Define project configuration. Either maven or gradle |
|
|
16
|
+
| addDependency | (dependency: JavaDependency) => string | |
|
|
17
17
|
| set | (mavenProjectConfig: MavenProjectConfig \| undefined) => void | |
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# LibraryRefkeys
|
|
2
2
|
|
|
3
3
|
```ts
|
|
4
|
-
type LibraryRefkeys<T extends LibraryDescriptor> = {
|
|
5
|
-
[S in T[keyof T] extends readonly string[] ? T[keyof T][number] : never]: Refkey;
|
|
6
|
-
};
|
|
4
|
+
type LibraryRefkeys<T extends LibraryDescriptor> = { [S in T[keyof T] extends readonly string[] ? T[keyof T][number] : never]: Refkey };
|
|
7
5
|
```
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## Members
|
|
4
4
|
|
|
5
|
-
| |
|
|
6
|
-
| ------------------ |
|
|
7
|
-
| artifactId | string
|
|
8
|
-
| build | optional { plugins?: {
|
|
9
|
-
| description | optional string
|
|
10
|
-
| groupId | string
|
|
11
|
-
| javaVersion | number
|
|
12
|
-
| name | optional string
|
|
13
|
-
| pluginRepositories | optional { id: string; url: string
|
|
14
|
-
| repositories | optional { id: string; url: string
|
|
15
|
-
| version | string
|
|
5
|
+
| | | |
|
|
6
|
+
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | - |
|
|
7
|
+
| artifactId | string | |
|
|
8
|
+
| build | optional { plugins?: { artifactId: string; configuration?: Record\<string, any>; executions?: { goals?: string\[]; id?: string; phase?: string }\[]; groupId: string; version?: string }\[]; resources?: { directory: string; excludes?: string\[]; filtering?: boolean; includes?: string\[]; targetPath?: string }\[] } | |
|
|
9
|
+
| description | optional string | |
|
|
10
|
+
| groupId | string | |
|
|
11
|
+
| javaVersion | number | |
|
|
12
|
+
| name | optional string | |
|
|
13
|
+
| pluginRepositories | optional { id: string; url: string }\[] | |
|
|
14
|
+
| repositories | optional { id: string; url: string }\[] | |
|
|
15
|
+
| version | string | |
|
package/docs/api/types/index.md
CHANGED
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
- [GradleProjectConfig](GradleProjectConfig.md)
|
|
7
7
|
- [JavaDependency](JavaDependency.md) — Represents an external dependency imported through a maven or gradle project
|
|
8
8
|
- [JavaElements](JavaElements.md) — type JavaElements = "class" | "interface" | "enum" | "enum-member" | "function" | "parameter" | "constant" | "variable"
|
|
9
|
-
- [JavaLexicalScope](JavaLexicalScope.md) —
|
|
9
|
+
- [JavaLexicalScope](JavaLexicalScope.md) — A container of symbols accessible within some scope in your output code.
|
|
10
10
|
- [JavaOutputScope](JavaOutputScope.md) — type JavaOutputScope = JavaProjectScope | JavaPackageScope;
|
|
11
11
|
- [JavaOutputSymbol](JavaOutputSymbol.md) — Represents an ‘exported’ symbol from a .java file.
|
|
12
12
|
- [JavaOutputSymbolOptions](JavaOutputSymbolOptions.md) — Extends [OutputSymbolOptions](../../../core/types/outputsymboloptions/)
|
|
13
|
-
- [JavaPackageScope](JavaPackageScope.md) —
|
|
13
|
+
- [JavaPackageScope](JavaPackageScope.md) — A container of symbols accessible within some scope in your output code.
|
|
14
14
|
- [JavaProjectScope](JavaProjectScope.md) — Represents the java project itself (maven, gradle, etc)
|
|
15
15
|
- [JavaProjectScopeOptions](JavaProjectScopeOptions.md) — Extends [OutputScopeOptions](../../../core/types/outputscopeoptions/)
|
|
16
16
|
- [LibraryDescriptor](LibraryDescriptor.md)
|
|
17
|
-
- [LibraryRefkeys](LibraryRefkeys.md) — type LibraryRefkeys<T extends LibraryDescriptor> = {
|
|
17
|
+
- [LibraryRefkeys](LibraryRefkeys.md) — type LibraryRefkeys<T extends LibraryDescriptor> = { [S in T[keyof T] extends readonly string[] ?
|
|
18
18
|
- [MavenProjectConfig](MavenProjectConfig.md)
|
|
19
19
|
- [NamedTypeArgumentDescriptor](NamedTypeArgumentDescriptor.md)
|
|
20
20
|
- [SuperTypeArgumentDescriptor](SuperTypeArgumentDescriptor.md)
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# javaUtil
|
|
2
2
|
|
|
3
3
|
```ts
|
|
4
|
-
javaUtil:
|
|
5
|
-
readonly "java.util": ["Collection", "Comparator", "Deque", "Enumeration", "EventListener", "Formattable", "Iterator", "List", "ListIterator", "Map", "Map.Entry", "NavigableMap", "NavigableSet", "Observer", "PrimitiveIterator", "Queue", "RandomAccess", "Set", "SortedMap", "SortedSet", "Spliterator", "AbstractCollection", "AbstractList", "AbstractMap", "AbstractQueue", "AbstractSequentialList", "AbstractSet", "ArrayDeque", "ArrayList", "Arrays", "Base64", "BitSet", "Calendar", "Collections", "Currency", "Date", "Dictionary", "DoubleSummaryStatistics", "EnumMap", "EnumSet", "EventListenerProxy", "EventObject", "FormattableFlags", "Formatter", "GregorianCalendar", "HashMap", "HashSet", "Hashtable", "IdentityHashMap", "IntSummaryStatistics", "LinkedHashMap", "LinkedHashSet", "LinkedList", "ListResourceBundle", "Locale", "LongSummaryStatistics", "Objects", "Observable", "Optional", "OptionalDouble", "OptionalInt", "OptionalLong", "PriorityQueue", "Properties", "PropertyPermission", "PropertyResourceBundle", "Random", "ResourceBundle", "ResourceBundle.Control", "Scanner", "ServiceLoader", "SimpleTimeZone", "Spliterators", "SplittableRandom", "Stack", "StringJoiner", "StringTokenizer", "Timer", "TimerTask", "TimeZone", "TreeMap", "TreeSet", "UUID", "Vector", "WeakHashMap", "ConcurrentModificationException", "DuplicateFormatFlagsException", "EmptyStackException", "FormatFlagsConversionMismatchException", "FormatterClosedException", "IllegalFormatCodePointException", "IllegalFormatConversionException", "IllegalFormatException", "IllegalFormatFlagsException", "IllegalFormatPrecisionException", "IllegalFormatWidthException", "IllformedLocaleException", "InputMismatchException", "InvalidPropertiesFormatException", "MissingFormatArgumentException", "MissingFormatWidthException", "MissingResourceException", "NoSuchElementException", "TooManyListenersException", "UnknownFormatConversionException", "UnknownFormatFlagsException"];
|
|
6
|
-
}> & SymbolCreator
|
|
4
|
+
const javaUtil: LibraryRefkeys<{ java.util: ["Collection", "Comparator", "Deque", "Enumeration", "EventListener", "Formattable", "Iterator", "List", "ListIterator", "Map", "Map.Entry", "NavigableMap", "NavigableSet", "Observer", "PrimitiveIterator"] }> & SymbolCreator;
|
|
7
5
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alloy-js/java",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0-dev.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,24 +20,22 @@
|
|
|
20
20
|
"author": "brian.terlson@microsoft.com",
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
|
+
"@alloy-js/core": "~0.26.0 || >= 0.27.0-dev.1",
|
|
23
24
|
"change-case": "^5.4.4",
|
|
24
|
-
"pathe": "^2.0.3"
|
|
25
|
-
"@alloy-js/core": "~0.26.0"
|
|
25
|
+
"pathe": "^2.0.3"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@
|
|
28
|
+
"@alloy-js/cli": "~0.26.0 || >= 0.27.0-dev.0",
|
|
29
|
+
"@alloy-js/rollup-plugin": "~0.2.0 || >= 0.2.1-dev.0",
|
|
29
30
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
30
31
|
"@types/node": "^26.1.1",
|
|
31
32
|
"concurrently": "^10.0.3",
|
|
32
33
|
"typescript": "^7.0.2",
|
|
33
|
-
"vitest": "4.1.10"
|
|
34
|
-
"@alloy-js/cli": "~0.26.0",
|
|
35
|
-
"@alloy-js/rollup-plugin": "~0.2.0"
|
|
34
|
+
"vitest": "4.1.10"
|
|
36
35
|
},
|
|
37
36
|
"type": "module",
|
|
38
37
|
"scripts": {
|
|
39
|
-
"
|
|
40
|
-
"build": "alloy build --with-dev && pnpm run generate-docs",
|
|
38
|
+
"build": "alloy build --with-dev",
|
|
41
39
|
"clean": "rimraf dist/ .temp/",
|
|
42
40
|
"test:watch": "vitest -w",
|
|
43
41
|
"watch": "alloy build --watch",
|
package/api-extractor.json
DELETED