@openrewrite/rewrite 0.18.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 (172) hide show
  1. package/CONTRIBUTING.md +22 -0
  2. package/LICENSE +201 -0
  3. package/README.md +13 -0
  4. package/dist/src/core/execution.d.ts +35 -0
  5. package/dist/src/core/execution.d.ts.map +1 -0
  6. package/dist/src/core/execution.js +65 -0
  7. package/dist/src/core/execution.js.map +1 -0
  8. package/dist/src/core/index.d.ts +6 -0
  9. package/dist/src/core/index.d.ts.map +1 -0
  10. package/dist/src/core/index.js +22 -0
  11. package/dist/src/core/index.js.map +1 -0
  12. package/dist/src/core/markers.d.ts +56 -0
  13. package/dist/src/core/markers.d.ts.map +1 -0
  14. package/dist/src/core/markers.js +140 -0
  15. package/dist/src/core/markers.js.map +1 -0
  16. package/dist/src/core/parser.d.ts +34 -0
  17. package/dist/src/core/parser.d.ts.map +1 -0
  18. package/dist/src/core/parser.js +106 -0
  19. package/dist/src/core/parser.js.map +1 -0
  20. package/dist/src/core/tree.d.ts +195 -0
  21. package/dist/src/core/tree.d.ts.map +1 -0
  22. package/dist/src/core/tree.js +455 -0
  23. package/dist/src/core/tree.js.map +1 -0
  24. package/dist/src/core/utils.d.ts +12 -0
  25. package/dist/src/core/utils.d.ts.map +1 -0
  26. package/dist/src/core/utils.js +69 -0
  27. package/dist/src/core/utils.js.map +1 -0
  28. package/dist/src/index.d.ts +2 -0
  29. package/dist/src/index.d.ts.map +1 -0
  30. package/dist/src/index.js +3 -0
  31. package/dist/src/index.js.map +1 -0
  32. package/dist/src/java/extensions.d.ts +7 -0
  33. package/dist/src/java/extensions.d.ts.map +1 -0
  34. package/dist/src/java/extensions.js +53 -0
  35. package/dist/src/java/extensions.js.map +1 -0
  36. package/dist/src/java/index.d.ts +4 -0
  37. package/dist/src/java/index.d.ts.map +1 -0
  38. package/dist/src/java/index.js +20 -0
  39. package/dist/src/java/index.js.map +1 -0
  40. package/dist/src/java/markers.d.ts +20 -0
  41. package/dist/src/java/markers.d.ts.map +1 -0
  42. package/dist/src/java/markers.js +54 -0
  43. package/dist/src/java/markers.js.map +1 -0
  44. package/dist/src/java/tree/extensions.d.ts +6 -0
  45. package/dist/src/java/tree/extensions.d.ts.map +1 -0
  46. package/dist/src/java/tree/extensions.js +36 -0
  47. package/dist/src/java/tree/extensions.js.map +1 -0
  48. package/dist/src/java/tree/index.d.ts +4 -0
  49. package/dist/src/java/tree/index.d.ts.map +1 -0
  50. package/dist/src/java/tree/index.js +20 -0
  51. package/dist/src/java/tree/index.js.map +1 -0
  52. package/dist/src/java/tree/support_types.d.ts +396 -0
  53. package/dist/src/java/tree/support_types.d.ts.map +1 -0
  54. package/dist/src/java/tree/support_types.js +450 -0
  55. package/dist/src/java/tree/support_types.js.map +1 -0
  56. package/dist/src/java/tree/tree.d.ts +3377 -0
  57. package/dist/src/java/tree/tree.d.ts.map +1 -0
  58. package/dist/src/java/tree/tree.js +4613 -0
  59. package/dist/src/java/tree/tree.js.map +1 -0
  60. package/dist/src/java/tree/types.d.ts +80 -0
  61. package/dist/src/java/tree/types.d.ts.map +1 -0
  62. package/dist/src/java/tree/types.js +138 -0
  63. package/dist/src/java/tree/types.js.map +1 -0
  64. package/dist/src/java/visitor.d.ts +82 -0
  65. package/dist/src/java/visitor.d.ts.map +1 -0
  66. package/dist/src/java/visitor.js +872 -0
  67. package/dist/src/java/visitor.js.map +1 -0
  68. package/dist/src/javascript/extensions.d.ts +12 -0
  69. package/dist/src/javascript/extensions.d.ts.map +1 -0
  70. package/dist/src/javascript/extensions.js +60 -0
  71. package/dist/src/javascript/extensions.js.map +1 -0
  72. package/dist/src/javascript/index.d.ts +6 -0
  73. package/dist/src/javascript/index.d.ts.map +1 -0
  74. package/dist/src/javascript/index.js +22 -0
  75. package/dist/src/javascript/index.js.map +1 -0
  76. package/dist/src/javascript/markers.d.ts +2 -0
  77. package/dist/src/javascript/markers.d.ts.map +1 -0
  78. package/dist/src/javascript/markers.js +3 -0
  79. package/dist/src/javascript/markers.js.map +1 -0
  80. package/dist/src/javascript/parser.d.ts +268 -0
  81. package/dist/src/javascript/parser.d.ts.map +1 -0
  82. package/dist/src/javascript/parser.js +1137 -0
  83. package/dist/src/javascript/parser.js.map +1 -0
  84. package/dist/src/javascript/parserUtils.d.ts +7 -0
  85. package/dist/src/javascript/parserUtils.d.ts.map +1 -0
  86. package/dist/src/javascript/parserUtils.js +165 -0
  87. package/dist/src/javascript/parserUtils.js.map +1 -0
  88. package/dist/src/javascript/projectParser.d.ts +25 -0
  89. package/dist/src/javascript/projectParser.d.ts.map +1 -0
  90. package/dist/src/javascript/projectParser.js +149 -0
  91. package/dist/src/javascript/projectParser.js.map +1 -0
  92. package/dist/src/javascript/projectParserMain.d.ts +3 -0
  93. package/dist/src/javascript/projectParserMain.d.ts.map +1 -0
  94. package/dist/src/javascript/projectParserMain.js +59 -0
  95. package/dist/src/javascript/projectParserMain.js.map +1 -0
  96. package/dist/src/javascript/tree/extensions.d.ts +4 -0
  97. package/dist/src/javascript/tree/extensions.d.ts.map +1 -0
  98. package/dist/src/javascript/tree/extensions.js +80 -0
  99. package/dist/src/javascript/tree/extensions.js.map +1 -0
  100. package/dist/src/javascript/tree/index.d.ts +3 -0
  101. package/dist/src/javascript/tree/index.d.ts.map +1 -0
  102. package/dist/src/javascript/tree/index.js +19 -0
  103. package/dist/src/javascript/tree/index.js.map +1 -0
  104. package/dist/src/javascript/tree/support_types.d.ts +184 -0
  105. package/dist/src/javascript/tree/support_types.d.ts.map +1 -0
  106. package/dist/src/javascript/tree/support_types.js +224 -0
  107. package/dist/src/javascript/tree/support_types.js.map +1 -0
  108. package/dist/src/javascript/tree/tree.d.ts +1173 -0
  109. package/dist/src/javascript/tree/tree.d.ts.map +1 -0
  110. package/dist/src/javascript/tree/tree.js +1590 -0
  111. package/dist/src/javascript/tree/tree.js.map +1 -0
  112. package/dist/src/javascript/typeMapping.d.ts +16 -0
  113. package/dist/src/javascript/typeMapping.d.ts.map +1 -0
  114. package/dist/src/javascript/typeMapping.js +120 -0
  115. package/dist/src/javascript/typeMapping.js.map +1 -0
  116. package/dist/src/javascript/visitor.d.ts +41 -0
  117. package/dist/src/javascript/visitor.d.ts.map +1 -0
  118. package/dist/src/javascript/visitor.js +360 -0
  119. package/dist/src/javascript/visitor.js.map +1 -0
  120. package/dist/src/json/extensions.d.ts +6 -0
  121. package/dist/src/json/extensions.d.ts.map +1 -0
  122. package/dist/src/json/extensions.js +11 -0
  123. package/dist/src/json/extensions.js.map +1 -0
  124. package/dist/src/json/index.d.ts +5 -0
  125. package/dist/src/json/index.d.ts.map +1 -0
  126. package/dist/src/json/index.js +21 -0
  127. package/dist/src/json/index.js.map +1 -0
  128. package/dist/src/json/markers.d.ts +2 -0
  129. package/dist/src/json/markers.d.ts.map +1 -0
  130. package/dist/src/json/markers.js +3 -0
  131. package/dist/src/json/markers.js.map +1 -0
  132. package/dist/src/json/support_types.d.ts +19 -0
  133. package/dist/src/json/support_types.d.ts.map +1 -0
  134. package/dist/src/json/support_types.js +47 -0
  135. package/dist/src/json/support_types.js.map +1 -0
  136. package/dist/src/json/tree.d.ts +187 -0
  137. package/dist/src/json/tree.d.ts.map +1 -0
  138. package/dist/src/json/tree.js +393 -0
  139. package/dist/src/json/tree.js.map +1 -0
  140. package/dist/src/json/visitor.d.ts +16 -0
  141. package/dist/src/json/visitor.d.ts.map +1 -0
  142. package/dist/src/json/visitor.js +83 -0
  143. package/dist/src/json/visitor.js.map +1 -0
  144. package/dist/src/yaml/index.d.ts +4 -0
  145. package/dist/src/yaml/index.d.ts.map +1 -0
  146. package/dist/src/yaml/index.js +20 -0
  147. package/dist/src/yaml/index.js.map +1 -0
  148. package/dist/src/yaml/markers.d.ts +2 -0
  149. package/dist/src/yaml/markers.d.ts.map +1 -0
  150. package/dist/src/yaml/markers.js +3 -0
  151. package/dist/src/yaml/markers.js.map +1 -0
  152. package/dist/src/yaml/tree/extensions.d.ts +2 -0
  153. package/dist/src/yaml/tree/extensions.d.ts.map +1 -0
  154. package/dist/src/yaml/tree/extensions.js +3 -0
  155. package/dist/src/yaml/tree/extensions.js.map +1 -0
  156. package/dist/src/yaml/tree/index.d.ts +3 -0
  157. package/dist/src/yaml/tree/index.d.ts.map +1 -0
  158. package/dist/src/yaml/tree/index.js +19 -0
  159. package/dist/src/yaml/tree/index.js.map +1 -0
  160. package/dist/src/yaml/tree/support_types.d.ts +37 -0
  161. package/dist/src/yaml/tree/support_types.d.ts.map +1 -0
  162. package/dist/src/yaml/tree/support_types.js +25 -0
  163. package/dist/src/yaml/tree/support_types.js.map +1 -0
  164. package/dist/src/yaml/tree/tree.d.ts +451 -0
  165. package/dist/src/yaml/tree/tree.d.ts.map +1 -0
  166. package/dist/src/yaml/tree/tree.js +551 -0
  167. package/dist/src/yaml/tree/tree.js.map +1 -0
  168. package/dist/src/yaml/visitor.d.ts +16 -0
  169. package/dist/src/yaml/visitor.d.ts.map +1 -0
  170. package/dist/src/yaml/visitor.js +64 -0
  171. package/dist/src/yaml/visitor.js.map +1 -0
  172. package/package.json +40 -0
