@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
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Class
|
|
2
2
|
|
|
3
|
+
Objects extend this interface to allow to take modifiers as boolean props. Then can declare components like so
|
|
4
|
+
|
|
5
|
+
`<Class public final abstract />`
|
|
6
|
+
|
|
7
|
+
Error will be thrown if try to specify multiple access modifiers
|
|
8
|
+
|
|
3
9
|
* jsx
|
|
4
10
|
|
|
5
11
|
```tsx
|
|
@@ -13,7 +19,7 @@
|
|
|
13
19
|
final
|
|
14
20
|
generics={Record<string, Children>}
|
|
15
21
|
implements={Children[]}
|
|
16
|
-
name={string | Namekey}
|
|
22
|
+
name={string | Namekey<NamekeyOptions>}
|
|
17
23
|
native
|
|
18
24
|
private
|
|
19
25
|
protected
|
|
@@ -24,7 +30,9 @@
|
|
|
24
30
|
synchronized
|
|
25
31
|
transient
|
|
26
32
|
volatile
|
|
27
|
-
|
|
33
|
+
>
|
|
34
|
+
{children}
|
|
35
|
+
</Class>
|
|
28
36
|
```
|
|
29
37
|
|
|
30
38
|
* stc
|
|
@@ -40,7 +48,7 @@
|
|
|
40
48
|
final: boolean,
|
|
41
49
|
generics: Record<string, Children>,
|
|
42
50
|
implements: Children[],
|
|
43
|
-
name: string | Namekey
|
|
51
|
+
name: string | Namekey<NamekeyOptions>,
|
|
44
52
|
native: boolean,
|
|
45
53
|
private: boolean,
|
|
46
54
|
protected: boolean,
|
|
@@ -56,23 +64,23 @@
|
|
|
56
64
|
|
|
57
65
|
## Props
|
|
58
66
|
|
|
59
|
-
| |
|
|
60
|
-
| ------------ |
|
|
61
|
-
| abstract | optional boolean
|
|
62
|
-
| children | optional[Children](../../../core/types/children/)
|
|
63
|
-
| default | optional boolean
|
|
64
|
-
| extends | optional[Children](../../../core/types/children/)
|
|
65
|
-
| final | optional boolean
|
|
66
|
-
| generics | optional Record\<string, [Children](../../../core/types/children/)>
|
|
67
|
-
| implements | optional[Children](../../../core/types/children/)\[]
|
|
68
|
-
| name | string \| [Namekey](../../../core/types/namekey/)
|
|
69
|
-
| native | optional boolean
|
|
70
|
-
| private | optional boolean
|
|
71
|
-
| protected | optional boolean
|
|
72
|
-
| public | optional boolean
|
|
73
|
-
| refkey | optional[Refkey](../../../core/types/refkey/)
|
|
74
|
-
| static | optional boolean
|
|
75
|
-
| strictfp | optional boolean
|
|
76
|
-
| synchronized | optional boolean
|
|
77
|
-
| transient | optional boolean
|
|
78
|
-
| volatile | optional boolean
|
|
67
|
+
| | | |
|
|
68
|
+
| ------------ | -------------------------------------------------------------------------------------------------------- | - |
|
|
69
|
+
| abstract | optional boolean | |
|
|
70
|
+
| children | optional[Children](../../../core/types/children/) | |
|
|
71
|
+
| default | optional boolean | |
|
|
72
|
+
| extends | optional[Children](../../../core/types/children/) | |
|
|
73
|
+
| final | optional boolean | |
|
|
74
|
+
| generics | optional Record\<string, [Children](../../../core/types/children/)> | |
|
|
75
|
+
| implements | optional[Children](../../../core/types/children/)\[] | |
|
|
76
|
+
| name | string \| [Namekey](../../../core/types/namekey/)<[NamekeyOptions](../../../core/types/namekeyoptions/)> | |
|
|
77
|
+
| native | optional boolean | |
|
|
78
|
+
| private | optional boolean | |
|
|
79
|
+
| protected | optional boolean | |
|
|
80
|
+
| public | optional boolean | |
|
|
81
|
+
| refkey | optional[Refkey](../../../core/types/refkey/) | |
|
|
82
|
+
| static | optional boolean | |
|
|
83
|
+
| strictfp | optional boolean | |
|
|
84
|
+
| synchronized | optional boolean | |
|
|
85
|
+
| transient | optional boolean | |
|
|
86
|
+
| volatile | optional boolean | |
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Declare a constructor, usually for a class or enum If no name is provided, will try take name from class or enum declaration
|
|
4
4
|
|
|
5
|
+
Objects extend this interface to allow to take modifiers as boolean props. Then can declare components like so
|
|
6
|
+
|
|
7
|
+
`<Class public final abstract />`
|
|
8
|
+
|
|
9
|
+
Error will be thrown if try to specify multiple access modifiers
|
|
10
|
+
|
|
5
11
|
* jsx
|
|
6
12
|
|
|
7
13
|
```tsx
|
|
@@ -9,10 +9,12 @@ Declare a symbol in the program. Declaring classes, interfaces, enums, etc. Shou
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
<Declaration
|
|
12
|
-
name={string | Namekey}
|
|
12
|
+
name={string | Namekey<NamekeyOptions>}
|
|
13
13
|
nameKind={JavaElements}
|
|
14
14
|
refkey={Refkey}
|
|
15
|
-
|
|
15
|
+
>
|
|
16
|
+
{children}
|
|
17
|
+
</Declaration>
|
|
16
18
|
```
|
|
17
19
|
|
|
18
20
|
* stc
|
|
@@ -22,7 +24,7 @@ Declare a symbol in the program. Declaring classes, interfaces, enums, etc. Shou
|
|
|
22
24
|
|
|
23
25
|
|
|
24
26
|
Declaration({
|
|
25
|
-
name: string | Namekey
|
|
27
|
+
name: string | Namekey<NamekeyOptions>,
|
|
26
28
|
nameKind: JavaElements,
|
|
27
29
|
refkey: Refkey,
|
|
28
30
|
}).children(children)
|
|
@@ -30,9 +32,9 @@ Declare a symbol in the program. Declaring classes, interfaces, enums, etc. Shou
|
|
|
30
32
|
|
|
31
33
|
## Props
|
|
32
34
|
|
|
33
|
-
| |
|
|
34
|
-
| -------- |
|
|
35
|
-
| children | optional[Children](../../../core/types/children/)
|
|
36
|
-
| name | string \| [Namekey](../../../core/types/namekey/) | |
|
|
37
|
-
| nameKind | optional[JavaElements](../../types/javaelements/)
|
|
38
|
-
| refkey | optional[Refkey](../../../core/types/refkey/)
|
|
35
|
+
| | | |
|
|
36
|
+
| -------- | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
|
|
37
|
+
| children | optional[Children](../../../core/types/children/) | |
|
|
38
|
+
| name | string \| [Namekey](../../../core/types/namekey/)<[NamekeyOptions](../../../core/types/namekeyoptions/)> | |
|
|
39
|
+
| nameKind | optional[JavaElements](../../types/javaelements/) | The name policy kind to apply to the declaration. |
|
|
40
|
+
| refkey | optional[Refkey](../../../core/types/refkey/) | |
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Enum
|
|
2
2
|
|
|
3
|
+
Objects extend this interface to allow to take modifiers as boolean props. Then can declare components like so
|
|
4
|
+
|
|
5
|
+
`<Class public final abstract />`
|
|
6
|
+
|
|
7
|
+
Error will be thrown if try to specify multiple access modifiers
|
|
8
|
+
|
|
3
9
|
* jsx
|
|
4
10
|
|
|
5
11
|
```tsx
|
|
@@ -11,7 +17,7 @@
|
|
|
11
17
|
default
|
|
12
18
|
final
|
|
13
19
|
implements={Children[]}
|
|
14
|
-
name={string | Namekey}
|
|
20
|
+
name={string | Namekey<NamekeyOptions>}
|
|
15
21
|
native
|
|
16
22
|
private
|
|
17
23
|
protected
|
|
@@ -22,7 +28,9 @@
|
|
|
22
28
|
synchronized
|
|
23
29
|
transient
|
|
24
30
|
volatile
|
|
25
|
-
|
|
31
|
+
>
|
|
32
|
+
{children}
|
|
33
|
+
</Enum>
|
|
26
34
|
```
|
|
27
35
|
|
|
28
36
|
* stc
|
|
@@ -36,7 +44,7 @@
|
|
|
36
44
|
default: boolean,
|
|
37
45
|
final: boolean,
|
|
38
46
|
implements: Children[],
|
|
39
|
-
name: string | Namekey
|
|
47
|
+
name: string | Namekey<NamekeyOptions>,
|
|
40
48
|
native: boolean,
|
|
41
49
|
private: boolean,
|
|
42
50
|
protected: boolean,
|
|
@@ -52,21 +60,21 @@
|
|
|
52
60
|
|
|
53
61
|
## Props
|
|
54
62
|
|
|
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
|
|
63
|
+
| | | |
|
|
64
|
+
| ------------ | -------------------------------------------------------------------------------------------------------- | - |
|
|
65
|
+
| abstract | optional boolean | |
|
|
66
|
+
| children | optional[Children](../../../core/types/children/) | |
|
|
67
|
+
| default | optional boolean | |
|
|
68
|
+
| final | optional boolean | |
|
|
69
|
+
| implements | optional[Children](../../../core/types/children/)\[] | |
|
|
70
|
+
| name | string \| [Namekey](../../../core/types/namekey/)<[NamekeyOptions](../../../core/types/namekeyoptions/)> | |
|
|
71
|
+
| native | optional boolean | |
|
|
72
|
+
| private | optional boolean | |
|
|
73
|
+
| protected | optional boolean | |
|
|
74
|
+
| public | optional boolean | |
|
|
75
|
+
| refkey | optional[Refkey](../../../core/types/refkey/) | |
|
|
76
|
+
| static | optional boolean | |
|
|
77
|
+
| strictfp | optional boolean | |
|
|
78
|
+
| synchronized | optional boolean | |
|
|
79
|
+
| transient | optional boolean | |
|
|
80
|
+
| volatile | optional boolean | |
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Interface
|
|
2
2
|
|
|
3
|
+
Objects extend this interface to allow to take modifiers as boolean props. Then can declare components like so
|
|
4
|
+
|
|
5
|
+
`<Class public final abstract />`
|
|
6
|
+
|
|
7
|
+
Error will be thrown if try to specify multiple access modifiers
|
|
8
|
+
|
|
3
9
|
* jsx
|
|
4
10
|
|
|
5
11
|
```tsx
|
|
@@ -12,7 +18,7 @@
|
|
|
12
18
|
extends={Children[]}
|
|
13
19
|
final
|
|
14
20
|
generics={Record<string, Children>}
|
|
15
|
-
name={string | Namekey}
|
|
21
|
+
name={string | Namekey<NamekeyOptions>}
|
|
16
22
|
native
|
|
17
23
|
private
|
|
18
24
|
protected
|
|
@@ -23,7 +29,9 @@
|
|
|
23
29
|
synchronized
|
|
24
30
|
transient
|
|
25
31
|
volatile
|
|
26
|
-
|
|
32
|
+
>
|
|
33
|
+
{children}
|
|
34
|
+
</Interface>
|
|
27
35
|
```
|
|
28
36
|
|
|
29
37
|
* stc
|
|
@@ -38,7 +46,7 @@
|
|
|
38
46
|
extends: Children[],
|
|
39
47
|
final: boolean,
|
|
40
48
|
generics: Record<string, Children>,
|
|
41
|
-
name: string | Namekey
|
|
49
|
+
name: string | Namekey<NamekeyOptions>,
|
|
42
50
|
native: boolean,
|
|
43
51
|
private: boolean,
|
|
44
52
|
protected: boolean,
|
|
@@ -54,22 +62,22 @@
|
|
|
54
62
|
|
|
55
63
|
## Props
|
|
56
64
|
|
|
57
|
-
| |
|
|
58
|
-
| ------------ |
|
|
59
|
-
| abstract | optional boolean
|
|
60
|
-
| children | optional[Children](../../../core/types/children/)
|
|
61
|
-
| default | optional boolean
|
|
62
|
-
| extends | optional[Children](../../../core/types/children/)\[]
|
|
63
|
-
| final | optional boolean
|
|
64
|
-
| generics | optional Record\<string, [Children](../../../core/types/children/)>
|
|
65
|
-
| name | string \| [Namekey](../../../core/types/namekey/)
|
|
66
|
-
| native | optional boolean
|
|
67
|
-
| private | optional boolean
|
|
68
|
-
| protected | optional boolean
|
|
69
|
-
| public | optional boolean
|
|
70
|
-
| refkey | optional[Refkey](../../../core/types/refkey/)
|
|
71
|
-
| static | optional boolean
|
|
72
|
-
| strictfp | optional boolean
|
|
73
|
-
| synchronized | optional boolean
|
|
74
|
-
| transient | optional boolean
|
|
75
|
-
| volatile | optional boolean
|
|
65
|
+
| | | |
|
|
66
|
+
| ------------ | -------------------------------------------------------------------------------------------------------- | - |
|
|
67
|
+
| abstract | optional boolean | |
|
|
68
|
+
| children | optional[Children](../../../core/types/children/) | |
|
|
69
|
+
| default | optional boolean | |
|
|
70
|
+
| extends | optional[Children](../../../core/types/children/)\[] | |
|
|
71
|
+
| final | optional boolean | |
|
|
72
|
+
| generics | optional Record\<string, [Children](../../../core/types/children/)> | |
|
|
73
|
+
| name | string \| [Namekey](../../../core/types/namekey/)<[NamekeyOptions](../../../core/types/namekeyoptions/)> | |
|
|
74
|
+
| native | optional boolean | |
|
|
75
|
+
| private | optional boolean | |
|
|
76
|
+
| protected | optional boolean | |
|
|
77
|
+
| public | optional boolean | |
|
|
78
|
+
| refkey | optional[Refkey](../../../core/types/refkey/) | |
|
|
79
|
+
| static | optional boolean | |
|
|
80
|
+
| strictfp | optional boolean | |
|
|
81
|
+
| synchronized | optional boolean | |
|
|
82
|
+
| transient | optional boolean | |
|
|
83
|
+
| volatile | optional boolean | |
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Shorthand to instantiate a new object. Declares it with ‘new’ and passes arguments to the constructor of the object, if any
|
|
4
4
|
|
|
5
|
+
Objects extend this interface to allow to take modifiers as boolean props. Then can declare components like so
|
|
6
|
+
|
|
7
|
+
`<Class public final abstract />`
|
|
8
|
+
|
|
9
|
+
Error will be thrown if try to specify multiple access modifiers
|
|
10
|
+
|
|
5
11
|
* jsx
|
|
6
12
|
|
|
7
13
|
```tsx
|
|
@@ -13,7 +19,7 @@ Shorthand to instantiate a new object. Declares it with ‘new’ and passes arg
|
|
|
13
19
|
args={Children[]}
|
|
14
20
|
default
|
|
15
21
|
final
|
|
16
|
-
name={string | Namekey}
|
|
22
|
+
name={string | Namekey<NamekeyOptions>}
|
|
17
23
|
native
|
|
18
24
|
private
|
|
19
25
|
protected
|
|
@@ -25,7 +31,9 @@ Shorthand to instantiate a new object. Declares it with ‘new’ and passes arg
|
|
|
25
31
|
transient
|
|
26
32
|
type={Children}
|
|
27
33
|
volatile
|
|
28
|
-
|
|
34
|
+
>
|
|
35
|
+
{children}
|
|
36
|
+
</ObjectDeclaration>
|
|
29
37
|
```
|
|
30
38
|
|
|
31
39
|
* stc
|
|
@@ -39,7 +47,7 @@ Shorthand to instantiate a new object. Declares it with ‘new’ and passes arg
|
|
|
39
47
|
args: Children[],
|
|
40
48
|
default: boolean,
|
|
41
49
|
final: boolean,
|
|
42
|
-
name: string | Namekey
|
|
50
|
+
name: string | Namekey<NamekeyOptions>,
|
|
43
51
|
native: boolean,
|
|
44
52
|
private: boolean,
|
|
45
53
|
protected: boolean,
|
|
@@ -56,22 +64,22 @@ Shorthand to instantiate a new object. Declares it with ‘new’ and passes arg
|
|
|
56
64
|
|
|
57
65
|
## Props
|
|
58
66
|
|
|
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
|
|
67
|
+
| | | |
|
|
68
|
+
| ------------ | -------------------------------------------------------------------------------------------------------- | - |
|
|
69
|
+
| abstract | optional boolean | |
|
|
70
|
+
| args | optional[Children](../../../core/types/children/)\[] | |
|
|
71
|
+
| children | optional[Children](../../../core/types/children/) | |
|
|
72
|
+
| default | optional boolean | |
|
|
73
|
+
| final | optional boolean | |
|
|
74
|
+
| name | string \| [Namekey](../../../core/types/namekey/)<[NamekeyOptions](../../../core/types/namekeyoptions/)> | |
|
|
75
|
+
| native | optional boolean | |
|
|
76
|
+
| private | optional boolean | |
|
|
77
|
+
| protected | optional boolean | |
|
|
78
|
+
| public | optional boolean | |
|
|
79
|
+
| refkey | optional[Refkey](../../../core/types/refkey/) | |
|
|
80
|
+
| static | optional boolean | |
|
|
81
|
+
| strictfp | optional boolean | |
|
|
82
|
+
| synchronized | optional boolean | |
|
|
83
|
+
| transient | optional boolean | |
|
|
84
|
+
| type | [Children](../../../core/types/children/) | |
|
|
85
|
+
| volatile | optional boolean | |
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Parameters
|
|
2
2
|
|
|
3
3
|
Render a set of parameters for a method or constructor
|
|
4
4
|
|
|
5
5
|
* jsx
|
|
6
6
|
|
|
7
7
|
```tsx
|
|
8
|
-
import {
|
|
8
|
+
import { Parameters } from "@alloy-js/java";
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
<
|
|
11
|
+
<Parameters parameters={Record<string, Children>} />
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
* stc
|
|
15
15
|
|
|
16
16
|
```ts
|
|
17
|
-
import {
|
|
17
|
+
import { Parameters } from "@alloy-js/java/stc";
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
Parameters({ parameters: Record<string, Children> }).children(children)
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## Props
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# PomFile
|
|
2
|
+
|
|
3
|
+
* jsx
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
import { PomFile } from "@alloy-js/java";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
<PomFile projectConfig={MavenProjectConfig} />
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
* stc
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import { PomFile } from "@alloy-js/java/stc";
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
PomFile({ projectConfig: MavenProjectConfig }).children(children)
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Props
|
|
22
|
+
|
|
23
|
+
| | | |
|
|
24
|
+
| ------------- | ----------------------------------------------------- | - |
|
|
25
|
+
| projectConfig | [MavenProjectConfig](../../types/mavenprojectconfig/) | |
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Variable
|
|
2
2
|
|
|
3
|
+
Objects extend this interface to allow to take modifiers as boolean props. Then can declare components like so
|
|
4
|
+
|
|
5
|
+
`<Class public final abstract />`
|
|
6
|
+
|
|
7
|
+
Error will be thrown if try to specify multiple access modifiers
|
|
8
|
+
|
|
3
9
|
* jsx
|
|
4
10
|
|
|
5
11
|
```tsx
|
|
@@ -10,7 +16,7 @@
|
|
|
10
16
|
abstract
|
|
11
17
|
default
|
|
12
18
|
final
|
|
13
|
-
name={string | Namekey}
|
|
19
|
+
name={string | Namekey<NamekeyOptions>}
|
|
14
20
|
native
|
|
15
21
|
private
|
|
16
22
|
protected
|
|
@@ -35,7 +41,7 @@
|
|
|
35
41
|
abstract: boolean,
|
|
36
42
|
default: boolean,
|
|
37
43
|
final: boolean,
|
|
38
|
-
name: string | Namekey
|
|
44
|
+
name: string | Namekey<NamekeyOptions>,
|
|
39
45
|
native: boolean,
|
|
40
46
|
private: boolean,
|
|
41
47
|
protected: boolean,
|
|
@@ -52,20 +58,20 @@
|
|
|
52
58
|
|
|
53
59
|
## Props
|
|
54
60
|
|
|
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
|
|
61
|
+
| | | |
|
|
62
|
+
| ------------ | -------------------------------------------------------------------------------------------------------- | - |
|
|
63
|
+
| abstract | optional boolean | |
|
|
64
|
+
| default | optional boolean | |
|
|
65
|
+
| final | optional boolean | |
|
|
66
|
+
| name | string \| [Namekey](../../../core/types/namekey/)<[NamekeyOptions](../../../core/types/namekeyoptions/)> | |
|
|
67
|
+
| native | optional boolean | |
|
|
68
|
+
| private | optional boolean | |
|
|
69
|
+
| protected | optional boolean | |
|
|
70
|
+
| public | optional boolean | |
|
|
71
|
+
| static | optional boolean | |
|
|
72
|
+
| strictfp | optional boolean | |
|
|
73
|
+
| synchronized | optional boolean | |
|
|
74
|
+
| transient | optional boolean | |
|
|
75
|
+
| type | [Children](../../../core/types/children/) | |
|
|
76
|
+
| value | optional[Children](../../../core/types/children/) | |
|
|
77
|
+
| volatile | optional boolean | |
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
# java — components
|
|
2
2
|
|
|
3
3
|
- [ArgumentList](ArgumentList.md) — A list of arguments to be passed to a function, constructor, enum, and so forth.
|
|
4
|
-
- [Class](Class.md) —
|
|
4
|
+
- [Class](Class.md) — Objects extend this interface to allow to take modifiers as boolean props.
|
|
5
5
|
- [Constructor](Constructor.md) — Declare a constructor, usually for a class or enum If no name is provided, will try take name from class or enum declara
|
|
6
6
|
- [Declaration](Declaration.md) — Declare a symbol in the program.
|
|
7
|
-
- [Enum](Enum.md) —
|
|
8
|
-
- [EnumMember](EnumMember.md) —
|
|
7
|
+
- [Enum](Enum.md) — Objects extend this interface to allow to take modifiers as boolean props.
|
|
8
|
+
- [EnumMember](EnumMember.md) — Objects extend this interface to allow to take modifiers as boolean props.
|
|
9
9
|
- [EnumMemberList](EnumMemberList.md) — Create a list of enum members, joining with a comma and a hardline, and ending with a semicolon.
|
|
10
10
|
- [ExtendsClause](ExtendsClause.md) — The extends clause for a class or interface.
|
|
11
11
|
- [ImplementsClause](ImplementsClause.md) — The implements clause for a class, interface, or enum.
|
|
12
12
|
- [ImportStatement](ImportStatement.md) — import { ImportStatement } from "@alloy-js/java";
|
|
13
13
|
- [ImportStatements](ImportStatements.md) — import { ImportStatements } from "@alloy-js/java";
|
|
14
|
-
- [Interface](Interface.md) —
|
|
14
|
+
- [Interface](Interface.md) — Objects extend this interface to allow to take modifiers as boolean props.
|
|
15
15
|
- [MavenProject](MavenProject.md) — Represents a maven project.
|
|
16
|
-
- [Method](Method.md) —
|
|
16
|
+
- [Method](Method.md) — Objects extend this interface to allow to take modifiers as boolean props.
|
|
17
17
|
- [Modifiers](Modifiers.md) — Renders the modifiers based on the provided props.
|
|
18
18
|
- [Name](Name.md) — import { Name } from "@alloy-js/java";
|
|
19
19
|
- [NamedArgumentList](NamedArgumentList.md) — Collect a set of named arguments.
|
|
20
20
|
- [ObjectDeclaration](ObjectDeclaration.md) — Shorthand to instantiate a new object.
|
|
21
21
|
- [PackageDirectory](PackageDirectory.md) — import { PackageDirectory } from "@alloy-js/java";
|
|
22
|
-
- [
|
|
22
|
+
- [Parameters](Parameters.md) — Render a set of parameters for a method or constructor
|
|
23
|
+
- [PomFile](PomFile.md) — import { PomFile } from "@alloy-js/java";
|
|
23
24
|
- [PomFileBuild](PomFileBuild.md) — import { PomFileBuild } from "@alloy-js/java";
|
|
24
25
|
- [ProjectDirectory](ProjectDirectory.md) — Represents a java project directory.
|
|
25
26
|
- [Reference](Reference.md) — import { Reference } from "@alloy-js/java";
|
|
@@ -28,4 +29,4 @@
|
|
|
28
29
|
- [TypeParameters](TypeParameters.md) — Render a set of generic types for a method or class.
|
|
29
30
|
- [usePackage](usePackage.md) — import { usePackage } from "@alloy-js/java";
|
|
30
31
|
- [Value](Value.md) — import { Value } from "@alloy-js/java";
|
|
31
|
-
- [Variable](Variable.md) —
|
|
32
|
+
- [Variable](Variable.md) — Objects extend this interface to allow to take modifiers as boolean props.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# java — contexts
|
|
2
2
|
|
|
3
|
-
- [PackageDirectory context](PackageDirectory-context.md) — const PackageDirectoryContext: ComponentContext<PackageDirectoryContext
|
|
4
|
-
- [Project context](Project-context.md) — const ProjectContext: ComponentContext<ProjectContext
|
|
5
|
-
- [SourceFile context](SourceFile-context.md) — const SourceFileContext: ComponentContext<SourceFileContext
|
|
3
|
+
- [PackageDirectory context](PackageDirectory-context.md) — const PackageDirectoryContext: ComponentContext<PackageDirectoryContext>;
|
|
4
|
+
- [Project context](Project-context.md) — const ProjectContext: ComponentContext<ProjectContext>;
|
|
5
|
+
- [SourceFile context](SourceFile-context.md) — const SourceFileContext: ComponentContext<SourceFileContext>;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { createLibrary } from "@alloy-js/java";
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
function createLibrary<
|
|
7
|
+
function createLibrary<T extends LibraryDescriptor>(props: CreateLibraryProps<T>): LibraryRefkeys<T> & SymbolCreator;
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Parameters
|