@@ -0,0 +1,1173 @@
1
+ import { JS } from "./support_types";
2
+ import { JavaScriptVisitor } from "../visitor";
3
+ import { Checksum, Cursor, FileAttributes, Markers, PrintOutputCapture, SourceFile, Tree, TreeVisitor, UUID } from "../../core";
4
+ import { Expression, J, JavaSourceFile, JavaType, JContainer, JLeftPadded, JRightPadded, NameTree, Space, Statement, TypedTree, TypeTree } from "../../java/tree";
5
+ import * as Java from "../../java/tree";
6
+ declare const CompilationUnit_base: ((abstract new (...args: any[]) => {
7
+ readonly sourcePath: string;
8
+ withSourcePath(sourcePath: string): SourceFile;
9
+ readonly charsetName: string | null;
10
+ withCharsetName(charset: string | null): SourceFile;
11
+ readonly charsetBomMarked: boolean;
12
+ withCharsetBomMarked(isCharsetBomMarked: boolean): SourceFile;
13
+ readonly checksum: Checksum | null;
14
+ withChecksum(checksum: Checksum | null): SourceFile;
15
+ readonly fileAttributes: FileAttributes | null;
16
+ withFileAttributes(fileAttributes: FileAttributes | null): SourceFile;
17
+ printEqualsInput(parserInput: import("../../core").ParserInput, ctx: import("../../core").ExecutionContext): boolean;
18
+ printAll(): string;
19
+ print<P>(cursor: Cursor, capture: PrintOutputCapture<P>): string;
20
+ printer<P>(cursor: Cursor): TreeVisitor<any, PrintOutputCapture<P>>;
21
+ readonly id: Uint8Array;
22
+ withId(id: UUID): Tree;
23
+ readonly markers: Markers;
24
+ withMarkers(markers: Markers): Tree;
25
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
26
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
27
+ }) & {
28
+ isTree: boolean;
29
+ isSourceFile: boolean;
30
+ }) & ((abstract new (...args: any[]) => {
31
+ readonly prefix: Space;
32
+ withPrefix(prefix: Space): JS;
33
+ readonly id: Uint8Array;
34
+ withId(id: UUID): JS;
35
+ readonly markers: Markers;
36
+ withMarkers(markers: Markers): JS;
37
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
38
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
39
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
40
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
41
+ constructor: Function;
42
+ toString(): string;
43
+ toLocaleString(): string;
44
+ valueOf(): Object;
45
+ hasOwnProperty(v: PropertyKey): boolean;
46
+ isPrototypeOf(v: Object): boolean;
47
+ propertyIsEnumerable(v: PropertyKey): boolean;
48
+ }) & {
49
+ isTree: boolean;
50
+ isJava: boolean;
51
+ isJavaScript: boolean;
52
+ }) & ObjectConstructor;
53
+ export declare class CompilationUnit extends CompilationUnit_base implements JavaSourceFile {
54
+ constructor(id: UUID, prefix: Space, markers: Markers, sourcePath: string, fileAttributes: FileAttributes | null, charsetName: string | null, charsetBomMarked: boolean, checksum: Checksum | null, imports: JRightPadded<Java.Import>[], statements: JRightPadded<Statement>[], eof: Space);
55
+ private readonly _id;
56
+ get id(): UUID;
57
+ withId(id: UUID): CompilationUnit;
58
+ private readonly _prefix;
59
+ get prefix(): Space;
60
+ withPrefix(prefix: Space): CompilationUnit;
61
+ private readonly _markers;
62
+ get markers(): Markers;
63
+ withMarkers(markers: Markers): CompilationUnit;
64
+ private readonly _sourcePath;
65
+ get sourcePath(): string;
66
+ withSourcePath(sourcePath: string): CompilationUnit;
67
+ private readonly _fileAttributes;
68
+ get fileAttributes(): FileAttributes | null;
69
+ withFileAttributes(fileAttributes: FileAttributes | null): CompilationUnit;
70
+ private readonly _charsetName;
71
+ get charsetName(): string | null;
72
+ withCharsetName(charsetName: string | null): CompilationUnit;
73
+ private readonly _charsetBomMarked;
74
+ get charsetBomMarked(): boolean;
75
+ withCharsetBomMarked(charsetBomMarked: boolean): CompilationUnit;
76
+ private readonly _checksum;
77
+ get checksum(): Checksum | null;
78
+ withChecksum(checksum: Checksum | null): CompilationUnit;
79
+ private readonly _imports;
80
+ get imports(): Java.Import[];
81
+ withImports(imports: Java.Import[]): CompilationUnit;
82
+ private readonly _statements;
83
+ get statements(): Statement[];
84
+ withStatements(statements: Statement[]): CompilationUnit;
85
+ private readonly _eof;
86
+ get eof(): Space;
87
+ withEof(eof: Space): CompilationUnit;
88
+ printer<P>(cursor: Cursor): TreeVisitor<Tree, PrintOutputCapture<P>>;
89
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
90
+ get padding(): {
91
+ readonly imports: JRightPadded<Java.Import>[];
92
+ withImports(imports: JRightPadded<Java.Import>[]): CompilationUnit;
93
+ readonly statements: JRightPadded<Statement>[];
94
+ withStatements(statements: JRightPadded<Statement>[]): CompilationUnit;
95
+ };
96
+ }
97
+ declare const Alias_base: ((abstract new (...args: any[]) => {
98
+ readonly prefix: Space;
99
+ withPrefix(prefix: Space): JS;
100
+ readonly id: Uint8Array;
101
+ withId(id: UUID): JS;
102
+ readonly markers: Markers;
103
+ withMarkers(markers: Markers): JS;
104
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
105
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
106
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
107
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
108
+ constructor: Function;
109
+ toString(): string;
110
+ toLocaleString(): string;
111
+ valueOf(): Object;
112
+ hasOwnProperty(v: PropertyKey): boolean;
113
+ isPrototypeOf(v: Object): boolean;
114
+ propertyIsEnumerable(v: PropertyKey): boolean;
115
+ }) & {
116
+ isTree: boolean;
117
+ isJava: boolean;
118
+ isJavaScript: boolean;
119
+ }) & ObjectConstructor;
120
+ export declare class Alias extends Alias_base implements Expression {
121
+ constructor(id: UUID, prefix: Space, markers: Markers, propertyName: JRightPadded<Java.Identifier>, alias: Java.Identifier);
122
+ private readonly _id;
123
+ get id(): UUID;
124
+ withId(id: UUID): Alias;
125
+ private readonly _prefix;
126
+ get prefix(): Space;
127
+ withPrefix(prefix: Space): Alias;
128
+ private readonly _markers;
129
+ get markers(): Markers;
130
+ withMarkers(markers: Markers): Alias;
131
+ private readonly _propertyName;
132
+ get propertyName(): Java.Identifier;
133
+ withPropertyName(propertyName: Java.Identifier): Alias;
134
+ private readonly _alias;
135
+ get alias(): Java.Identifier;
136
+ withAlias(alias: Java.Identifier): Alias;
137
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
138
+ get type(): JavaType | null;
139
+ withType(type: JavaType): Alias;
140
+ get padding(): {
141
+ readonly propertyName: JRightPadded<Java.Identifier>;
142
+ withPropertyName(propertyName: JRightPadded<Java.Identifier>): Alias;
143
+ };
144
+ }
145
+ declare const ArrowFunction_base: ((abstract new (...args: any[]) => {
146
+ readonly prefix: Space;
147
+ withPrefix(prefix: Space): JS;
148
+ readonly id: Uint8Array;
149
+ withId(id: UUID): JS;
150
+ readonly markers: Markers;
151
+ withMarkers(markers: Markers): JS;
152
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
153
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
154
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
155
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
156
+ constructor: Function;
157
+ toString(): string;
158
+ toLocaleString(): string;
159
+ valueOf(): Object;
160
+ hasOwnProperty(v: PropertyKey): boolean;
161
+ isPrototypeOf(v: Object): boolean;
162
+ propertyIsEnumerable(v: PropertyKey): boolean;
163
+ }) & {
164
+ isTree: boolean;
165
+ isJava: boolean;
166
+ isJavaScript: boolean;
167
+ }) & ObjectConstructor;
168
+ export declare class ArrowFunction extends ArrowFunction_base implements Statement, Expression, TypedTree {
169
+ constructor(id: UUID, prefix: Space, markers: Markers, leadingAnnotations: Java.Annotation[], modifiers: Java.Modifier[], parameters: Java.Lambda.Parameters, returnTypeExpression: TypeTree | null, arrow: Space, body: J, _type: JavaType | null);
170
+ private readonly _id;
171
+ get id(): UUID;
172
+ withId(id: UUID): ArrowFunction;
173
+ private readonly _prefix;
174
+ get prefix(): Space;
175
+ withPrefix(prefix: Space): ArrowFunction;
176
+ private readonly _markers;
177
+ get markers(): Markers;
178
+ withMarkers(markers: Markers): ArrowFunction;
179
+ private readonly _leadingAnnotations;
180
+ get leadingAnnotations(): Java.Annotation[];
181
+ withLeadingAnnotations(leadingAnnotations: Java.Annotation[]): ArrowFunction;
182
+ private readonly _modifiers;
183
+ get modifiers(): Java.Modifier[];
184
+ withModifiers(modifiers: Java.Modifier[]): ArrowFunction;
185
+ private readonly _parameters;
186
+ get parameters(): Java.Lambda.Parameters;
187
+ withParameters(parameters: Java.Lambda.Parameters): ArrowFunction;
188
+ private readonly _returnTypeExpression;
189
+ get returnTypeExpression(): TypeTree | null;
190
+ withReturnTypeExpression(returnTypeExpression: TypeTree | null): ArrowFunction;
191
+ private readonly _arrow;
192
+ get arrow(): Space;
193
+ withArrow(arrow: Space): ArrowFunction;
194
+ private readonly _body;
195
+ get body(): J;
196
+ withBody(body: J): ArrowFunction;
197
+ private readonly _type;
198
+ get type(): JavaType | null;
199
+ withType(_type: JavaType | null): ArrowFunction;
200
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
201
+ }
202
+ declare const Await_base: ((abstract new (...args: any[]) => {
203
+ readonly prefix: Space;
204
+ withPrefix(prefix: Space): JS;
205
+ readonly id: Uint8Array;
206
+ withId(id: UUID): JS;
207
+ readonly markers: Markers;
208
+ withMarkers(markers: Markers): JS;
209
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
210
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
211
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
212
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
213
+ constructor: Function;
214
+ toString(): string;
215
+ toLocaleString(): string;
216
+ valueOf(): Object;
217
+ hasOwnProperty(v: PropertyKey): boolean;
218
+ isPrototypeOf(v: Object): boolean;
219
+ propertyIsEnumerable(v: PropertyKey): boolean;
220
+ }) & {
221
+ isTree: boolean;
222
+ isJava: boolean;
223
+ isJavaScript: boolean;
224
+ }) & ObjectConstructor;
225
+ export declare class Await extends Await_base implements Expression {
226
+ constructor(id: UUID, prefix: Space, markers: Markers, expression: Expression, _type: JavaType | null);
227
+ private readonly _id;
228
+ get id(): UUID;
229
+ withId(id: UUID): Await;
230
+ private readonly _prefix;
231
+ get prefix(): Space;
232
+ withPrefix(prefix: Space): Await;
233
+ private readonly _markers;
234
+ get markers(): Markers;
235
+ withMarkers(markers: Markers): Await;
236
+ private readonly _expression;
237
+ get expression(): Expression;
238
+ withExpression(expression: Expression): Await;
239
+ private readonly _type;
240
+ get type(): JavaType | null;
241
+ withType(_type: JavaType | null): Await;
242
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
243
+ }
244
+ declare const DefaultType_base: ((abstract new (...args: any[]) => {
245
+ readonly prefix: Space;
246
+ withPrefix(prefix: Space): JS;
247
+ readonly id: Uint8Array;
248
+ withId(id: UUID): JS;
249
+ readonly markers: Markers;
250
+ withMarkers(markers: Markers): JS;
251
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
252
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
253
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
254
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
255
+ constructor: Function;
256
+ toString(): string;
257
+ toLocaleString(): string;
258
+ valueOf(): Object;
259
+ hasOwnProperty(v: PropertyKey): boolean;
260
+ isPrototypeOf(v: Object): boolean;
261
+ propertyIsEnumerable(v: PropertyKey): boolean;
262
+ }) & {
263
+ isTree: boolean;
264
+ isJava: boolean;
265
+ isJavaScript: boolean;
266
+ }) & ObjectConstructor;
267
+ export declare class DefaultType extends DefaultType_base implements Expression, TypedTree, NameTree {
268
+ constructor(id: UUID, prefix: Space, markers: Markers, left: Expression, beforeEquals: Space, right: Expression, _type: JavaType | null);
269
+ private readonly _id;
270
+ get id(): UUID;
271
+ withId(id: UUID): DefaultType;
272
+ private readonly _prefix;
273
+ get prefix(): Space;
274
+ withPrefix(prefix: Space): DefaultType;
275
+ private readonly _markers;
276
+ get markers(): Markers;
277
+ withMarkers(markers: Markers): DefaultType;
278
+ private readonly _left;
279
+ get left(): Expression;
280
+ withLeft(left: Expression): DefaultType;
281
+ private readonly _beforeEquals;
282
+ get beforeEquals(): Space;
283
+ withBeforeEquals(beforeEquals: Space): DefaultType;
284
+ private readonly _right;
285
+ get right(): Expression;
286
+ withRight(right: Expression): DefaultType;
287
+ private readonly _type;
288
+ get type(): JavaType | null;
289
+ withType(_type: JavaType | null): DefaultType;
290
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
291
+ }
292
+ declare const Delete_base: ((abstract new (...args: any[]) => {
293
+ readonly prefix: Space;
294
+ withPrefix(prefix: Space): JS;
295
+ readonly id: Uint8Array;
296
+ withId(id: UUID): JS;
297
+ readonly markers: Markers;
298
+ withMarkers(markers: Markers): JS;
299
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
300
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
301
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
302
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
303
+ constructor: Function;
304
+ toString(): string;
305
+ toLocaleString(): string;
306
+ valueOf(): Object;
307
+ hasOwnProperty(v: PropertyKey): boolean;
308
+ isPrototypeOf(v: Object): boolean;
309
+ propertyIsEnumerable(v: PropertyKey): boolean;
310
+ }) & {
311
+ isTree: boolean;
312
+ isJava: boolean;
313
+ isJavaScript: boolean;
314
+ }) & ObjectConstructor;
315
+ export declare class Delete extends Delete_base implements Expression, Statement {
316
+ constructor(id: UUID, prefix: Space, markers: Markers, expression: Expression, _type: JavaType | null);
317
+ private readonly _id;
318
+ get id(): UUID;
319
+ withId(id: UUID): Delete;
320
+ private readonly _prefix;
321
+ get prefix(): Space;
322
+ withPrefix(prefix: Space): Delete;
323
+ private readonly _markers;
324
+ get markers(): Markers;
325
+ withMarkers(markers: Markers): Delete;
326
+ private readonly _expression;
327
+ get expression(): Expression;
328
+ withExpression(expression: Expression): Delete;
329
+ private readonly _type;
330
+ get type(): JavaType | null;
331
+ withType(_type: JavaType | null): Delete;
332
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
333
+ }
334
+ declare const Export_base: ((abstract new (...args: any[]) => {
335
+ readonly prefix: Space;
336
+ withPrefix(prefix: Space): JS;
337
+ readonly id: Uint8Array;
338
+ withId(id: UUID): JS;
339
+ readonly markers: Markers;
340
+ withMarkers(markers: Markers): JS;
341
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
342
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
343
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
344
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
345
+ constructor: Function;
346
+ toString(): string;
347
+ toLocaleString(): string;
348
+ valueOf(): Object;
349
+ hasOwnProperty(v: PropertyKey): boolean;
350
+ isPrototypeOf(v: Object): boolean;
351
+ propertyIsEnumerable(v: PropertyKey): boolean;
352
+ }) & {
353
+ isTree: boolean;
354
+ isJava: boolean;
355
+ isJavaScript: boolean;
356
+ }) & ObjectConstructor;
357
+ export declare class Export extends Export_base implements Statement {
358
+ constructor(id: UUID, prefix: Space, markers: Markers, exports: JContainer<Expression> | null, _from: Space | null, target: Java.Literal | null, initializer: JLeftPadded<Expression> | null);
359
+ private readonly _id;
360
+ get id(): UUID;
361
+ withId(id: UUID): Export;
362
+ private readonly _prefix;
363
+ get prefix(): Space;
364
+ withPrefix(prefix: Space): Export;
365
+ private readonly _markers;
366
+ get markers(): Markers;
367
+ withMarkers(markers: Markers): Export;
368
+ private readonly _exports;
369
+ get exports(): Expression[] | null;
370
+ withExports(exports: Expression[] | null): Export;
371
+ private readonly _from;
372
+ get from(): Space | null;
373
+ withFrom(_from: Space | null): Export;
374
+ private readonly _target;
375
+ get target(): Java.Literal | null;
376
+ withTarget(target: Java.Literal | null): Export;
377
+ private readonly _initializer;
378
+ get initializer(): Expression | null;
379
+ withInitializer(initializer: Expression | null): Export;
380
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
381
+ get padding(): {
382
+ readonly exports: JContainer<Expression> | null;
383
+ withExports(exports: JContainer<Expression> | null): Export;
384
+ readonly initializer: JLeftPadded<Expression> | null;
385
+ withInitializer(initializer: JLeftPadded<Expression> | null): Export;
386
+ };
387
+ }
388
+ declare const FunctionType_base: ((abstract new (...args: any[]) => {
389
+ readonly prefix: Space;
390
+ withPrefix(prefix: Space): JS;
391
+ readonly id: Uint8Array;
392
+ withId(id: UUID): JS;
393
+ readonly markers: Markers;
394
+ withMarkers(markers: Markers): JS;
395
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
396
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
397
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
398
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
399
+ constructor: Function;
400
+ toString(): string;
401
+ toLocaleString(): string;
402
+ valueOf(): Object;
403
+ hasOwnProperty(v: PropertyKey): boolean;
404
+ isPrototypeOf(v: Object): boolean;
405
+ propertyIsEnumerable(v: PropertyKey): boolean;
406
+ }) & {
407
+ isTree: boolean;
408
+ isJava: boolean;
409
+ isJavaScript: boolean;
410
+ }) & ObjectConstructor;
411
+ export declare class FunctionType extends FunctionType_base implements Expression, TypeTree {
412
+ constructor(id: UUID, prefix: Space, markers: Markers, parameters: JContainer<Statement>, arrow: Space, returnType: Expression, _type: JavaType | null);
413
+ private readonly _id;
414
+ get id(): UUID;
415
+ withId(id: UUID): FunctionType;
416
+ private readonly _prefix;
417
+ get prefix(): Space;
418
+ withPrefix(prefix: Space): FunctionType;
419
+ private readonly _markers;
420
+ get markers(): Markers;
421
+ withMarkers(markers: Markers): FunctionType;
422
+ private readonly _parameters;
423
+ get parameters(): Statement[];
424
+ withParameters(parameters: Statement[]): FunctionType;
425
+ private readonly _arrow;
426
+ get arrow(): Space;
427
+ withArrow(arrow: Space): FunctionType;
428
+ private readonly _returnType;
429
+ get returnType(): Expression;
430
+ withReturnType(returnType: Expression): FunctionType;
431
+ private readonly _type;
432
+ get type(): JavaType | null;
433
+ withType(_type: JavaType | null): FunctionType;
434
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
435
+ get padding(): {
436
+ readonly parameters: JContainer<Statement>;
437
+ withParameters(parameters: JContainer<Statement>): FunctionType;
438
+ };
439
+ }
440
+ declare const JsImport_base: ((abstract new (...args: any[]) => {
441
+ readonly prefix: Space;
442
+ withPrefix(prefix: Space): JS;
443
+ readonly id: Uint8Array;
444
+ withId(id: UUID): JS;
445
+ readonly markers: Markers;
446
+ withMarkers(markers: Markers): JS;
447
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
448
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
449
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
450
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
451
+ constructor: Function;
452
+ toString(): string;
453
+ toLocaleString(): string;
454
+ valueOf(): Object;
455
+ hasOwnProperty(v: PropertyKey): boolean;
456
+ isPrototypeOf(v: Object): boolean;
457
+ propertyIsEnumerable(v: PropertyKey): boolean;
458
+ }) & {
459
+ isTree: boolean;
460
+ isJava: boolean;
461
+ isJavaScript: boolean;
462
+ }) & ObjectConstructor;
463
+ export declare class JsImport extends JsImport_base implements Statement {
464
+ constructor(id: UUID, prefix: Space, markers: Markers, name: JRightPadded<Java.Identifier> | null, imports: JContainer<Expression> | null, _from: Space | null, target: Java.Literal | null, initializer: JLeftPadded<Expression> | null);
465
+ private readonly _id;
466
+ get id(): UUID;
467
+ withId(id: UUID): JsImport;
468
+ private readonly _prefix;
469
+ get prefix(): Space;
470
+ withPrefix(prefix: Space): JsImport;
471
+ private readonly _markers;
472
+ get markers(): Markers;
473
+ withMarkers(markers: Markers): JsImport;
474
+ private readonly _name;
475
+ get name(): Java.Identifier | null;
476
+ withName(name: Java.Identifier | null): JsImport;
477
+ private readonly _imports;
478
+ get imports(): Expression[] | null;
479
+ withImports(imports: Expression[] | null): JsImport;
480
+ private readonly _from;
481
+ get from(): Space | null;
482
+ withFrom(_from: Space | null): JsImport;
483
+ private readonly _target;
484
+ get target(): Java.Literal | null;
485
+ withTarget(target: Java.Literal | null): JsImport;
486
+ private readonly _initializer;
487
+ get initializer(): Expression | null;
488
+ withInitializer(initializer: Expression | null): JsImport;
489
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
490
+ get padding(): {
491
+ readonly name: JRightPadded<Java.Identifier> | null;
492
+ withName(name: JRightPadded<Java.Identifier> | null): JsImport;
493
+ readonly imports: JContainer<Expression> | null;
494
+ withImports(imports: JContainer<Expression> | null): JsImport;
495
+ readonly initializer: JLeftPadded<Expression> | null;
496
+ withInitializer(initializer: JLeftPadded<Expression> | null): JsImport;
497
+ };
498
+ }
499
+ declare const JsBinary_base: ((abstract new (...args: any[]) => {
500
+ readonly prefix: Space;
501
+ withPrefix(prefix: Space): JS;
502
+ readonly id: Uint8Array;
503
+ withId(id: UUID): JS;
504
+ readonly markers: Markers;
505
+ withMarkers(markers: Markers): JS;
506
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
507
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
508
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
509
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
510
+ constructor: Function;
511
+ toString(): string;
512
+ toLocaleString(): string;
513
+ valueOf(): Object;
514
+ hasOwnProperty(v: PropertyKey): boolean;
515
+ isPrototypeOf(v: Object): boolean;
516
+ propertyIsEnumerable(v: PropertyKey): boolean;
517
+ }) & {
518
+ isTree: boolean;
519
+ isJava: boolean;
520
+ isJavaScript: boolean;
521
+ }) & ObjectConstructor;
522
+ export declare class JsBinary extends JsBinary_base implements Expression, TypedTree {
523
+ constructor(id: UUID, prefix: Space, markers: Markers, left: Expression, operator: JLeftPadded<JsBinary.Type>, right: Expression, _type: JavaType | null);
524
+ private readonly _id;
525
+ get id(): UUID;
526
+ withId(id: UUID): JsBinary;
527
+ private readonly _prefix;
528
+ get prefix(): Space;
529
+ withPrefix(prefix: Space): JsBinary;
530
+ private readonly _markers;
531
+ get markers(): Markers;
532
+ withMarkers(markers: Markers): JsBinary;
533
+ private readonly _left;
534
+ get left(): Expression;
535
+ withLeft(left: Expression): JsBinary;
536
+ private readonly _operator;
537
+ get operator(): JsBinary.Type;
538
+ withOperator(operator: JsBinary.Type): JsBinary;
539
+ private readonly _right;
540
+ get right(): Expression;
541
+ withRight(right: Expression): JsBinary;
542
+ private readonly _type;
543
+ get type(): JavaType | null;
544
+ withType(_type: JavaType | null): JsBinary;
545
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
546
+ get padding(): {
547
+ readonly operator: JLeftPadded<JsBinary.Type>;
548
+ withOperator(operator: JLeftPadded<JsBinary.Type>): JsBinary;
549
+ };
550
+ }
551
+ export declare namespace JsBinary {
552
+ enum Type {
553
+ As = 0,
554
+ IdentityEquals = 1,
555
+ IdentityNotEquals = 2,
556
+ In = 3
557
+ }
558
+ }
559
+ declare const ObjectBindingDeclarations_base: ((abstract new (...args: any[]) => {
560
+ readonly prefix: Space;
561
+ withPrefix(prefix: Space): JS;
562
+ readonly id: Uint8Array;
563
+ withId(id: UUID): JS;
564
+ readonly markers: Markers;
565
+ withMarkers(markers: Markers): JS;
566
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
567
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
568
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
569
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
570
+ constructor: Function;
571
+ toString(): string;
572
+ toLocaleString(): string;
573
+ valueOf(): Object;
574
+ hasOwnProperty(v: PropertyKey): boolean;
575
+ isPrototypeOf(v: Object): boolean;
576
+ propertyIsEnumerable(v: PropertyKey): boolean;
577
+ }) & {
578
+ isTree: boolean;
579
+ isJava: boolean;
580
+ isJavaScript: boolean;
581
+ }) & ObjectConstructor;
582
+ export declare class ObjectBindingDeclarations extends ObjectBindingDeclarations_base implements Statement, TypedTree {
583
+ constructor(id: UUID, prefix: Space, markers: Markers, leadingAnnotations: Java.Annotation[], modifiers: Java.Modifier[], typeExpression: TypeTree | null, bindings: JContainer<ObjectBindingDeclarations.Binding>, initializer: JLeftPadded<Expression> | null);
584
+ private readonly _id;
585
+ get id(): UUID;
586
+ withId(id: UUID): ObjectBindingDeclarations;
587
+ private readonly _prefix;
588
+ get prefix(): Space;
589
+ withPrefix(prefix: Space): ObjectBindingDeclarations;
590
+ private readonly _markers;
591
+ get markers(): Markers;
592
+ withMarkers(markers: Markers): ObjectBindingDeclarations;
593
+ private readonly _leadingAnnotations;
594
+ get leadingAnnotations(): Java.Annotation[];
595
+ withLeadingAnnotations(leadingAnnotations: Java.Annotation[]): ObjectBindingDeclarations;
596
+ private readonly _modifiers;
597
+ get modifiers(): Java.Modifier[];
598
+ withModifiers(modifiers: Java.Modifier[]): ObjectBindingDeclarations;
599
+ private readonly _typeExpression;
600
+ get typeExpression(): TypeTree | null;
601
+ withTypeExpression(typeExpression: TypeTree | null): ObjectBindingDeclarations;
602
+ private readonly _bindings;
603
+ get bindings(): ObjectBindingDeclarations.Binding[];
604
+ withBindings(bindings: ObjectBindingDeclarations.Binding[]): ObjectBindingDeclarations;
605
+ private readonly _initializer;
606
+ get initializer(): Expression | null;
607
+ withInitializer(initializer: Expression | null): ObjectBindingDeclarations;
608
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
609
+ get type(): JavaType | null;
610
+ withType(type: JavaType): ObjectBindingDeclarations;
611
+ get padding(): {
612
+ readonly bindings: JContainer<ObjectBindingDeclarations.Binding>;
613
+ withBindings(bindings: JContainer<ObjectBindingDeclarations.Binding>): ObjectBindingDeclarations;
614
+ readonly initializer: JLeftPadded<Expression> | null;
615
+ withInitializer(initializer: JLeftPadded<Expression> | null): ObjectBindingDeclarations;
616
+ };
617
+ }
618
+ export declare namespace ObjectBindingDeclarations {
619
+ const Binding_base: ((abstract new (...args: any[]) => {
620
+ readonly prefix: Space;
621
+ withPrefix(prefix: Space): JS;
622
+ readonly id: Uint8Array;
623
+ withId(id: UUID): JS;
624
+ readonly markers: Markers;
625
+ withMarkers(markers: Markers): JS;
626
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
627
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
628
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
629
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
630
+ constructor: Function;
631
+ toString(): string;
632
+ toLocaleString(): string;
633
+ valueOf(): Object;
634
+ hasOwnProperty(v: PropertyKey): boolean;
635
+ isPrototypeOf(v: Object): boolean;
636
+ propertyIsEnumerable(v: PropertyKey): boolean;
637
+ }) & {
638
+ isTree: boolean;
639
+ isJava: boolean;
640
+ isJavaScript: boolean;
641
+ }) & ObjectConstructor;
642
+ export class Binding extends Binding_base implements NameTree {
643
+ constructor(id: UUID, prefix: Space, markers: Markers, propertyName: JRightPadded<Java.Identifier> | null, name: Java.Identifier, dimensionsAfterName: JLeftPadded<Space>[], afterVararg: Space | null, initializer: JLeftPadded<Expression> | null, variableType: JavaType.Variable | null);
644
+ private readonly _id;
645
+ get id(): UUID;
646
+ withId(id: UUID): ObjectBindingDeclarations.Binding;
647
+ private readonly _prefix;
648
+ get prefix(): Space;
649
+ withPrefix(prefix: Space): ObjectBindingDeclarations.Binding;
650
+ private readonly _markers;
651
+ get markers(): Markers;
652
+ withMarkers(markers: Markers): ObjectBindingDeclarations.Binding;
653
+ private readonly _propertyName;
654
+ get propertyName(): Java.Identifier | null;
655
+ withPropertyName(propertyName: Java.Identifier | null): ObjectBindingDeclarations.Binding;
656
+ private readonly _name;
657
+ get name(): Java.Identifier;
658
+ withName(name: Java.Identifier): ObjectBindingDeclarations.Binding;
659
+ private readonly _dimensionsAfterName;
660
+ get dimensionsAfterName(): JLeftPadded<Space>[];
661
+ withDimensionsAfterName(dimensionsAfterName: JLeftPadded<Space>[]): ObjectBindingDeclarations.Binding;
662
+ private readonly _afterVararg;
663
+ get afterVararg(): Space | null;
664
+ withAfterVararg(afterVararg: Space | null): ObjectBindingDeclarations.Binding;
665
+ private readonly _initializer;
666
+ get initializer(): Expression | null;
667
+ withInitializer(initializer: Expression | null): ObjectBindingDeclarations.Binding;
668
+ private readonly _variableType;
669
+ get variableType(): JavaType.Variable | null;
670
+ withVariableType(variableType: JavaType.Variable | null): ObjectBindingDeclarations.Binding;
671
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
672
+ get type(): JavaType | null;
673
+ withType(type: JavaType): ObjectBindingDeclarations.Binding;
674
+ get padding(): {
675
+ readonly propertyName: JRightPadded<Java.Identifier> | null;
676
+ withPropertyName(propertyName: JRightPadded<Java.Identifier> | null): ObjectBindingDeclarations.Binding;
677
+ readonly initializer: JLeftPadded<Expression> | null;
678
+ withInitializer(initializer: JLeftPadded<Expression> | null): ObjectBindingDeclarations.Binding;
679
+ };
680
+ }
681
+ export {};
682
+ }
683
+ declare const PropertyAssignment_base: ((abstract new (...args: any[]) => {
684
+ readonly prefix: Space;
685
+ withPrefix(prefix: Space): JS;
686
+ readonly id: Uint8Array;
687
+ withId(id: UUID): JS;
688
+ readonly markers: Markers;
689
+ withMarkers(markers: Markers): JS;
690
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
691
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
692
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
693
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
694
+ constructor: Function;
695
+ toString(): string;
696
+ toLocaleString(): string;
697
+ valueOf(): Object;
698
+ hasOwnProperty(v: PropertyKey): boolean;
699
+ isPrototypeOf(v: Object): boolean;
700
+ propertyIsEnumerable(v: PropertyKey): boolean;
701
+ }) & {
702
+ isTree: boolean;
703
+ isJava: boolean;
704
+ isJavaScript: boolean;
705
+ }) & ObjectConstructor;
706
+ export declare class PropertyAssignment extends PropertyAssignment_base implements Statement, TypedTree {
707
+ constructor(id: UUID, prefix: Space, markers: Markers, name: JRightPadded<Expression>, initializer: Expression);
708
+ private readonly _id;
709
+ get id(): UUID;
710
+ withId(id: UUID): PropertyAssignment;
711
+ private readonly _prefix;
712
+ get prefix(): Space;
713
+ withPrefix(prefix: Space): PropertyAssignment;
714
+ private readonly _markers;
715
+ get markers(): Markers;
716
+ withMarkers(markers: Markers): PropertyAssignment;
717
+ private readonly _name;
718
+ get name(): Expression;
719
+ withName(name: Expression): PropertyAssignment;
720
+ private readonly _initializer;
721
+ get initializer(): Expression;
722
+ withInitializer(initializer: Expression): PropertyAssignment;
723
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
724
+ get type(): JavaType | null;
725
+ withType(type: JavaType): PropertyAssignment;
726
+ get padding(): {
727
+ readonly name: JRightPadded<Expression>;
728
+ withName(name: JRightPadded<Expression>): PropertyAssignment;
729
+ };
730
+ }
731
+ declare const TemplateExpression_base: ((abstract new (...args: any[]) => {
732
+ readonly prefix: Space;
733
+ withPrefix(prefix: Space): JS;
734
+ readonly id: Uint8Array;
735
+ withId(id: UUID): JS;
736
+ readonly markers: Markers;
737
+ withMarkers(markers: Markers): JS;
738
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
739
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
740
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
741
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
742
+ constructor: Function;
743
+ toString(): string;
744
+ toLocaleString(): string;
745
+ valueOf(): Object;
746
+ hasOwnProperty(v: PropertyKey): boolean;
747
+ isPrototypeOf(v: Object): boolean;
748
+ propertyIsEnumerable(v: PropertyKey): boolean;
749
+ }) & {
750
+ isTree: boolean;
751
+ isJava: boolean;
752
+ isJavaScript: boolean;
753
+ }) & ObjectConstructor;
754
+ export declare class TemplateExpression extends TemplateExpression_base implements Statement, Expression {
755
+ constructor(id: UUID, prefix: Space, markers: Markers, delimiter: string, tag: JRightPadded<Expression> | null, strings: J[], _type: JavaType | null);
756
+ private readonly _id;
757
+ get id(): UUID;
758
+ withId(id: UUID): TemplateExpression;
759
+ private readonly _prefix;
760
+ get prefix(): Space;
761
+ withPrefix(prefix: Space): TemplateExpression;
762
+ private readonly _markers;
763
+ get markers(): Markers;
764
+ withMarkers(markers: Markers): TemplateExpression;
765
+ private readonly _delimiter;
766
+ get delimiter(): string;
767
+ withDelimiter(delimiter: string): TemplateExpression;
768
+ private readonly _tag;
769
+ get tag(): Expression | null;
770
+ withTag(tag: Expression | null): TemplateExpression;
771
+ private readonly _strings;
772
+ get strings(): J[];
773
+ withStrings(strings: J[]): TemplateExpression;
774
+ private readonly _type;
775
+ get type(): JavaType | null;
776
+ withType(_type: JavaType | null): TemplateExpression;
777
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
778
+ get padding(): {
779
+ readonly tag: JRightPadded<Expression> | null;
780
+ withTag(tag: JRightPadded<Expression> | null): TemplateExpression;
781
+ };
782
+ }
783
+ export declare namespace TemplateExpression {
784
+ const Value_base: ((abstract new (...args: any[]) => {
785
+ readonly prefix: Space;
786
+ withPrefix(prefix: Space): JS;
787
+ readonly id: Uint8Array;
788
+ withId(id: UUID): JS;
789
+ readonly markers: Markers;
790
+ withMarkers(markers: Markers): JS;
791
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
792
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
793
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
794
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
795
+ constructor: Function;
796
+ toString(): string;
797
+ toLocaleString(): string;
798
+ valueOf(): Object;
799
+ hasOwnProperty(v: PropertyKey): boolean;
800
+ isPrototypeOf(v: Object): boolean;
801
+ propertyIsEnumerable(v: PropertyKey): boolean;
802
+ }) & {
803
+ isTree: boolean;
804
+ isJava: boolean;
805
+ isJavaScript: boolean;
806
+ }) & ObjectConstructor;
807
+ export class Value extends Value_base {
808
+ constructor(id: UUID, prefix: Space, markers: Markers, tree: J, after: Space, enclosedInBraces: boolean);
809
+ private readonly _id;
810
+ get id(): UUID;
811
+ withId(id: UUID): TemplateExpression.Value;
812
+ private readonly _prefix;
813
+ get prefix(): Space;
814
+ withPrefix(prefix: Space): TemplateExpression.Value;
815
+ private readonly _markers;
816
+ get markers(): Markers;
817
+ withMarkers(markers: Markers): TemplateExpression.Value;
818
+ private readonly _tree;
819
+ get tree(): J;
820
+ withTree(tree: J): TemplateExpression.Value;
821
+ private readonly _after;
822
+ get after(): Space;
823
+ withAfter(after: Space): TemplateExpression.Value;
824
+ private readonly _enclosedInBraces;
825
+ get enclosedInBraces(): boolean;
826
+ withEnclosedInBraces(enclosedInBraces: boolean): TemplateExpression.Value;
827
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
828
+ }
829
+ export {};
830
+ }
831
+ declare const Tuple_base: ((abstract new (...args: any[]) => {
832
+ readonly prefix: Space;
833
+ withPrefix(prefix: Space): JS;
834
+ readonly id: Uint8Array;
835
+ withId(id: UUID): JS;
836
+ readonly markers: Markers;
837
+ withMarkers(markers: Markers): JS;
838
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
839
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
840
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
841
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
842
+ constructor: Function;
843
+ toString(): string;
844
+ toLocaleString(): string;
845
+ valueOf(): Object;
846
+ hasOwnProperty(v: PropertyKey): boolean;
847
+ isPrototypeOf(v: Object): boolean;
848
+ propertyIsEnumerable(v: PropertyKey): boolean;
849
+ }) & {
850
+ isTree: boolean;
851
+ isJava: boolean;
852
+ isJavaScript: boolean;
853
+ }) & ObjectConstructor;
854
+ export declare class Tuple extends Tuple_base implements Expression, TypeTree {
855
+ constructor(id: UUID, prefix: Space, markers: Markers, elements: JContainer<J>, _type: JavaType | null);
856
+ private readonly _id;
857
+ get id(): UUID;
858
+ withId(id: UUID): Tuple;
859
+ private readonly _prefix;
860
+ get prefix(): Space;
861
+ withPrefix(prefix: Space): Tuple;
862
+ private readonly _markers;
863
+ get markers(): Markers;
864
+ withMarkers(markers: Markers): Tuple;
865
+ private readonly _elements;
866
+ get elements(): J[];
867
+ withElements(elements: J[]): Tuple;
868
+ private readonly _type;
869
+ get type(): JavaType | null;
870
+ withType(_type: JavaType | null): Tuple;
871
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
872
+ get padding(): {
873
+ readonly elements: JContainer<J>;
874
+ withElements(elements: JContainer<J>): Tuple;
875
+ };
876
+ }
877
+ declare const TypeDeclaration_base: ((abstract new (...args: any[]) => {
878
+ readonly prefix: Space;
879
+ withPrefix(prefix: Space): JS;
880
+ readonly id: Uint8Array;
881
+ withId(id: UUID): JS;
882
+ readonly markers: Markers;
883
+ withMarkers(markers: Markers): JS;
884
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
885
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
886
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
887
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
888
+ constructor: Function;
889
+ toString(): string;
890
+ toLocaleString(): string;
891
+ valueOf(): Object;
892
+ hasOwnProperty(v: PropertyKey): boolean;
893
+ isPrototypeOf(v: Object): boolean;
894
+ propertyIsEnumerable(v: PropertyKey): boolean;
895
+ }) & {
896
+ isTree: boolean;
897
+ isJava: boolean;
898
+ isJavaScript: boolean;
899
+ }) & ObjectConstructor;
900
+ export declare class TypeDeclaration extends TypeDeclaration_base implements Statement, TypedTree {
901
+ constructor(id: UUID, prefix: Space, markers: Markers, leadingAnnotations: Java.Annotation[], modifiers: Java.Modifier[], name: Java.Identifier, typeParameters: Java.TypeParameters | null, initializer: JLeftPadded<Expression>, _type: JavaType | null);
902
+ private readonly _id;
903
+ get id(): UUID;
904
+ withId(id: UUID): TypeDeclaration;
905
+ private readonly _prefix;
906
+ get prefix(): Space;
907
+ withPrefix(prefix: Space): TypeDeclaration;
908
+ private readonly _markers;
909
+ get markers(): Markers;
910
+ withMarkers(markers: Markers): TypeDeclaration;
911
+ private readonly _leadingAnnotations;
912
+ get leadingAnnotations(): Java.Annotation[];
913
+ withLeadingAnnotations(leadingAnnotations: Java.Annotation[]): TypeDeclaration;
914
+ private readonly _modifiers;
915
+ get modifiers(): Java.Modifier[];
916
+ withModifiers(modifiers: Java.Modifier[]): TypeDeclaration;
917
+ private readonly _name;
918
+ get name(): Java.Identifier;
919
+ withName(name: Java.Identifier): TypeDeclaration;
920
+ private readonly _typeParameters;
921
+ get typeParameters(): Java.TypeParameters | null;
922
+ withTypeParameters(typeParameters: Java.TypeParameters | null): TypeDeclaration;
923
+ private readonly _initializer;
924
+ get initializer(): Expression;
925
+ withInitializer(initializer: Expression): TypeDeclaration;
926
+ private readonly _type;
927
+ get type(): JavaType | null;
928
+ withType(_type: JavaType | null): TypeDeclaration;
929
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
930
+ get padding(): {
931
+ readonly initializer: JLeftPadded<Expression>;
932
+ withInitializer(initializer: JLeftPadded<Expression>): TypeDeclaration;
933
+ };
934
+ }
935
+ declare const TypeOf_base: ((abstract new (...args: any[]) => {
936
+ readonly prefix: Space;
937
+ withPrefix(prefix: Space): JS;
938
+ readonly id: Uint8Array;
939
+ withId(id: UUID): JS;
940
+ readonly markers: Markers;
941
+ withMarkers(markers: Markers): JS;
942
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
943
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
944
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
945
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
946
+ constructor: Function;
947
+ toString(): string;
948
+ toLocaleString(): string;
949
+ valueOf(): Object;
950
+ hasOwnProperty(v: PropertyKey): boolean;
951
+ isPrototypeOf(v: Object): boolean;
952
+ propertyIsEnumerable(v: PropertyKey): boolean;
953
+ }) & {
954
+ isTree: boolean;
955
+ isJava: boolean;
956
+ isJavaScript: boolean;
957
+ }) & ObjectConstructor;
958
+ export declare class TypeOf extends TypeOf_base implements Expression {
959
+ constructor(id: UUID, prefix: Space, markers: Markers, expression: Expression, _type: JavaType | null);
960
+ private readonly _id;
961
+ get id(): UUID;
962
+ withId(id: UUID): TypeOf;
963
+ private readonly _prefix;
964
+ get prefix(): Space;
965
+ withPrefix(prefix: Space): TypeOf;
966
+ private readonly _markers;
967
+ get markers(): Markers;
968
+ withMarkers(markers: Markers): TypeOf;
969
+ private readonly _expression;
970
+ get expression(): Expression;
971
+ withExpression(expression: Expression): TypeOf;
972
+ private readonly _type;
973
+ get type(): JavaType | null;
974
+ withType(_type: JavaType | null): TypeOf;
975
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
976
+ }
977
+ declare const TypeOperator_base: ((abstract new (...args: any[]) => {
978
+ readonly prefix: Space;
979
+ withPrefix(prefix: Space): JS;
980
+ readonly id: Uint8Array;
981
+ withId(id: UUID): JS;
982
+ readonly markers: Markers;
983
+ withMarkers(markers: Markers): JS;
984
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
985
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
986
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
987
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
988
+ constructor: Function;
989
+ toString(): string;
990
+ toLocaleString(): string;
991
+ valueOf(): Object;
992
+ hasOwnProperty(v: PropertyKey): boolean;
993
+ isPrototypeOf(v: Object): boolean;
994
+ propertyIsEnumerable(v: PropertyKey): boolean;
995
+ }) & {
996
+ isTree: boolean;
997
+ isJava: boolean;
998
+ isJavaScript: boolean;
999
+ }) & ObjectConstructor;
1000
+ export declare class TypeOperator extends TypeOperator_base implements Expression, TypedTree, NameTree {
1001
+ constructor(id: UUID, prefix: Space, markers: Markers, operator: TypeOperator.Type, expression: JLeftPadded<Expression>);
1002
+ private readonly _id;
1003
+ get id(): UUID;
1004
+ withId(id: UUID): TypeOperator;
1005
+ private readonly _prefix;
1006
+ get prefix(): Space;
1007
+ withPrefix(prefix: Space): TypeOperator;
1008
+ private readonly _markers;
1009
+ get markers(): Markers;
1010
+ withMarkers(markers: Markers): TypeOperator;
1011
+ private readonly _operator;
1012
+ get operator(): TypeOperator.Type;
1013
+ withOperator(operator: TypeOperator.Type): TypeOperator;
1014
+ private readonly _expression;
1015
+ get expression(): Expression;
1016
+ withExpression(expression: Expression): TypeOperator;
1017
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1018
+ get type(): JavaType | null;
1019
+ withType(type: JavaType): TypeOperator;
1020
+ get padding(): {
1021
+ readonly expression: JLeftPadded<Expression>;
1022
+ withExpression(expression: JLeftPadded<Expression>): TypeOperator;
1023
+ };
1024
+ }
1025
+ export declare namespace TypeOperator {
1026
+ enum Type {
1027
+ ReadOnly = 0,
1028
+ KeyOf = 1
1029
+ }
1030
+ }
1031
+ declare const Unary_base: ((abstract new (...args: any[]) => {
1032
+ readonly prefix: Space;
1033
+ withPrefix(prefix: Space): JS;
1034
+ readonly id: Uint8Array;
1035
+ withId(id: UUID): JS;
1036
+ readonly markers: Markers;
1037
+ withMarkers(markers: Markers): JS;
1038
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1039
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1040
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
1041
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1042
+ constructor: Function;
1043
+ toString(): string;
1044
+ toLocaleString(): string;
1045
+ valueOf(): Object;
1046
+ hasOwnProperty(v: PropertyKey): boolean;
1047
+ isPrototypeOf(v: Object): boolean;
1048
+ propertyIsEnumerable(v: PropertyKey): boolean;
1049
+ }) & {
1050
+ isTree: boolean;
1051
+ isJava: boolean;
1052
+ isJavaScript: boolean;
1053
+ }) & ObjectConstructor;
1054
+ export declare class Unary extends Unary_base implements Statement, Expression, TypedTree {
1055
+ constructor(id: UUID, prefix: Space, markers: Markers, operator: JLeftPadded<Unary.Type>, expression: Expression, _type: JavaType | null);
1056
+ private readonly _id;
1057
+ get id(): UUID;
1058
+ withId(id: UUID): Unary;
1059
+ private readonly _prefix;
1060
+ get prefix(): Space;
1061
+ withPrefix(prefix: Space): Unary;
1062
+ private readonly _markers;
1063
+ get markers(): Markers;
1064
+ withMarkers(markers: Markers): Unary;
1065
+ private readonly _operator;
1066
+ get operator(): Unary.Type;
1067
+ withOperator(operator: Unary.Type): Unary;
1068
+ private readonly _expression;
1069
+ get expression(): Expression;
1070
+ withExpression(expression: Expression): Unary;
1071
+ private readonly _type;
1072
+ get type(): JavaType | null;
1073
+ withType(_type: JavaType | null): Unary;
1074
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1075
+ get padding(): {
1076
+ readonly operator: JLeftPadded<Unary.Type>;
1077
+ withOperator(operator: JLeftPadded<Unary.Type>): Unary;
1078
+ };
1079
+ }
1080
+ export declare namespace Unary {
1081
+ enum Type {
1082
+ Spread = 0
1083
+ }
1084
+ }
1085
+ declare const Union_base: ((abstract new (...args: any[]) => {
1086
+ readonly prefix: Space;
1087
+ withPrefix(prefix: Space): JS;
1088
+ readonly id: Uint8Array;
1089
+ withId(id: UUID): JS;
1090
+ readonly markers: Markers;
1091
+ withMarkers(markers: Markers): JS;
1092
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1093
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1094
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
1095
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1096
+ constructor: Function;
1097
+ toString(): string;
1098
+ toLocaleString(): string;
1099
+ valueOf(): Object;
1100
+ hasOwnProperty(v: PropertyKey): boolean;
1101
+ isPrototypeOf(v: Object): boolean;
1102
+ propertyIsEnumerable(v: PropertyKey): boolean;
1103
+ }) & {
1104
+ isTree: boolean;
1105
+ isJava: boolean;
1106
+ isJavaScript: boolean;
1107
+ }) & ObjectConstructor;
1108
+ export declare class Union extends Union_base implements Expression, TypeTree {
1109
+ constructor(id: UUID, prefix: Space, markers: Markers, types: JRightPadded<Expression>[], _type: JavaType | null);
1110
+ private readonly _id;
1111
+ get id(): UUID;
1112
+ withId(id: UUID): Union;
1113
+ private readonly _prefix;
1114
+ get prefix(): Space;
1115
+ withPrefix(prefix: Space): Union;
1116
+ private readonly _markers;
1117
+ get markers(): Markers;
1118
+ withMarkers(markers: Markers): Union;
1119
+ private readonly _types;
1120
+ get types(): Expression[];
1121
+ withTypes(types: Expression[]): Union;
1122
+ private readonly _type;
1123
+ get type(): JavaType | null;
1124
+ withType(_type: JavaType | null): Union;
1125
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1126
+ get padding(): {
1127
+ readonly types: JRightPadded<Expression>[];
1128
+ withTypes(types: JRightPadded<Expression>[]): Union;
1129
+ };
1130
+ }
1131
+ declare const Void_base: ((abstract new (...args: any[]) => {
1132
+ readonly prefix: Space;
1133
+ withPrefix(prefix: Space): JS;
1134
+ readonly id: Uint8Array;
1135
+ withId(id: UUID): JS;
1136
+ readonly markers: Markers;
1137
+ withMarkers(markers: Markers): JS;
1138
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1139
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1140
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
1141
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1142
+ constructor: Function;
1143
+ toString(): string;
1144
+ toLocaleString(): string;
1145
+ valueOf(): Object;
1146
+ hasOwnProperty(v: PropertyKey): boolean;
1147
+ isPrototypeOf(v: Object): boolean;
1148
+ propertyIsEnumerable(v: PropertyKey): boolean;
1149
+ }) & {
1150
+ isTree: boolean;
1151
+ isJava: boolean;
1152
+ isJavaScript: boolean;
1153
+ }) & ObjectConstructor;
1154
+ export declare class Void extends Void_base implements Expression, Statement {
1155
+ constructor(id: UUID, prefix: Space, markers: Markers, expression: Expression);
1156
+ private readonly _id;
1157
+ get id(): UUID;
1158
+ withId(id: UUID): Void;
1159
+ private readonly _prefix;
1160
+ get prefix(): Space;
1161
+ withPrefix(prefix: Space): Void;
1162
+ private readonly _markers;
1163
+ get markers(): Markers;
1164
+ withMarkers(markers: Markers): Void;
1165
+ private readonly _expression;
1166
+ get expression(): Expression;
1167
+ withExpression(expression: Expression): Void;
1168
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1169
+ get type(): JavaType | null;
1170
+ withType(type: JavaType): Void;
1171
+ }
1172
+ export {};
1173
+ //# sourceMappingURL=tree.d.ts.map