@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,3377 @@
1
+ import { J, Expression, JavaSourceFile, JavaType, JContainer, JLeftPadded, JRightPadded, Loop, MethodCall, NameTree, Space, Statement, TypedTree, TypeTree } from "./support_types";
2
+ import { JavaVisitor } from "../visitor";
3
+ import { Checksum, Cursor, FileAttributes, Markers, PrintOutputCapture, SourceFile, Tree, TreeVisitor, UUID } from "../../core";
4
+ declare const AnnotatedType_base: ((abstract new (...args: any[]) => {
5
+ readonly prefix: Space;
6
+ withPrefix(prefix: Space): J;
7
+ readonly id: Uint8Array;
8
+ withId(id: UUID): J;
9
+ readonly markers: Markers;
10
+ withMarkers(markers: Markers): J;
11
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
12
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
13
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
14
+ constructor: Function;
15
+ toString(): string;
16
+ toLocaleString(): string;
17
+ valueOf(): Object;
18
+ hasOwnProperty(v: PropertyKey): boolean;
19
+ isPrototypeOf(v: Object): boolean;
20
+ propertyIsEnumerable(v: PropertyKey): boolean;
21
+ }) & {
22
+ isTree: boolean;
23
+ isJava: boolean;
24
+ }) & ObjectConstructor;
25
+ export declare class AnnotatedType extends AnnotatedType_base implements Expression, TypeTree {
26
+ constructor(id: UUID, prefix: Space, markers: Markers, annotations: Annotation[], typeExpression: TypeTree);
27
+ private readonly _id;
28
+ get id(): UUID;
29
+ withId(id: UUID): AnnotatedType;
30
+ private readonly _prefix;
31
+ get prefix(): Space;
32
+ withPrefix(prefix: Space): AnnotatedType;
33
+ private readonly _markers;
34
+ get markers(): Markers;
35
+ withMarkers(markers: Markers): AnnotatedType;
36
+ private readonly _annotations;
37
+ get annotations(): Annotation[];
38
+ withAnnotations(annotations: Annotation[]): AnnotatedType;
39
+ private readonly _typeExpression;
40
+ get typeExpression(): TypeTree;
41
+ withTypeExpression(typeExpression: TypeTree): AnnotatedType;
42
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
43
+ get type(): JavaType | null;
44
+ withType(type: JavaType): AnnotatedType;
45
+ }
46
+ declare const Annotation_base: ((abstract new (...args: any[]) => {
47
+ readonly prefix: Space;
48
+ withPrefix(prefix: Space): J;
49
+ readonly id: Uint8Array;
50
+ withId(id: UUID): J;
51
+ readonly markers: Markers;
52
+ withMarkers(markers: Markers): J;
53
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
54
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
55
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
56
+ constructor: Function;
57
+ toString(): string;
58
+ toLocaleString(): string;
59
+ valueOf(): Object;
60
+ hasOwnProperty(v: PropertyKey): boolean;
61
+ isPrototypeOf(v: Object): boolean;
62
+ propertyIsEnumerable(v: PropertyKey): boolean;
63
+ }) & {
64
+ isTree: boolean;
65
+ isJava: boolean;
66
+ }) & ObjectConstructor;
67
+ export declare class Annotation extends Annotation_base implements Expression {
68
+ constructor(id: UUID, prefix: Space, markers: Markers, annotationType: NameTree, _arguments: JContainer<Expression> | null);
69
+ private readonly _id;
70
+ get id(): UUID;
71
+ withId(id: UUID): Annotation;
72
+ private readonly _prefix;
73
+ get prefix(): Space;
74
+ withPrefix(prefix: Space): Annotation;
75
+ private readonly _markers;
76
+ get markers(): Markers;
77
+ withMarkers(markers: Markers): Annotation;
78
+ private readonly _annotationType;
79
+ get annotationType(): NameTree;
80
+ withAnnotationType(annotationType: NameTree): Annotation;
81
+ private readonly _arguments;
82
+ get arguments(): Expression[] | null;
83
+ withArguments(_arguments: Expression[] | null): Annotation;
84
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
85
+ get type(): JavaType | null;
86
+ withType(type: JavaType): Annotation;
87
+ get padding(): {
88
+ readonly arguments: JContainer<Expression> | null;
89
+ withArguments(_arguments: JContainer<Expression> | null): Annotation;
90
+ };
91
+ }
92
+ declare const ArrayAccess_base: ((abstract new (...args: any[]) => {
93
+ readonly prefix: Space;
94
+ withPrefix(prefix: Space): J;
95
+ readonly id: Uint8Array;
96
+ withId(id: UUID): J;
97
+ readonly markers: Markers;
98
+ withMarkers(markers: Markers): J;
99
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
100
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
101
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
102
+ constructor: Function;
103
+ toString(): string;
104
+ toLocaleString(): string;
105
+ valueOf(): Object;
106
+ hasOwnProperty(v: PropertyKey): boolean;
107
+ isPrototypeOf(v: Object): boolean;
108
+ propertyIsEnumerable(v: PropertyKey): boolean;
109
+ }) & {
110
+ isTree: boolean;
111
+ isJava: boolean;
112
+ }) & ObjectConstructor;
113
+ export declare class ArrayAccess extends ArrayAccess_base implements Expression, TypedTree {
114
+ constructor(id: UUID, prefix: Space, markers: Markers, indexed: Expression, dimension: ArrayDimension, _type: JavaType | null);
115
+ private readonly _id;
116
+ get id(): UUID;
117
+ withId(id: UUID): ArrayAccess;
118
+ private readonly _prefix;
119
+ get prefix(): Space;
120
+ withPrefix(prefix: Space): ArrayAccess;
121
+ private readonly _markers;
122
+ get markers(): Markers;
123
+ withMarkers(markers: Markers): ArrayAccess;
124
+ private readonly _indexed;
125
+ get indexed(): Expression;
126
+ withIndexed(indexed: Expression): ArrayAccess;
127
+ private readonly _dimension;
128
+ get dimension(): ArrayDimension;
129
+ withDimension(dimension: ArrayDimension): ArrayAccess;
130
+ private readonly _type;
131
+ get type(): JavaType | null;
132
+ withType(_type: JavaType | null): ArrayAccess;
133
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
134
+ }
135
+ declare const ArrayType_base: ((abstract new (...args: any[]) => {
136
+ readonly prefix: Space;
137
+ withPrefix(prefix: Space): J;
138
+ readonly id: Uint8Array;
139
+ withId(id: UUID): J;
140
+ readonly markers: Markers;
141
+ withMarkers(markers: Markers): J;
142
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
143
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
144
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
145
+ constructor: Function;
146
+ toString(): string;
147
+ toLocaleString(): string;
148
+ valueOf(): Object;
149
+ hasOwnProperty(v: PropertyKey): boolean;
150
+ isPrototypeOf(v: Object): boolean;
151
+ propertyIsEnumerable(v: PropertyKey): boolean;
152
+ }) & {
153
+ isTree: boolean;
154
+ isJava: boolean;
155
+ }) & ObjectConstructor;
156
+ export declare class ArrayType extends ArrayType_base implements TypeTree, Expression {
157
+ constructor(id: UUID, prefix: Space, markers: Markers, elementType: TypeTree, annotations: Annotation[] | null, dimension: JLeftPadded<Space> | null, _type: JavaType);
158
+ private readonly _id;
159
+ get id(): UUID;
160
+ withId(id: UUID): ArrayType;
161
+ private readonly _prefix;
162
+ get prefix(): Space;
163
+ withPrefix(prefix: Space): ArrayType;
164
+ private readonly _markers;
165
+ get markers(): Markers;
166
+ withMarkers(markers: Markers): ArrayType;
167
+ private readonly _elementType;
168
+ get elementType(): TypeTree;
169
+ withElementType(elementType: TypeTree): ArrayType;
170
+ private readonly _annotations;
171
+ get annotations(): Annotation[] | null;
172
+ withAnnotations(annotations: Annotation[] | null): ArrayType;
173
+ private readonly _dimension;
174
+ get dimension(): JLeftPadded<Space> | null;
175
+ withDimension(dimension: JLeftPadded<Space> | null): ArrayType;
176
+ private readonly _type;
177
+ get type(): JavaType;
178
+ withType(_type: JavaType): ArrayType;
179
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
180
+ }
181
+ declare const Assert_base: ((abstract new (...args: any[]) => {
182
+ readonly prefix: Space;
183
+ withPrefix(prefix: Space): J;
184
+ readonly id: Uint8Array;
185
+ withId(id: UUID): J;
186
+ readonly markers: Markers;
187
+ withMarkers(markers: Markers): J;
188
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
189
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
190
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
191
+ constructor: Function;
192
+ toString(): string;
193
+ toLocaleString(): string;
194
+ valueOf(): Object;
195
+ hasOwnProperty(v: PropertyKey): boolean;
196
+ isPrototypeOf(v: Object): boolean;
197
+ propertyIsEnumerable(v: PropertyKey): boolean;
198
+ }) & {
199
+ isTree: boolean;
200
+ isJava: boolean;
201
+ }) & ObjectConstructor;
202
+ export declare class Assert extends Assert_base implements Statement {
203
+ constructor(id: UUID, prefix: Space, markers: Markers, condition: Expression, detail: JLeftPadded<Expression> | null);
204
+ private readonly _id;
205
+ get id(): UUID;
206
+ withId(id: UUID): Assert;
207
+ private readonly _prefix;
208
+ get prefix(): Space;
209
+ withPrefix(prefix: Space): Assert;
210
+ private readonly _markers;
211
+ get markers(): Markers;
212
+ withMarkers(markers: Markers): Assert;
213
+ private readonly _condition;
214
+ get condition(): Expression;
215
+ withCondition(condition: Expression): Assert;
216
+ private readonly _detail;
217
+ get detail(): JLeftPadded<Expression> | null;
218
+ withDetail(detail: JLeftPadded<Expression> | null): Assert;
219
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
220
+ }
221
+ declare const Assignment_base: ((abstract new (...args: any[]) => {
222
+ readonly prefix: Space;
223
+ withPrefix(prefix: Space): J;
224
+ readonly id: Uint8Array;
225
+ withId(id: UUID): J;
226
+ readonly markers: Markers;
227
+ withMarkers(markers: Markers): J;
228
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
229
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
230
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
231
+ constructor: Function;
232
+ toString(): string;
233
+ toLocaleString(): string;
234
+ valueOf(): Object;
235
+ hasOwnProperty(v: PropertyKey): boolean;
236
+ isPrototypeOf(v: Object): boolean;
237
+ propertyIsEnumerable(v: PropertyKey): boolean;
238
+ }) & {
239
+ isTree: boolean;
240
+ isJava: boolean;
241
+ }) & ObjectConstructor;
242
+ export declare class Assignment extends Assignment_base implements Statement, Expression, TypedTree {
243
+ constructor(id: UUID, prefix: Space, markers: Markers, variable: Expression, assignment: JLeftPadded<Expression>, _type: JavaType | null);
244
+ private readonly _id;
245
+ get id(): UUID;
246
+ withId(id: UUID): Assignment;
247
+ private readonly _prefix;
248
+ get prefix(): Space;
249
+ withPrefix(prefix: Space): Assignment;
250
+ private readonly _markers;
251
+ get markers(): Markers;
252
+ withMarkers(markers: Markers): Assignment;
253
+ private readonly _variable;
254
+ get variable(): Expression;
255
+ withVariable(variable: Expression): Assignment;
256
+ private readonly _assignment;
257
+ get assignment(): Expression;
258
+ withAssignment(assignment: Expression): Assignment;
259
+ private readonly _type;
260
+ get type(): JavaType | null;
261
+ withType(_type: JavaType | null): Assignment;
262
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
263
+ get padding(): {
264
+ readonly assignment: JLeftPadded<Expression>;
265
+ withAssignment(assignment: JLeftPadded<Expression>): Assignment;
266
+ };
267
+ }
268
+ declare const AssignmentOperation_base: ((abstract new (...args: any[]) => {
269
+ readonly prefix: Space;
270
+ withPrefix(prefix: Space): J;
271
+ readonly id: Uint8Array;
272
+ withId(id: UUID): J;
273
+ readonly markers: Markers;
274
+ withMarkers(markers: Markers): J;
275
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
276
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
277
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
278
+ constructor: Function;
279
+ toString(): string;
280
+ toLocaleString(): string;
281
+ valueOf(): Object;
282
+ hasOwnProperty(v: PropertyKey): boolean;
283
+ isPrototypeOf(v: Object): boolean;
284
+ propertyIsEnumerable(v: PropertyKey): boolean;
285
+ }) & {
286
+ isTree: boolean;
287
+ isJava: boolean;
288
+ }) & ObjectConstructor;
289
+ export declare class AssignmentOperation extends AssignmentOperation_base implements Statement, Expression, TypedTree {
290
+ constructor(id: UUID, prefix: Space, markers: Markers, variable: Expression, operator: JLeftPadded<AssignmentOperation.Type>, assignment: Expression, _type: JavaType | null);
291
+ private readonly _id;
292
+ get id(): UUID;
293
+ withId(id: UUID): AssignmentOperation;
294
+ private readonly _prefix;
295
+ get prefix(): Space;
296
+ withPrefix(prefix: Space): AssignmentOperation;
297
+ private readonly _markers;
298
+ get markers(): Markers;
299
+ withMarkers(markers: Markers): AssignmentOperation;
300
+ private readonly _variable;
301
+ get variable(): Expression;
302
+ withVariable(variable: Expression): AssignmentOperation;
303
+ private readonly _operator;
304
+ get operator(): AssignmentOperation.Type;
305
+ withOperator(operator: AssignmentOperation.Type): AssignmentOperation;
306
+ private readonly _assignment;
307
+ get assignment(): Expression;
308
+ withAssignment(assignment: Expression): AssignmentOperation;
309
+ private readonly _type;
310
+ get type(): JavaType | null;
311
+ withType(_type: JavaType | null): AssignmentOperation;
312
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
313
+ get padding(): {
314
+ readonly operator: JLeftPadded<AssignmentOperation.Type>;
315
+ withOperator(operator: JLeftPadded<AssignmentOperation.Type>): AssignmentOperation;
316
+ };
317
+ }
318
+ export declare namespace AssignmentOperation {
319
+ enum Type {
320
+ Addition = 0,
321
+ BitAnd = 1,
322
+ BitOr = 2,
323
+ BitXor = 3,
324
+ Division = 4,
325
+ Exponentiation = 5,
326
+ FloorDivision = 6,
327
+ LeftShift = 7,
328
+ MatrixMultiplication = 8,
329
+ Modulo = 9,
330
+ Multiplication = 10,
331
+ RightShift = 11,
332
+ Subtraction = 12,
333
+ UnsignedRightShift = 13
334
+ }
335
+ }
336
+ declare const Binary_base: ((abstract new (...args: any[]) => {
337
+ readonly prefix: Space;
338
+ withPrefix(prefix: Space): J;
339
+ readonly id: Uint8Array;
340
+ withId(id: UUID): J;
341
+ readonly markers: Markers;
342
+ withMarkers(markers: Markers): J;
343
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
344
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
345
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
346
+ constructor: Function;
347
+ toString(): string;
348
+ toLocaleString(): string;
349
+ valueOf(): Object;
350
+ hasOwnProperty(v: PropertyKey): boolean;
351
+ isPrototypeOf(v: Object): boolean;
352
+ propertyIsEnumerable(v: PropertyKey): boolean;
353
+ }) & {
354
+ isTree: boolean;
355
+ isJava: boolean;
356
+ }) & ObjectConstructor;
357
+ export declare class Binary extends Binary_base implements Expression, TypedTree {
358
+ constructor(id: UUID, prefix: Space, markers: Markers, left: Expression, operator: JLeftPadded<Binary.Type>, right: Expression, _type: JavaType | null);
359
+ private readonly _id;
360
+ get id(): UUID;
361
+ withId(id: UUID): Binary;
362
+ private readonly _prefix;
363
+ get prefix(): Space;
364
+ withPrefix(prefix: Space): Binary;
365
+ private readonly _markers;
366
+ get markers(): Markers;
367
+ withMarkers(markers: Markers): Binary;
368
+ private readonly _left;
369
+ get left(): Expression;
370
+ withLeft(left: Expression): Binary;
371
+ private readonly _operator;
372
+ get operator(): Binary.Type;
373
+ withOperator(operator: Binary.Type): Binary;
374
+ private readonly _right;
375
+ get right(): Expression;
376
+ withRight(right: Expression): Binary;
377
+ private readonly _type;
378
+ get type(): JavaType | null;
379
+ withType(_type: JavaType | null): Binary;
380
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
381
+ get padding(): {
382
+ readonly operator: JLeftPadded<Binary.Type>;
383
+ withOperator(operator: JLeftPadded<Binary.Type>): Binary;
384
+ };
385
+ }
386
+ export declare namespace Binary {
387
+ enum Type {
388
+ Addition = 0,
389
+ Subtraction = 1,
390
+ Multiplication = 2,
391
+ Division = 3,
392
+ Modulo = 4,
393
+ LessThan = 5,
394
+ GreaterThan = 6,
395
+ LessThanOrEqual = 7,
396
+ GreaterThanOrEqual = 8,
397
+ Equal = 9,
398
+ NotEqual = 10,
399
+ BitAnd = 11,
400
+ BitOr = 12,
401
+ BitXor = 13,
402
+ LeftShift = 14,
403
+ RightShift = 15,
404
+ UnsignedRightShift = 16,
405
+ Or = 17,
406
+ And = 18
407
+ }
408
+ }
409
+ declare const Block_base: ((abstract new (...args: any[]) => {
410
+ readonly prefix: Space;
411
+ withPrefix(prefix: Space): J;
412
+ readonly id: Uint8Array;
413
+ withId(id: UUID): J;
414
+ readonly markers: Markers;
415
+ withMarkers(markers: Markers): J;
416
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
417
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
418
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
419
+ constructor: Function;
420
+ toString(): string;
421
+ toLocaleString(): string;
422
+ valueOf(): Object;
423
+ hasOwnProperty(v: PropertyKey): boolean;
424
+ isPrototypeOf(v: Object): boolean;
425
+ propertyIsEnumerable(v: PropertyKey): boolean;
426
+ }) & {
427
+ isTree: boolean;
428
+ isJava: boolean;
429
+ }) & ObjectConstructor;
430
+ export declare class Block extends Block_base implements Statement {
431
+ constructor(id: UUID, prefix: Space, markers: Markers, _static: JRightPadded<boolean>, statements: JRightPadded<Statement>[], end: Space);
432
+ private readonly _id;
433
+ get id(): UUID;
434
+ withId(id: UUID): Block;
435
+ private readonly _prefix;
436
+ get prefix(): Space;
437
+ withPrefix(prefix: Space): Block;
438
+ private readonly _markers;
439
+ get markers(): Markers;
440
+ withMarkers(markers: Markers): Block;
441
+ private readonly _static;
442
+ get static(): boolean;
443
+ withStatic(_static: boolean): Block;
444
+ private readonly _statements;
445
+ get statements(): Statement[];
446
+ withStatements(statements: Statement[]): Block;
447
+ private readonly _end;
448
+ get end(): Space;
449
+ withEnd(end: Space): Block;
450
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
451
+ get padding(): {
452
+ readonly static: JRightPadded<boolean>;
453
+ withStatic(_static: JRightPadded<boolean>): Block;
454
+ readonly statements: JRightPadded<Statement>[];
455
+ withStatements(statements: JRightPadded<Statement>[]): Block;
456
+ };
457
+ }
458
+ declare const Break_base: ((abstract new (...args: any[]) => {
459
+ readonly prefix: Space;
460
+ withPrefix(prefix: Space): J;
461
+ readonly id: Uint8Array;
462
+ withId(id: UUID): J;
463
+ readonly markers: Markers;
464
+ withMarkers(markers: Markers): J;
465
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
466
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
467
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
468
+ constructor: Function;
469
+ toString(): string;
470
+ toLocaleString(): string;
471
+ valueOf(): Object;
472
+ hasOwnProperty(v: PropertyKey): boolean;
473
+ isPrototypeOf(v: Object): boolean;
474
+ propertyIsEnumerable(v: PropertyKey): boolean;
475
+ }) & {
476
+ isTree: boolean;
477
+ isJava: boolean;
478
+ }) & ObjectConstructor;
479
+ export declare class Break extends Break_base implements Statement {
480
+ constructor(id: UUID, prefix: Space, markers: Markers, label: Identifier | null);
481
+ private readonly _id;
482
+ get id(): UUID;
483
+ withId(id: UUID): Break;
484
+ private readonly _prefix;
485
+ get prefix(): Space;
486
+ withPrefix(prefix: Space): Break;
487
+ private readonly _markers;
488
+ get markers(): Markers;
489
+ withMarkers(markers: Markers): Break;
490
+ private readonly _label;
491
+ get label(): Identifier | null;
492
+ withLabel(label: Identifier | null): Break;
493
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
494
+ }
495
+ declare const Case_base: ((abstract new (...args: any[]) => {
496
+ readonly prefix: Space;
497
+ withPrefix(prefix: Space): J;
498
+ readonly id: Uint8Array;
499
+ withId(id: UUID): J;
500
+ readonly markers: Markers;
501
+ withMarkers(markers: Markers): J;
502
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
503
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
504
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
505
+ constructor: Function;
506
+ toString(): string;
507
+ toLocaleString(): string;
508
+ valueOf(): Object;
509
+ hasOwnProperty(v: PropertyKey): boolean;
510
+ isPrototypeOf(v: Object): boolean;
511
+ propertyIsEnumerable(v: PropertyKey): boolean;
512
+ }) & {
513
+ isTree: boolean;
514
+ isJava: boolean;
515
+ }) & ObjectConstructor;
516
+ export declare class Case extends Case_base implements Statement {
517
+ constructor(id: UUID, prefix: Space, markers: Markers, _type: Case.Type, expressions: JContainer<Expression>, statements: JContainer<Statement>, body: JRightPadded<J> | null);
518
+ private readonly _id;
519
+ get id(): UUID;
520
+ withId(id: UUID): Case;
521
+ private readonly _prefix;
522
+ get prefix(): Space;
523
+ withPrefix(prefix: Space): Case;
524
+ private readonly _markers;
525
+ get markers(): Markers;
526
+ withMarkers(markers: Markers): Case;
527
+ private readonly _type;
528
+ get type(): Case.Type;
529
+ withType(_type: Case.Type): Case;
530
+ private readonly _expressions;
531
+ get expressions(): Expression[];
532
+ withExpressions(expressions: Expression[]): Case;
533
+ private readonly _statements;
534
+ get statements(): Statement[];
535
+ withStatements(statements: Statement[]): Case;
536
+ private readonly _body;
537
+ get body(): J | null;
538
+ withBody(body: J | null): Case;
539
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
540
+ get padding(): {
541
+ readonly expressions: JContainer<Expression>;
542
+ withExpressions(expressions: JContainer<Expression>): Case;
543
+ readonly statements: JContainer<Statement>;
544
+ withStatements(statements: JContainer<Statement>): Case;
545
+ readonly body: JRightPadded<J> | null;
546
+ withBody(body: JRightPadded<J> | null): Case;
547
+ };
548
+ }
549
+ export declare namespace Case {
550
+ enum Type {
551
+ Statement = 0,
552
+ Rule = 1
553
+ }
554
+ }
555
+ declare const ClassDeclaration_base: ((abstract new (...args: any[]) => {
556
+ readonly prefix: Space;
557
+ withPrefix(prefix: Space): J;
558
+ readonly id: Uint8Array;
559
+ withId(id: UUID): J;
560
+ readonly markers: Markers;
561
+ withMarkers(markers: Markers): J;
562
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
563
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
564
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
565
+ constructor: Function;
566
+ toString(): string;
567
+ toLocaleString(): string;
568
+ valueOf(): Object;
569
+ hasOwnProperty(v: PropertyKey): boolean;
570
+ isPrototypeOf(v: Object): boolean;
571
+ propertyIsEnumerable(v: PropertyKey): boolean;
572
+ }) & {
573
+ isTree: boolean;
574
+ isJava: boolean;
575
+ }) & ObjectConstructor;
576
+ export declare class ClassDeclaration extends ClassDeclaration_base implements Statement, TypedTree {
577
+ constructor(id: UUID, prefix: Space, markers: Markers, leadingAnnotations: Annotation[], modifiers: Modifier[], kind: ClassDeclaration.Kind, name: Identifier, typeParameters: JContainer<TypeParameter> | null, primaryConstructor: JContainer<Statement> | null, _extends: JLeftPadded<TypeTree> | null, _implements: JContainer<TypeTree> | null, permits: JContainer<TypeTree> | null, body: Block, _type: JavaType.FullyQualified | null);
578
+ private readonly _id;
579
+ get id(): UUID;
580
+ withId(id: UUID): ClassDeclaration;
581
+ private readonly _prefix;
582
+ get prefix(): Space;
583
+ withPrefix(prefix: Space): ClassDeclaration;
584
+ private readonly _markers;
585
+ get markers(): Markers;
586
+ withMarkers(markers: Markers): ClassDeclaration;
587
+ private readonly _leadingAnnotations;
588
+ get leadingAnnotations(): Annotation[];
589
+ withLeadingAnnotations(leadingAnnotations: Annotation[]): ClassDeclaration;
590
+ private readonly _modifiers;
591
+ get modifiers(): Modifier[];
592
+ withModifiers(modifiers: Modifier[]): ClassDeclaration;
593
+ private readonly _kind;
594
+ withKind(kind: ClassDeclaration.Kind): ClassDeclaration;
595
+ private readonly _name;
596
+ get name(): Identifier;
597
+ withName(name: Identifier): ClassDeclaration;
598
+ private readonly _typeParameters;
599
+ get typeParameters(): TypeParameter[] | null;
600
+ withTypeParameters(typeParameters: TypeParameter[] | null): ClassDeclaration;
601
+ private readonly _primaryConstructor;
602
+ get primaryConstructor(): Statement[] | null;
603
+ withPrimaryConstructor(primaryConstructor: Statement[] | null): ClassDeclaration;
604
+ private readonly _extends;
605
+ get extends(): TypeTree | null;
606
+ withExtends(_extends: TypeTree | null): ClassDeclaration;
607
+ private readonly _implements;
608
+ get implements(): TypeTree[] | null;
609
+ withImplements(_implements: TypeTree[] | null): ClassDeclaration;
610
+ private readonly _permits;
611
+ get permits(): TypeTree[] | null;
612
+ withPermits(permits: TypeTree[] | null): ClassDeclaration;
613
+ private readonly _body;
614
+ get body(): Block;
615
+ withBody(body: Block): ClassDeclaration;
616
+ private readonly _type;
617
+ get type(): JavaType.FullyQualified | null;
618
+ withType(_type: JavaType.FullyQualified | null): ClassDeclaration;
619
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
620
+ get padding(): {
621
+ readonly kind: ClassDeclaration.Kind;
622
+ withKind(kind: ClassDeclaration.Kind): ClassDeclaration;
623
+ readonly typeParameters: JContainer<TypeParameter> | null;
624
+ withTypeParameters(typeParameters: JContainer<TypeParameter> | null): ClassDeclaration;
625
+ readonly primaryConstructor: JContainer<Statement> | null;
626
+ withPrimaryConstructor(primaryConstructor: JContainer<Statement> | null): ClassDeclaration;
627
+ readonly extends: JLeftPadded<TypeTree> | null;
628
+ withExtends(_extends: JLeftPadded<TypeTree> | null): ClassDeclaration;
629
+ readonly implements: JContainer<TypeTree> | null;
630
+ withImplements(_implements: JContainer<TypeTree> | null): ClassDeclaration;
631
+ readonly permits: JContainer<TypeTree> | null;
632
+ withPermits(permits: JContainer<TypeTree> | null): ClassDeclaration;
633
+ };
634
+ }
635
+ export declare namespace ClassDeclaration {
636
+ const Kind_base: ((abstract new (...args: any[]) => {
637
+ readonly prefix: Space;
638
+ withPrefix(prefix: Space): J;
639
+ readonly id: Uint8Array;
640
+ withId(id: UUID): J;
641
+ readonly markers: Markers;
642
+ withMarkers(markers: Markers): J;
643
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
644
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
645
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
646
+ constructor: Function;
647
+ toString(): string;
648
+ toLocaleString(): string;
649
+ valueOf(): Object;
650
+ hasOwnProperty(v: PropertyKey): boolean;
651
+ isPrototypeOf(v: Object): boolean;
652
+ propertyIsEnumerable(v: PropertyKey): boolean;
653
+ }) & {
654
+ isTree: boolean;
655
+ isJava: boolean;
656
+ }) & ObjectConstructor;
657
+ export class Kind extends Kind_base {
658
+ constructor(id: UUID, prefix: Space, markers: Markers, annotations: Annotation[], _type: ClassDeclaration.Kind.Type);
659
+ private readonly _id;
660
+ get id(): UUID;
661
+ withId(id: UUID): ClassDeclaration.Kind;
662
+ private readonly _prefix;
663
+ get prefix(): Space;
664
+ withPrefix(prefix: Space): ClassDeclaration.Kind;
665
+ private readonly _markers;
666
+ get markers(): Markers;
667
+ withMarkers(markers: Markers): ClassDeclaration.Kind;
668
+ private readonly _annotations;
669
+ get annotations(): Annotation[];
670
+ withAnnotations(annotations: Annotation[]): ClassDeclaration.Kind;
671
+ private readonly _type;
672
+ get type(): ClassDeclaration.Kind.Type;
673
+ withType(_type: ClassDeclaration.Kind.Type): ClassDeclaration.Kind;
674
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
675
+ }
676
+ export namespace Kind {
677
+ enum Type {
678
+ Class = 0,
679
+ Enum = 1,
680
+ Interface = 2,
681
+ Annotation = 3,
682
+ Record = 4,
683
+ Value = 5
684
+ }
685
+ }
686
+ export {};
687
+ }
688
+ declare const CompilationUnit_base: ((abstract new (...args: any[]) => {
689
+ readonly sourcePath: string;
690
+ withSourcePath(sourcePath: string): SourceFile;
691
+ readonly charsetName: string | null;
692
+ withCharsetName(charset: string | null): SourceFile;
693
+ readonly charsetBomMarked: boolean;
694
+ withCharsetBomMarked(isCharsetBomMarked: boolean): SourceFile;
695
+ readonly checksum: Checksum | null;
696
+ withChecksum(checksum: Checksum | null): SourceFile;
697
+ readonly fileAttributes: FileAttributes | null;
698
+ withFileAttributes(fileAttributes: FileAttributes | null): SourceFile;
699
+ printEqualsInput(parserInput: import("../../core").ParserInput, ctx: import("../../core").ExecutionContext): boolean;
700
+ printAll(): string;
701
+ print<P>(cursor: Cursor, capture: PrintOutputCapture<P>): string;
702
+ printer<P>(cursor: Cursor): TreeVisitor<any, PrintOutputCapture<P>>;
703
+ readonly id: Uint8Array;
704
+ withId(id: UUID): Tree;
705
+ readonly markers: Markers;
706
+ withMarkers(markers: Markers): Tree;
707
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
708
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
709
+ }) & {
710
+ isTree: boolean;
711
+ isSourceFile: boolean;
712
+ }) & ((abstract new (...args: any[]) => {
713
+ readonly prefix: Space;
714
+ withPrefix(prefix: Space): J;
715
+ readonly id: Uint8Array;
716
+ withId(id: UUID): J;
717
+ readonly markers: Markers;
718
+ withMarkers(markers: Markers): J;
719
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
720
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
721
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
722
+ constructor: Function;
723
+ toString(): string;
724
+ toLocaleString(): string;
725
+ valueOf(): Object;
726
+ hasOwnProperty(v: PropertyKey): boolean;
727
+ isPrototypeOf(v: Object): boolean;
728
+ propertyIsEnumerable(v: PropertyKey): boolean;
729
+ }) & {
730
+ isTree: boolean;
731
+ isJava: boolean;
732
+ }) & ObjectConstructor;
733
+ export declare class CompilationUnit extends CompilationUnit_base implements JavaSourceFile {
734
+ constructor(id: UUID, prefix: Space, markers: Markers, sourcePath: string, fileAttributes: FileAttributes | null, charsetName: string | null, charsetBomMarked: boolean, checksum: Checksum | null, packageDeclaration: JRightPadded<Package> | null, imports: JRightPadded<Import>[], classes: ClassDeclaration[], eof: Space);
735
+ private readonly _id;
736
+ get id(): UUID;
737
+ withId(id: UUID): CompilationUnit;
738
+ private readonly _prefix;
739
+ get prefix(): Space;
740
+ withPrefix(prefix: Space): CompilationUnit;
741
+ private readonly _markers;
742
+ get markers(): Markers;
743
+ withMarkers(markers: Markers): CompilationUnit;
744
+ private readonly _sourcePath;
745
+ get sourcePath(): string;
746
+ withSourcePath(sourcePath: string): CompilationUnit;
747
+ private readonly _fileAttributes;
748
+ get fileAttributes(): FileAttributes | null;
749
+ withFileAttributes(fileAttributes: FileAttributes | null): CompilationUnit;
750
+ private readonly _charsetName;
751
+ get charsetName(): string | null;
752
+ withCharsetName(charsetName: string | null): CompilationUnit;
753
+ private readonly _charsetBomMarked;
754
+ get charsetBomMarked(): boolean;
755
+ withCharsetBomMarked(charsetBomMarked: boolean): CompilationUnit;
756
+ private readonly _checksum;
757
+ get checksum(): Checksum | null;
758
+ withChecksum(checksum: Checksum | null): CompilationUnit;
759
+ private readonly _packageDeclaration;
760
+ get packageDeclaration(): Package | null;
761
+ withPackageDeclaration(packageDeclaration: Package | null): CompilationUnit;
762
+ private readonly _imports;
763
+ get imports(): Import[];
764
+ withImports(imports: Import[]): CompilationUnit;
765
+ private readonly _classes;
766
+ get classes(): ClassDeclaration[];
767
+ withClasses(classes: ClassDeclaration[]): CompilationUnit;
768
+ private readonly _eof;
769
+ get eof(): Space;
770
+ withEof(eof: Space): CompilationUnit;
771
+ printer<P>(cursor: Cursor): TreeVisitor<Tree, PrintOutputCapture<P>>;
772
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
773
+ get padding(): {
774
+ readonly packageDeclaration: JRightPadded<Package> | null;
775
+ withPackageDeclaration(packageDeclaration: JRightPadded<Package> | null): CompilationUnit;
776
+ readonly imports: JRightPadded<Import>[];
777
+ withImports(imports: JRightPadded<Import>[]): CompilationUnit;
778
+ };
779
+ }
780
+ declare const Continue_base: ((abstract new (...args: any[]) => {
781
+ readonly prefix: Space;
782
+ withPrefix(prefix: Space): J;
783
+ readonly id: Uint8Array;
784
+ withId(id: UUID): J;
785
+ readonly markers: Markers;
786
+ withMarkers(markers: Markers): J;
787
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
788
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
789
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
790
+ constructor: Function;
791
+ toString(): string;
792
+ toLocaleString(): string;
793
+ valueOf(): Object;
794
+ hasOwnProperty(v: PropertyKey): boolean;
795
+ isPrototypeOf(v: Object): boolean;
796
+ propertyIsEnumerable(v: PropertyKey): boolean;
797
+ }) & {
798
+ isTree: boolean;
799
+ isJava: boolean;
800
+ }) & ObjectConstructor;
801
+ export declare class Continue extends Continue_base implements Statement {
802
+ constructor(id: UUID, prefix: Space, markers: Markers, label: Identifier | null);
803
+ private readonly _id;
804
+ get id(): UUID;
805
+ withId(id: UUID): Continue;
806
+ private readonly _prefix;
807
+ get prefix(): Space;
808
+ withPrefix(prefix: Space): Continue;
809
+ private readonly _markers;
810
+ get markers(): Markers;
811
+ withMarkers(markers: Markers): Continue;
812
+ private readonly _label;
813
+ get label(): Identifier | null;
814
+ withLabel(label: Identifier | null): Continue;
815
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
816
+ }
817
+ declare const DoWhileLoop_base: ((abstract new (...args: any[]) => {
818
+ readonly prefix: Space;
819
+ withPrefix(prefix: Space): J;
820
+ readonly id: Uint8Array;
821
+ withId(id: UUID): J;
822
+ readonly markers: Markers;
823
+ withMarkers(markers: Markers): J;
824
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
825
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
826
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
827
+ constructor: Function;
828
+ toString(): string;
829
+ toLocaleString(): string;
830
+ valueOf(): Object;
831
+ hasOwnProperty(v: PropertyKey): boolean;
832
+ isPrototypeOf(v: Object): boolean;
833
+ propertyIsEnumerable(v: PropertyKey): boolean;
834
+ }) & {
835
+ isTree: boolean;
836
+ isJava: boolean;
837
+ }) & ObjectConstructor;
838
+ export declare class DoWhileLoop extends DoWhileLoop_base implements Loop {
839
+ constructor(id: UUID, prefix: Space, markers: Markers, body: JRightPadded<Statement>, whileCondition: JLeftPadded<ControlParentheses<Expression>>);
840
+ private readonly _id;
841
+ get id(): UUID;
842
+ withId(id: UUID): DoWhileLoop;
843
+ private readonly _prefix;
844
+ get prefix(): Space;
845
+ withPrefix(prefix: Space): DoWhileLoop;
846
+ private readonly _markers;
847
+ get markers(): Markers;
848
+ withMarkers(markers: Markers): DoWhileLoop;
849
+ private readonly _body;
850
+ get body(): Statement;
851
+ withBody(body: Statement): DoWhileLoop;
852
+ private readonly _whileCondition;
853
+ get whileCondition(): ControlParentheses<Expression>;
854
+ withWhileCondition(whileCondition: ControlParentheses<Expression>): DoWhileLoop;
855
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
856
+ get padding(): {
857
+ readonly body: JRightPadded<Statement>;
858
+ withBody(body: JRightPadded<Statement>): DoWhileLoop;
859
+ readonly whileCondition: JLeftPadded<ControlParentheses<Expression>>;
860
+ withWhileCondition(whileCondition: JLeftPadded<ControlParentheses<Expression>>): DoWhileLoop;
861
+ };
862
+ }
863
+ declare const Empty_base: ((abstract new (...args: any[]) => {
864
+ readonly prefix: Space;
865
+ withPrefix(prefix: Space): J;
866
+ readonly id: Uint8Array;
867
+ withId(id: UUID): J;
868
+ readonly markers: Markers;
869
+ withMarkers(markers: Markers): J;
870
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
871
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
872
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
873
+ constructor: Function;
874
+ toString(): string;
875
+ toLocaleString(): string;
876
+ valueOf(): Object;
877
+ hasOwnProperty(v: PropertyKey): boolean;
878
+ isPrototypeOf(v: Object): boolean;
879
+ propertyIsEnumerable(v: PropertyKey): boolean;
880
+ }) & {
881
+ isTree: boolean;
882
+ isJava: boolean;
883
+ }) & ObjectConstructor;
884
+ export declare class Empty extends Empty_base implements Statement, Expression, TypeTree {
885
+ constructor(id: UUID, prefix: Space, markers: Markers);
886
+ private readonly _id;
887
+ get id(): UUID;
888
+ withId(id: UUID): Empty;
889
+ private readonly _prefix;
890
+ get prefix(): Space;
891
+ withPrefix(prefix: Space): Empty;
892
+ private readonly _markers;
893
+ get markers(): Markers;
894
+ withMarkers(markers: Markers): Empty;
895
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
896
+ get type(): JavaType | null;
897
+ withType(type: JavaType): Empty;
898
+ }
899
+ declare const EnumValue_base: ((abstract new (...args: any[]) => {
900
+ readonly prefix: Space;
901
+ withPrefix(prefix: Space): J;
902
+ readonly id: Uint8Array;
903
+ withId(id: UUID): J;
904
+ readonly markers: Markers;
905
+ withMarkers(markers: Markers): J;
906
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
907
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
908
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
909
+ constructor: Function;
910
+ toString(): string;
911
+ toLocaleString(): string;
912
+ valueOf(): Object;
913
+ hasOwnProperty(v: PropertyKey): boolean;
914
+ isPrototypeOf(v: Object): boolean;
915
+ propertyIsEnumerable(v: PropertyKey): boolean;
916
+ }) & {
917
+ isTree: boolean;
918
+ isJava: boolean;
919
+ }) & ObjectConstructor;
920
+ export declare class EnumValue extends EnumValue_base {
921
+ constructor(id: UUID, prefix: Space, markers: Markers, annotations: Annotation[], name: Identifier, initializer: NewClass | null);
922
+ private readonly _id;
923
+ get id(): UUID;
924
+ withId(id: UUID): EnumValue;
925
+ private readonly _prefix;
926
+ get prefix(): Space;
927
+ withPrefix(prefix: Space): EnumValue;
928
+ private readonly _markers;
929
+ get markers(): Markers;
930
+ withMarkers(markers: Markers): EnumValue;
931
+ private readonly _annotations;
932
+ get annotations(): Annotation[];
933
+ withAnnotations(annotations: Annotation[]): EnumValue;
934
+ private readonly _name;
935
+ get name(): Identifier;
936
+ withName(name: Identifier): EnumValue;
937
+ private readonly _initializer;
938
+ get initializer(): NewClass | null;
939
+ withInitializer(initializer: NewClass | null): EnumValue;
940
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
941
+ }
942
+ declare const EnumValueSet_base: ((abstract new (...args: any[]) => {
943
+ readonly prefix: Space;
944
+ withPrefix(prefix: Space): J;
945
+ readonly id: Uint8Array;
946
+ withId(id: UUID): J;
947
+ readonly markers: Markers;
948
+ withMarkers(markers: Markers): J;
949
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
950
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
951
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
952
+ constructor: Function;
953
+ toString(): string;
954
+ toLocaleString(): string;
955
+ valueOf(): Object;
956
+ hasOwnProperty(v: PropertyKey): boolean;
957
+ isPrototypeOf(v: Object): boolean;
958
+ propertyIsEnumerable(v: PropertyKey): boolean;
959
+ }) & {
960
+ isTree: boolean;
961
+ isJava: boolean;
962
+ }) & ObjectConstructor;
963
+ export declare class EnumValueSet extends EnumValueSet_base implements Statement {
964
+ constructor(id: UUID, prefix: Space, markers: Markers, enums: JRightPadded<EnumValue>[], terminatedWithSemicolon: boolean);
965
+ private readonly _id;
966
+ get id(): UUID;
967
+ withId(id: UUID): EnumValueSet;
968
+ private readonly _prefix;
969
+ get prefix(): Space;
970
+ withPrefix(prefix: Space): EnumValueSet;
971
+ private readonly _markers;
972
+ get markers(): Markers;
973
+ withMarkers(markers: Markers): EnumValueSet;
974
+ private readonly _enums;
975
+ get enums(): EnumValue[];
976
+ withEnums(enums: EnumValue[]): EnumValueSet;
977
+ private readonly _terminatedWithSemicolon;
978
+ get terminatedWithSemicolon(): boolean;
979
+ withTerminatedWithSemicolon(terminatedWithSemicolon: boolean): EnumValueSet;
980
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
981
+ get padding(): {
982
+ readonly enums: JRightPadded<EnumValue>[];
983
+ withEnums(enums: JRightPadded<EnumValue>[]): EnumValueSet;
984
+ };
985
+ }
986
+ declare const FieldAccess_base: ((abstract new (...args: any[]) => {
987
+ readonly prefix: Space;
988
+ withPrefix(prefix: Space): J;
989
+ readonly id: Uint8Array;
990
+ withId(id: UUID): J;
991
+ readonly markers: Markers;
992
+ withMarkers(markers: Markers): J;
993
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
994
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
995
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
996
+ constructor: Function;
997
+ toString(): string;
998
+ toLocaleString(): string;
999
+ valueOf(): Object;
1000
+ hasOwnProperty(v: PropertyKey): boolean;
1001
+ isPrototypeOf(v: Object): boolean;
1002
+ propertyIsEnumerable(v: PropertyKey): boolean;
1003
+ }) & {
1004
+ isTree: boolean;
1005
+ isJava: boolean;
1006
+ }) & ObjectConstructor;
1007
+ export declare class FieldAccess extends FieldAccess_base implements TypeTree, Expression, Statement {
1008
+ constructor(id: UUID, prefix: Space, markers: Markers, target: Expression, name: JLeftPadded<Identifier>, _type: JavaType | null);
1009
+ private readonly _id;
1010
+ get id(): UUID;
1011
+ withId(id: UUID): FieldAccess;
1012
+ private readonly _prefix;
1013
+ get prefix(): Space;
1014
+ withPrefix(prefix: Space): FieldAccess;
1015
+ private readonly _markers;
1016
+ get markers(): Markers;
1017
+ withMarkers(markers: Markers): FieldAccess;
1018
+ private readonly _target;
1019
+ get target(): Expression;
1020
+ withTarget(target: Expression): FieldAccess;
1021
+ private readonly _name;
1022
+ get name(): Identifier;
1023
+ withName(name: Identifier): FieldAccess;
1024
+ private readonly _type;
1025
+ get type(): JavaType | null;
1026
+ withType(_type: JavaType | null): FieldAccess;
1027
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1028
+ get padding(): {
1029
+ readonly name: JLeftPadded<Identifier>;
1030
+ withName(name: JLeftPadded<Identifier>): FieldAccess;
1031
+ };
1032
+ }
1033
+ declare const ForEachLoop_base: ((abstract new (...args: any[]) => {
1034
+ readonly prefix: Space;
1035
+ withPrefix(prefix: Space): J;
1036
+ readonly id: Uint8Array;
1037
+ withId(id: UUID): J;
1038
+ readonly markers: Markers;
1039
+ withMarkers(markers: Markers): J;
1040
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1041
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1042
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1043
+ constructor: Function;
1044
+ toString(): string;
1045
+ toLocaleString(): string;
1046
+ valueOf(): Object;
1047
+ hasOwnProperty(v: PropertyKey): boolean;
1048
+ isPrototypeOf(v: Object): boolean;
1049
+ propertyIsEnumerable(v: PropertyKey): boolean;
1050
+ }) & {
1051
+ isTree: boolean;
1052
+ isJava: boolean;
1053
+ }) & ObjectConstructor;
1054
+ export declare class ForEachLoop extends ForEachLoop_base implements Loop {
1055
+ constructor(id: UUID, prefix: Space, markers: Markers, control: ForEachLoop.Control, body: JRightPadded<Statement>);
1056
+ private readonly _id;
1057
+ get id(): UUID;
1058
+ withId(id: UUID): ForEachLoop;
1059
+ private readonly _prefix;
1060
+ get prefix(): Space;
1061
+ withPrefix(prefix: Space): ForEachLoop;
1062
+ private readonly _markers;
1063
+ get markers(): Markers;
1064
+ withMarkers(markers: Markers): ForEachLoop;
1065
+ private readonly _control;
1066
+ get control(): ForEachLoop.Control;
1067
+ withControl(control: ForEachLoop.Control): ForEachLoop;
1068
+ private readonly _body;
1069
+ get body(): Statement;
1070
+ withBody(body: Statement): ForEachLoop;
1071
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1072
+ get padding(): {
1073
+ readonly body: JRightPadded<Statement>;
1074
+ withBody(body: JRightPadded<Statement>): ForEachLoop;
1075
+ };
1076
+ }
1077
+ export declare namespace ForEachLoop {
1078
+ const Control_base: ((abstract new (...args: any[]) => {
1079
+ readonly prefix: Space;
1080
+ withPrefix(prefix: Space): J;
1081
+ readonly id: Uint8Array;
1082
+ withId(id: UUID): J;
1083
+ readonly markers: Markers;
1084
+ withMarkers(markers: Markers): J;
1085
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1086
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1087
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1088
+ constructor: Function;
1089
+ toString(): string;
1090
+ toLocaleString(): string;
1091
+ valueOf(): Object;
1092
+ hasOwnProperty(v: PropertyKey): boolean;
1093
+ isPrototypeOf(v: Object): boolean;
1094
+ propertyIsEnumerable(v: PropertyKey): boolean;
1095
+ }) & {
1096
+ isTree: boolean;
1097
+ isJava: boolean;
1098
+ }) & ObjectConstructor;
1099
+ export class Control extends Control_base {
1100
+ constructor(id: UUID, prefix: Space, markers: Markers, variable: JRightPadded<VariableDeclarations>, iterable: JRightPadded<Expression>);
1101
+ private readonly _id;
1102
+ get id(): UUID;
1103
+ withId(id: UUID): ForEachLoop.Control;
1104
+ private readonly _prefix;
1105
+ get prefix(): Space;
1106
+ withPrefix(prefix: Space): ForEachLoop.Control;
1107
+ private readonly _markers;
1108
+ get markers(): Markers;
1109
+ withMarkers(markers: Markers): ForEachLoop.Control;
1110
+ private readonly _variable;
1111
+ get variable(): VariableDeclarations;
1112
+ withVariable(variable: VariableDeclarations): ForEachLoop.Control;
1113
+ private readonly _iterable;
1114
+ get iterable(): Expression;
1115
+ withIterable(iterable: Expression): ForEachLoop.Control;
1116
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1117
+ get padding(): {
1118
+ readonly variable: JRightPadded<VariableDeclarations>;
1119
+ withVariable(variable: JRightPadded<VariableDeclarations>): ForEachLoop.Control;
1120
+ readonly iterable: JRightPadded<Expression>;
1121
+ withIterable(iterable: JRightPadded<Expression>): ForEachLoop.Control;
1122
+ };
1123
+ }
1124
+ export {};
1125
+ }
1126
+ declare const ForLoop_base: ((abstract new (...args: any[]) => {
1127
+ readonly prefix: Space;
1128
+ withPrefix(prefix: Space): J;
1129
+ readonly id: Uint8Array;
1130
+ withId(id: UUID): J;
1131
+ readonly markers: Markers;
1132
+ withMarkers(markers: Markers): J;
1133
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1134
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1135
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1136
+ constructor: Function;
1137
+ toString(): string;
1138
+ toLocaleString(): string;
1139
+ valueOf(): Object;
1140
+ hasOwnProperty(v: PropertyKey): boolean;
1141
+ isPrototypeOf(v: Object): boolean;
1142
+ propertyIsEnumerable(v: PropertyKey): boolean;
1143
+ }) & {
1144
+ isTree: boolean;
1145
+ isJava: boolean;
1146
+ }) & ObjectConstructor;
1147
+ export declare class ForLoop extends ForLoop_base implements Loop {
1148
+ constructor(id: UUID, prefix: Space, markers: Markers, control: ForLoop.Control, body: JRightPadded<Statement>);
1149
+ private readonly _id;
1150
+ get id(): UUID;
1151
+ withId(id: UUID): ForLoop;
1152
+ private readonly _prefix;
1153
+ get prefix(): Space;
1154
+ withPrefix(prefix: Space): ForLoop;
1155
+ private readonly _markers;
1156
+ get markers(): Markers;
1157
+ withMarkers(markers: Markers): ForLoop;
1158
+ private readonly _control;
1159
+ get control(): ForLoop.Control;
1160
+ withControl(control: ForLoop.Control): ForLoop;
1161
+ private readonly _body;
1162
+ get body(): Statement;
1163
+ withBody(body: Statement): ForLoop;
1164
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1165
+ get padding(): {
1166
+ readonly body: JRightPadded<Statement>;
1167
+ withBody(body: JRightPadded<Statement>): ForLoop;
1168
+ };
1169
+ }
1170
+ export declare namespace ForLoop {
1171
+ const Control_base_1: ((abstract new (...args: any[]) => {
1172
+ readonly prefix: Space;
1173
+ withPrefix(prefix: Space): J;
1174
+ readonly id: Uint8Array;
1175
+ withId(id: UUID): J;
1176
+ readonly markers: Markers;
1177
+ withMarkers(markers: Markers): J;
1178
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1179
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1180
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1181
+ constructor: Function;
1182
+ toString(): string;
1183
+ toLocaleString(): string;
1184
+ valueOf(): Object;
1185
+ hasOwnProperty(v: PropertyKey): boolean;
1186
+ isPrototypeOf(v: Object): boolean;
1187
+ propertyIsEnumerable(v: PropertyKey): boolean;
1188
+ }) & {
1189
+ isTree: boolean;
1190
+ isJava: boolean;
1191
+ }) & ObjectConstructor;
1192
+ export class Control extends Control_base_1 {
1193
+ constructor(id: UUID, prefix: Space, markers: Markers, init: JRightPadded<Statement>[], condition: JRightPadded<Expression>, update: JRightPadded<Statement>[]);
1194
+ private readonly _id;
1195
+ get id(): UUID;
1196
+ withId(id: UUID): ForLoop.Control;
1197
+ private readonly _prefix;
1198
+ get prefix(): Space;
1199
+ withPrefix(prefix: Space): ForLoop.Control;
1200
+ private readonly _markers;
1201
+ get markers(): Markers;
1202
+ withMarkers(markers: Markers): ForLoop.Control;
1203
+ private readonly _init;
1204
+ get init(): Statement[];
1205
+ withInit(init: Statement[]): ForLoop.Control;
1206
+ private readonly _condition;
1207
+ get condition(): Expression;
1208
+ withCondition(condition: Expression): ForLoop.Control;
1209
+ private readonly _update;
1210
+ get update(): Statement[];
1211
+ withUpdate(update: Statement[]): ForLoop.Control;
1212
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1213
+ get padding(): {
1214
+ readonly init: JRightPadded<Statement>[];
1215
+ withInit(init: JRightPadded<Statement>[]): ForLoop.Control;
1216
+ readonly condition: JRightPadded<Expression>;
1217
+ withCondition(condition: JRightPadded<Expression>): ForLoop.Control;
1218
+ readonly update: JRightPadded<Statement>[];
1219
+ withUpdate(update: JRightPadded<Statement>[]): ForLoop.Control;
1220
+ };
1221
+ }
1222
+ export {};
1223
+ }
1224
+ declare const ParenthesizedTypeTree_base: ((abstract new (...args: any[]) => {
1225
+ readonly prefix: Space;
1226
+ withPrefix(prefix: Space): J;
1227
+ readonly id: Uint8Array;
1228
+ withId(id: UUID): J;
1229
+ readonly markers: Markers;
1230
+ withMarkers(markers: Markers): J;
1231
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1232
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1233
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1234
+ constructor: Function;
1235
+ toString(): string;
1236
+ toLocaleString(): string;
1237
+ valueOf(): Object;
1238
+ hasOwnProperty(v: PropertyKey): boolean;
1239
+ isPrototypeOf(v: Object): boolean;
1240
+ propertyIsEnumerable(v: PropertyKey): boolean;
1241
+ }) & {
1242
+ isTree: boolean;
1243
+ isJava: boolean;
1244
+ }) & ObjectConstructor;
1245
+ export declare class ParenthesizedTypeTree extends ParenthesizedTypeTree_base implements TypeTree, Expression {
1246
+ constructor(id: UUID, prefix: Space, markers: Markers, annotations: Annotation[], parenthesizedType: Parentheses<TypeTree>);
1247
+ private readonly _id;
1248
+ get id(): UUID;
1249
+ withId(id: UUID): ParenthesizedTypeTree;
1250
+ private readonly _prefix;
1251
+ get prefix(): Space;
1252
+ withPrefix(prefix: Space): ParenthesizedTypeTree;
1253
+ private readonly _markers;
1254
+ get markers(): Markers;
1255
+ withMarkers(markers: Markers): ParenthesizedTypeTree;
1256
+ private readonly _annotations;
1257
+ get annotations(): Annotation[];
1258
+ withAnnotations(annotations: Annotation[]): ParenthesizedTypeTree;
1259
+ private readonly _parenthesizedType;
1260
+ get parenthesizedType(): Parentheses<TypeTree>;
1261
+ withParenthesizedType(parenthesizedType: Parentheses<TypeTree>): ParenthesizedTypeTree;
1262
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1263
+ get type(): JavaType | null;
1264
+ withType(type: JavaType): ParenthesizedTypeTree;
1265
+ }
1266
+ declare const Identifier_base: ((abstract new (...args: any[]) => {
1267
+ readonly prefix: Space;
1268
+ withPrefix(prefix: Space): J;
1269
+ readonly id: Uint8Array;
1270
+ withId(id: UUID): J;
1271
+ readonly markers: Markers;
1272
+ withMarkers(markers: Markers): J;
1273
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1274
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1275
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1276
+ constructor: Function;
1277
+ toString(): string;
1278
+ toLocaleString(): string;
1279
+ valueOf(): Object;
1280
+ hasOwnProperty(v: PropertyKey): boolean;
1281
+ isPrototypeOf(v: Object): boolean;
1282
+ propertyIsEnumerable(v: PropertyKey): boolean;
1283
+ }) & {
1284
+ isTree: boolean;
1285
+ isJava: boolean;
1286
+ }) & ObjectConstructor;
1287
+ export declare class Identifier extends Identifier_base implements TypeTree, Expression {
1288
+ constructor(id: UUID, prefix: Space, markers: Markers, annotations: Annotation[], simpleName: string, _type: JavaType | null, fieldType: JavaType.Variable | null);
1289
+ private readonly _id;
1290
+ get id(): UUID;
1291
+ withId(id: UUID): Identifier;
1292
+ private readonly _prefix;
1293
+ get prefix(): Space;
1294
+ withPrefix(prefix: Space): Identifier;
1295
+ private readonly _markers;
1296
+ get markers(): Markers;
1297
+ withMarkers(markers: Markers): Identifier;
1298
+ private readonly _annotations;
1299
+ get annotations(): Annotation[];
1300
+ withAnnotations(annotations: Annotation[]): Identifier;
1301
+ private readonly _simpleName;
1302
+ get simpleName(): string;
1303
+ withSimpleName(simpleName: string): Identifier;
1304
+ private readonly _type;
1305
+ get type(): JavaType | null;
1306
+ withType(_type: JavaType | null): Identifier;
1307
+ private readonly _fieldType;
1308
+ get fieldType(): JavaType.Variable | null;
1309
+ withFieldType(fieldType: JavaType.Variable | null): Identifier;
1310
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1311
+ }
1312
+ declare const If_base: ((abstract new (...args: any[]) => {
1313
+ readonly prefix: Space;
1314
+ withPrefix(prefix: Space): J;
1315
+ readonly id: Uint8Array;
1316
+ withId(id: UUID): J;
1317
+ readonly markers: Markers;
1318
+ withMarkers(markers: Markers): J;
1319
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1320
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1321
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1322
+ constructor: Function;
1323
+ toString(): string;
1324
+ toLocaleString(): string;
1325
+ valueOf(): Object;
1326
+ hasOwnProperty(v: PropertyKey): boolean;
1327
+ isPrototypeOf(v: Object): boolean;
1328
+ propertyIsEnumerable(v: PropertyKey): boolean;
1329
+ }) & {
1330
+ isTree: boolean;
1331
+ isJava: boolean;
1332
+ }) & ObjectConstructor;
1333
+ export declare class If extends If_base implements Statement {
1334
+ constructor(id: UUID, prefix: Space, markers: Markers, ifCondition: ControlParentheses<Expression>, thenPart: JRightPadded<Statement>, elsePart: If.Else | null);
1335
+ private readonly _id;
1336
+ get id(): UUID;
1337
+ withId(id: UUID): If;
1338
+ private readonly _prefix;
1339
+ get prefix(): Space;
1340
+ withPrefix(prefix: Space): If;
1341
+ private readonly _markers;
1342
+ get markers(): Markers;
1343
+ withMarkers(markers: Markers): If;
1344
+ private readonly _ifCondition;
1345
+ get ifCondition(): ControlParentheses<Expression>;
1346
+ withIfCondition(ifCondition: ControlParentheses<Expression>): If;
1347
+ private readonly _thenPart;
1348
+ get thenPart(): Statement;
1349
+ withThenPart(thenPart: Statement): If;
1350
+ private readonly _elsePart;
1351
+ get elsePart(): If.Else | null;
1352
+ withElsePart(elsePart: If.Else | null): If;
1353
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1354
+ get padding(): {
1355
+ readonly thenPart: JRightPadded<Statement>;
1356
+ withThenPart(thenPart: JRightPadded<Statement>): If;
1357
+ };
1358
+ }
1359
+ export declare namespace If {
1360
+ const Else_base: ((abstract new (...args: any[]) => {
1361
+ readonly prefix: Space;
1362
+ withPrefix(prefix: Space): J;
1363
+ readonly id: Uint8Array;
1364
+ withId(id: UUID): J;
1365
+ readonly markers: Markers;
1366
+ withMarkers(markers: Markers): J;
1367
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1368
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1369
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1370
+ constructor: Function;
1371
+ toString(): string;
1372
+ toLocaleString(): string;
1373
+ valueOf(): Object;
1374
+ hasOwnProperty(v: PropertyKey): boolean;
1375
+ isPrototypeOf(v: Object): boolean;
1376
+ propertyIsEnumerable(v: PropertyKey): boolean;
1377
+ }) & {
1378
+ isTree: boolean;
1379
+ isJava: boolean;
1380
+ }) & ObjectConstructor;
1381
+ export class Else extends Else_base {
1382
+ constructor(id: UUID, prefix: Space, markers: Markers, body: JRightPadded<Statement>);
1383
+ private readonly _id;
1384
+ get id(): UUID;
1385
+ withId(id: UUID): If.Else;
1386
+ private readonly _prefix;
1387
+ get prefix(): Space;
1388
+ withPrefix(prefix: Space): If.Else;
1389
+ private readonly _markers;
1390
+ get markers(): Markers;
1391
+ withMarkers(markers: Markers): If.Else;
1392
+ private readonly _body;
1393
+ get body(): Statement;
1394
+ withBody(body: Statement): If.Else;
1395
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1396
+ get padding(): {
1397
+ readonly body: JRightPadded<Statement>;
1398
+ withBody(body: JRightPadded<Statement>): If.Else;
1399
+ };
1400
+ }
1401
+ export {};
1402
+ }
1403
+ declare const Import_base: ((abstract new (...args: any[]) => {
1404
+ readonly prefix: Space;
1405
+ withPrefix(prefix: Space): J;
1406
+ readonly id: Uint8Array;
1407
+ withId(id: UUID): J;
1408
+ readonly markers: Markers;
1409
+ withMarkers(markers: Markers): J;
1410
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1411
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1412
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1413
+ constructor: Function;
1414
+ toString(): string;
1415
+ toLocaleString(): string;
1416
+ valueOf(): Object;
1417
+ hasOwnProperty(v: PropertyKey): boolean;
1418
+ isPrototypeOf(v: Object): boolean;
1419
+ propertyIsEnumerable(v: PropertyKey): boolean;
1420
+ }) & {
1421
+ isTree: boolean;
1422
+ isJava: boolean;
1423
+ }) & ObjectConstructor;
1424
+ export declare class Import extends Import_base implements Statement {
1425
+ constructor(id: UUID, prefix: Space, markers: Markers, _static: JLeftPadded<boolean>, qualid: FieldAccess, alias: JLeftPadded<Identifier> | null);
1426
+ private readonly _id;
1427
+ get id(): UUID;
1428
+ withId(id: UUID): Import;
1429
+ private readonly _prefix;
1430
+ get prefix(): Space;
1431
+ withPrefix(prefix: Space): Import;
1432
+ private readonly _markers;
1433
+ get markers(): Markers;
1434
+ withMarkers(markers: Markers): Import;
1435
+ private readonly _static;
1436
+ get static(): boolean;
1437
+ withStatic(_static: boolean): Import;
1438
+ private readonly _qualid;
1439
+ get qualid(): FieldAccess;
1440
+ withQualid(qualid: FieldAccess): Import;
1441
+ private readonly _alias;
1442
+ get alias(): Identifier | null;
1443
+ withAlias(alias: Identifier | null): Import;
1444
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1445
+ get padding(): {
1446
+ readonly static: JLeftPadded<boolean>;
1447
+ withStatic(_static: JLeftPadded<boolean>): Import;
1448
+ readonly alias: JLeftPadded<Identifier> | null;
1449
+ withAlias(alias: JLeftPadded<Identifier> | null): Import;
1450
+ };
1451
+ }
1452
+ declare const InstanceOf_base: ((abstract new (...args: any[]) => {
1453
+ readonly prefix: Space;
1454
+ withPrefix(prefix: Space): J;
1455
+ readonly id: Uint8Array;
1456
+ withId(id: UUID): J;
1457
+ readonly markers: Markers;
1458
+ withMarkers(markers: Markers): J;
1459
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1460
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1461
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1462
+ constructor: Function;
1463
+ toString(): string;
1464
+ toLocaleString(): string;
1465
+ valueOf(): Object;
1466
+ hasOwnProperty(v: PropertyKey): boolean;
1467
+ isPrototypeOf(v: Object): boolean;
1468
+ propertyIsEnumerable(v: PropertyKey): boolean;
1469
+ }) & {
1470
+ isTree: boolean;
1471
+ isJava: boolean;
1472
+ }) & ObjectConstructor;
1473
+ export declare class InstanceOf extends InstanceOf_base implements Expression, TypedTree {
1474
+ constructor(id: UUID, prefix: Space, markers: Markers, expression: JRightPadded<Expression>, clazz: J, pattern: J | null, _type: JavaType | null);
1475
+ private readonly _id;
1476
+ get id(): UUID;
1477
+ withId(id: UUID): InstanceOf;
1478
+ private readonly _prefix;
1479
+ get prefix(): Space;
1480
+ withPrefix(prefix: Space): InstanceOf;
1481
+ private readonly _markers;
1482
+ get markers(): Markers;
1483
+ withMarkers(markers: Markers): InstanceOf;
1484
+ private readonly _expression;
1485
+ get expression(): Expression;
1486
+ withExpression(expression: Expression): InstanceOf;
1487
+ private readonly _clazz;
1488
+ get clazz(): J;
1489
+ withClazz(clazz: J): InstanceOf;
1490
+ private readonly _pattern;
1491
+ get pattern(): J | null;
1492
+ withPattern(pattern: J | null): InstanceOf;
1493
+ private readonly _type;
1494
+ get type(): JavaType | null;
1495
+ withType(_type: JavaType | null): InstanceOf;
1496
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1497
+ get padding(): {
1498
+ readonly expression: JRightPadded<Expression>;
1499
+ withExpression(expression: JRightPadded<Expression>): InstanceOf;
1500
+ };
1501
+ }
1502
+ declare const IntersectionType_base: ((abstract new (...args: any[]) => {
1503
+ readonly prefix: Space;
1504
+ withPrefix(prefix: Space): J;
1505
+ readonly id: Uint8Array;
1506
+ withId(id: UUID): J;
1507
+ readonly markers: Markers;
1508
+ withMarkers(markers: Markers): J;
1509
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1510
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1511
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1512
+ constructor: Function;
1513
+ toString(): string;
1514
+ toLocaleString(): string;
1515
+ valueOf(): Object;
1516
+ hasOwnProperty(v: PropertyKey): boolean;
1517
+ isPrototypeOf(v: Object): boolean;
1518
+ propertyIsEnumerable(v: PropertyKey): boolean;
1519
+ }) & {
1520
+ isTree: boolean;
1521
+ isJava: boolean;
1522
+ }) & ObjectConstructor;
1523
+ export declare class IntersectionType extends IntersectionType_base implements TypeTree, Expression {
1524
+ constructor(id: UUID, prefix: Space, markers: Markers, bounds: JContainer<TypeTree>);
1525
+ private readonly _id;
1526
+ get id(): UUID;
1527
+ withId(id: UUID): IntersectionType;
1528
+ private readonly _prefix;
1529
+ get prefix(): Space;
1530
+ withPrefix(prefix: Space): IntersectionType;
1531
+ private readonly _markers;
1532
+ get markers(): Markers;
1533
+ withMarkers(markers: Markers): IntersectionType;
1534
+ private readonly _bounds;
1535
+ get bounds(): TypeTree[];
1536
+ withBounds(bounds: TypeTree[]): IntersectionType;
1537
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1538
+ get type(): JavaType | null;
1539
+ withType(type: JavaType): IntersectionType;
1540
+ get padding(): {
1541
+ readonly bounds: JContainer<TypeTree>;
1542
+ withBounds(bounds: JContainer<TypeTree>): IntersectionType;
1543
+ };
1544
+ }
1545
+ declare const Label_base: ((abstract new (...args: any[]) => {
1546
+ readonly prefix: Space;
1547
+ withPrefix(prefix: Space): J;
1548
+ readonly id: Uint8Array;
1549
+ withId(id: UUID): J;
1550
+ readonly markers: Markers;
1551
+ withMarkers(markers: Markers): J;
1552
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1553
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1554
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1555
+ constructor: Function;
1556
+ toString(): string;
1557
+ toLocaleString(): string;
1558
+ valueOf(): Object;
1559
+ hasOwnProperty(v: PropertyKey): boolean;
1560
+ isPrototypeOf(v: Object): boolean;
1561
+ propertyIsEnumerable(v: PropertyKey): boolean;
1562
+ }) & {
1563
+ isTree: boolean;
1564
+ isJava: boolean;
1565
+ }) & ObjectConstructor;
1566
+ export declare class Label extends Label_base implements Statement {
1567
+ constructor(id: UUID, prefix: Space, markers: Markers, label: JRightPadded<Identifier>, statement: Statement);
1568
+ private readonly _id;
1569
+ get id(): UUID;
1570
+ withId(id: UUID): Label;
1571
+ private readonly _prefix;
1572
+ get prefix(): Space;
1573
+ withPrefix(prefix: Space): Label;
1574
+ private readonly _markers;
1575
+ get markers(): Markers;
1576
+ withMarkers(markers: Markers): Label;
1577
+ private readonly _label;
1578
+ get label(): Identifier;
1579
+ withLabel(label: Identifier): Label;
1580
+ private readonly _statement;
1581
+ get statement(): Statement;
1582
+ withStatement(statement: Statement): Label;
1583
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1584
+ get padding(): {
1585
+ readonly label: JRightPadded<Identifier>;
1586
+ withLabel(label: JRightPadded<Identifier>): Label;
1587
+ };
1588
+ }
1589
+ declare const Lambda_base: ((abstract new (...args: any[]) => {
1590
+ readonly prefix: Space;
1591
+ withPrefix(prefix: Space): J;
1592
+ readonly id: Uint8Array;
1593
+ withId(id: UUID): J;
1594
+ readonly markers: Markers;
1595
+ withMarkers(markers: Markers): J;
1596
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1597
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1598
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1599
+ constructor: Function;
1600
+ toString(): string;
1601
+ toLocaleString(): string;
1602
+ valueOf(): Object;
1603
+ hasOwnProperty(v: PropertyKey): boolean;
1604
+ isPrototypeOf(v: Object): boolean;
1605
+ propertyIsEnumerable(v: PropertyKey): boolean;
1606
+ }) & {
1607
+ isTree: boolean;
1608
+ isJava: boolean;
1609
+ }) & ObjectConstructor;
1610
+ export declare class Lambda extends Lambda_base implements Statement, Expression, TypedTree {
1611
+ constructor(id: UUID, prefix: Space, markers: Markers, parameters: Lambda.Parameters, arrow: Space, body: J, _type: JavaType | null);
1612
+ private readonly _id;
1613
+ get id(): UUID;
1614
+ withId(id: UUID): Lambda;
1615
+ private readonly _prefix;
1616
+ get prefix(): Space;
1617
+ withPrefix(prefix: Space): Lambda;
1618
+ private readonly _markers;
1619
+ get markers(): Markers;
1620
+ withMarkers(markers: Markers): Lambda;
1621
+ private readonly _parameters;
1622
+ get parameters(): Lambda.Parameters;
1623
+ withParameters(parameters: Lambda.Parameters): Lambda;
1624
+ private readonly _arrow;
1625
+ get arrow(): Space;
1626
+ withArrow(arrow: Space): Lambda;
1627
+ private readonly _body;
1628
+ get body(): J;
1629
+ withBody(body: J): Lambda;
1630
+ private readonly _type;
1631
+ get type(): JavaType | null;
1632
+ withType(_type: JavaType | null): Lambda;
1633
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1634
+ }
1635
+ export declare namespace Lambda {
1636
+ const Parameters_base: ((abstract new (...args: any[]) => {
1637
+ readonly prefix: Space;
1638
+ withPrefix(prefix: Space): J;
1639
+ readonly id: Uint8Array;
1640
+ withId(id: UUID): J;
1641
+ readonly markers: Markers;
1642
+ withMarkers(markers: Markers): J;
1643
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1644
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1645
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1646
+ constructor: Function;
1647
+ toString(): string;
1648
+ toLocaleString(): string;
1649
+ valueOf(): Object;
1650
+ hasOwnProperty(v: PropertyKey): boolean;
1651
+ isPrototypeOf(v: Object): boolean;
1652
+ propertyIsEnumerable(v: PropertyKey): boolean;
1653
+ }) & {
1654
+ isTree: boolean;
1655
+ isJava: boolean;
1656
+ }) & ObjectConstructor;
1657
+ export class Parameters extends Parameters_base {
1658
+ constructor(id: UUID, prefix: Space, markers: Markers, parenthesized: boolean, parameters: JRightPadded<J>[]);
1659
+ private readonly _id;
1660
+ get id(): UUID;
1661
+ withId(id: UUID): Lambda.Parameters;
1662
+ private readonly _prefix;
1663
+ get prefix(): Space;
1664
+ withPrefix(prefix: Space): Lambda.Parameters;
1665
+ private readonly _markers;
1666
+ get markers(): Markers;
1667
+ withMarkers(markers: Markers): Lambda.Parameters;
1668
+ private readonly _parenthesized;
1669
+ get parenthesized(): boolean;
1670
+ withParenthesized(parenthesized: boolean): Lambda.Parameters;
1671
+ private readonly _parameters;
1672
+ get parameters(): J[];
1673
+ withParameters(parameters: J[]): Lambda.Parameters;
1674
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1675
+ get padding(): {
1676
+ readonly parameters: JRightPadded<J>[];
1677
+ withParameters(parameters: JRightPadded<J>[]): Lambda.Parameters;
1678
+ };
1679
+ }
1680
+ export {};
1681
+ }
1682
+ declare const Literal_base: ((abstract new (...args: any[]) => {
1683
+ readonly prefix: Space;
1684
+ withPrefix(prefix: Space): J;
1685
+ readonly id: Uint8Array;
1686
+ withId(id: UUID): J;
1687
+ readonly markers: Markers;
1688
+ withMarkers(markers: Markers): J;
1689
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1690
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1691
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1692
+ constructor: Function;
1693
+ toString(): string;
1694
+ toLocaleString(): string;
1695
+ valueOf(): Object;
1696
+ hasOwnProperty(v: PropertyKey): boolean;
1697
+ isPrototypeOf(v: Object): boolean;
1698
+ propertyIsEnumerable(v: PropertyKey): boolean;
1699
+ }) & {
1700
+ isTree: boolean;
1701
+ isJava: boolean;
1702
+ }) & ObjectConstructor;
1703
+ export declare class Literal extends Literal_base implements Expression, TypedTree {
1704
+ constructor(id: UUID, prefix: Space, markers: Markers, value: Object | null, valueSource: string | null, unicodeEscapes: Literal.UnicodeEscape[] | null, _type: JavaType.Primitive);
1705
+ private readonly _id;
1706
+ get id(): UUID;
1707
+ withId(id: UUID): Literal;
1708
+ private readonly _prefix;
1709
+ get prefix(): Space;
1710
+ withPrefix(prefix: Space): Literal;
1711
+ private readonly _markers;
1712
+ get markers(): Markers;
1713
+ withMarkers(markers: Markers): Literal;
1714
+ private readonly _value;
1715
+ get value(): Object | null;
1716
+ withValue(value: Object | null): Literal;
1717
+ private readonly _valueSource;
1718
+ get valueSource(): string | null;
1719
+ withValueSource(valueSource: string | null): Literal;
1720
+ private readonly _unicodeEscapes;
1721
+ get unicodeEscapes(): Literal.UnicodeEscape[] | null;
1722
+ withUnicodeEscapes(unicodeEscapes: Literal.UnicodeEscape[] | null): Literal;
1723
+ private readonly _type;
1724
+ get type(): JavaType.Primitive;
1725
+ withType(_type: JavaType.Primitive): Literal;
1726
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1727
+ }
1728
+ export declare namespace Literal {
1729
+ class UnicodeEscape {
1730
+ constructor(valueSourceIndex: number, codePoint: string);
1731
+ private readonly _valueSourceIndex;
1732
+ get valueSourceIndex(): number;
1733
+ withValueSourceIndex(valueSourceIndex: number): Literal.UnicodeEscape;
1734
+ private readonly _codePoint;
1735
+ get codePoint(): string;
1736
+ withCodePoint(codePoint: string): Literal.UnicodeEscape;
1737
+ }
1738
+ }
1739
+ declare const MemberReference_base: ((abstract new (...args: any[]) => {
1740
+ readonly prefix: Space;
1741
+ withPrefix(prefix: Space): J;
1742
+ readonly id: Uint8Array;
1743
+ withId(id: UUID): J;
1744
+ readonly markers: Markers;
1745
+ withMarkers(markers: Markers): J;
1746
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1747
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1748
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1749
+ constructor: Function;
1750
+ toString(): string;
1751
+ toLocaleString(): string;
1752
+ valueOf(): Object;
1753
+ hasOwnProperty(v: PropertyKey): boolean;
1754
+ isPrototypeOf(v: Object): boolean;
1755
+ propertyIsEnumerable(v: PropertyKey): boolean;
1756
+ }) & {
1757
+ isTree: boolean;
1758
+ isJava: boolean;
1759
+ }) & ObjectConstructor;
1760
+ export declare class MemberReference extends MemberReference_base implements TypedTree, MethodCall {
1761
+ constructor(id: UUID, prefix: Space, markers: Markers, containing: JRightPadded<Expression>, typeParameters: JContainer<Expression> | null, reference: JLeftPadded<Identifier>, _type: JavaType | null, methodType: JavaType.Method | null, variableType: JavaType.Variable | null);
1762
+ private readonly _id;
1763
+ get id(): UUID;
1764
+ withId(id: UUID): MemberReference;
1765
+ private readonly _prefix;
1766
+ get prefix(): Space;
1767
+ withPrefix(prefix: Space): MemberReference;
1768
+ private readonly _markers;
1769
+ get markers(): Markers;
1770
+ withMarkers(markers: Markers): MemberReference;
1771
+ private readonly _containing;
1772
+ get containing(): Expression;
1773
+ withContaining(containing: Expression): MemberReference;
1774
+ private readonly _typeParameters;
1775
+ get typeParameters(): Expression[] | null;
1776
+ withTypeParameters(typeParameters: Expression[] | null): MemberReference;
1777
+ private readonly _reference;
1778
+ get reference(): Identifier;
1779
+ withReference(reference: Identifier): MemberReference;
1780
+ private readonly _type;
1781
+ get type(): JavaType | null;
1782
+ withType(_type: JavaType | null): MemberReference;
1783
+ private readonly _methodType;
1784
+ get methodType(): JavaType.Method | null;
1785
+ withMethodType(methodType: JavaType.Method | null): MemberReference;
1786
+ private readonly _variableType;
1787
+ get variableType(): JavaType.Variable | null;
1788
+ withVariableType(variableType: JavaType.Variable | null): MemberReference;
1789
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1790
+ get padding(): {
1791
+ readonly containing: JRightPadded<Expression>;
1792
+ withContaining(containing: JRightPadded<Expression>): MemberReference;
1793
+ readonly typeParameters: JContainer<Expression> | null;
1794
+ withTypeParameters(typeParameters: JContainer<Expression> | null): MemberReference;
1795
+ readonly reference: JLeftPadded<Identifier>;
1796
+ withReference(reference: JLeftPadded<Identifier>): MemberReference;
1797
+ };
1798
+ }
1799
+ declare const MethodDeclaration_base: ((abstract new (...args: any[]) => {
1800
+ readonly prefix: Space;
1801
+ withPrefix(prefix: Space): J;
1802
+ readonly id: Uint8Array;
1803
+ withId(id: UUID): J;
1804
+ readonly markers: Markers;
1805
+ withMarkers(markers: Markers): J;
1806
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1807
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1808
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1809
+ constructor: Function;
1810
+ toString(): string;
1811
+ toLocaleString(): string;
1812
+ valueOf(): Object;
1813
+ hasOwnProperty(v: PropertyKey): boolean;
1814
+ isPrototypeOf(v: Object): boolean;
1815
+ propertyIsEnumerable(v: PropertyKey): boolean;
1816
+ }) & {
1817
+ isTree: boolean;
1818
+ isJava: boolean;
1819
+ }) & ObjectConstructor;
1820
+ export declare class MethodDeclaration extends MethodDeclaration_base implements Statement, TypedTree {
1821
+ constructor(id: UUID, prefix: Space, markers: Markers, leadingAnnotations: Annotation[], modifiers: Modifier[], typeParameters: TypeParameters | null, returnTypeExpression: TypeTree | null, name: MethodDeclaration.IdentifierWithAnnotations, parameters: JContainer<Statement>, throws: JContainer<NameTree> | null, body: Block | null, defaultValue: JLeftPadded<Expression> | null, methodType: JavaType.Method | null);
1822
+ private readonly _id;
1823
+ get id(): UUID;
1824
+ withId(id: UUID): MethodDeclaration;
1825
+ private readonly _prefix;
1826
+ get prefix(): Space;
1827
+ withPrefix(prefix: Space): MethodDeclaration;
1828
+ private readonly _markers;
1829
+ get markers(): Markers;
1830
+ withMarkers(markers: Markers): MethodDeclaration;
1831
+ private readonly _leadingAnnotations;
1832
+ get leadingAnnotations(): Annotation[];
1833
+ withLeadingAnnotations(leadingAnnotations: Annotation[]): MethodDeclaration;
1834
+ private readonly _modifiers;
1835
+ get modifiers(): Modifier[];
1836
+ withModifiers(modifiers: Modifier[]): MethodDeclaration;
1837
+ private readonly _typeParameters;
1838
+ private readonly _returnTypeExpression;
1839
+ get returnTypeExpression(): TypeTree | null;
1840
+ withReturnTypeExpression(returnTypeExpression: TypeTree | null): MethodDeclaration;
1841
+ private readonly _name;
1842
+ private readonly _parameters;
1843
+ get parameters(): Statement[];
1844
+ withParameters(parameters: Statement[]): MethodDeclaration;
1845
+ private readonly _throws;
1846
+ get throws(): NameTree[] | null;
1847
+ withThrows(throws: NameTree[] | null): MethodDeclaration;
1848
+ private readonly _body;
1849
+ get body(): Block | null;
1850
+ withBody(body: Block | null): MethodDeclaration;
1851
+ private readonly _defaultValue;
1852
+ get defaultValue(): Expression | null;
1853
+ withDefaultValue(defaultValue: Expression | null): MethodDeclaration;
1854
+ private readonly _methodType;
1855
+ get methodType(): JavaType.Method | null;
1856
+ withMethodType(methodType: JavaType.Method | null): MethodDeclaration;
1857
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1858
+ get type(): JavaType | null;
1859
+ withType(type: JavaType): MethodDeclaration;
1860
+ get padding(): {
1861
+ readonly typeParameters: TypeParameters | null;
1862
+ withTypeParameters(typeParameters: TypeParameters | null): MethodDeclaration;
1863
+ readonly name: MethodDeclaration.IdentifierWithAnnotations;
1864
+ withName(name: MethodDeclaration.IdentifierWithAnnotations): MethodDeclaration;
1865
+ readonly parameters: JContainer<Statement>;
1866
+ withParameters(parameters: JContainer<Statement>): MethodDeclaration;
1867
+ readonly throws: JContainer<NameTree> | null;
1868
+ withThrows(throws: JContainer<NameTree> | null): MethodDeclaration;
1869
+ readonly defaultValue: JLeftPadded<Expression> | null;
1870
+ withDefaultValue(defaultValue: JLeftPadded<Expression> | null): MethodDeclaration;
1871
+ };
1872
+ get annotations(): {
1873
+ readonly typeParameters: TypeParameters | null;
1874
+ withTypeParameters(typeParameters: TypeParameters | null): MethodDeclaration;
1875
+ readonly name: MethodDeclaration.IdentifierWithAnnotations;
1876
+ withName(name: MethodDeclaration.IdentifierWithAnnotations): MethodDeclaration;
1877
+ readonly parameters: JContainer<Statement>;
1878
+ withParameters(parameters: JContainer<Statement>): MethodDeclaration;
1879
+ readonly throws: JContainer<NameTree> | null;
1880
+ withThrows(throws: JContainer<NameTree> | null): MethodDeclaration;
1881
+ readonly defaultValue: JLeftPadded<Expression> | null;
1882
+ withDefaultValue(defaultValue: JLeftPadded<Expression> | null): MethodDeclaration;
1883
+ };
1884
+ }
1885
+ export declare namespace MethodDeclaration {
1886
+ class IdentifierWithAnnotations {
1887
+ constructor(identifier: Identifier, annotations: Annotation[]);
1888
+ private readonly _identifier;
1889
+ get identifier(): Identifier;
1890
+ withIdentifier(identifier: Identifier): MethodDeclaration.IdentifierWithAnnotations;
1891
+ private readonly _annotations;
1892
+ get annotations(): Annotation[];
1893
+ withAnnotations(annotations: Annotation[]): MethodDeclaration.IdentifierWithAnnotations;
1894
+ }
1895
+ }
1896
+ declare const MethodInvocation_base: ((abstract new (...args: any[]) => {
1897
+ readonly prefix: Space;
1898
+ withPrefix(prefix: Space): J;
1899
+ readonly id: Uint8Array;
1900
+ withId(id: UUID): J;
1901
+ readonly markers: Markers;
1902
+ withMarkers(markers: Markers): J;
1903
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1904
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1905
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1906
+ constructor: Function;
1907
+ toString(): string;
1908
+ toLocaleString(): string;
1909
+ valueOf(): Object;
1910
+ hasOwnProperty(v: PropertyKey): boolean;
1911
+ isPrototypeOf(v: Object): boolean;
1912
+ propertyIsEnumerable(v: PropertyKey): boolean;
1913
+ }) & {
1914
+ isTree: boolean;
1915
+ isJava: boolean;
1916
+ }) & ObjectConstructor;
1917
+ export declare class MethodInvocation extends MethodInvocation_base implements Statement, TypedTree, MethodCall {
1918
+ constructor(id: UUID, prefix: Space, markers: Markers, select: JRightPadded<Expression> | null, typeParameters: JContainer<Expression> | null, name: Identifier, _arguments: JContainer<Expression>, methodType: JavaType.Method | null);
1919
+ private readonly _id;
1920
+ get id(): UUID;
1921
+ withId(id: UUID): MethodInvocation;
1922
+ private readonly _prefix;
1923
+ get prefix(): Space;
1924
+ withPrefix(prefix: Space): MethodInvocation;
1925
+ private readonly _markers;
1926
+ get markers(): Markers;
1927
+ withMarkers(markers: Markers): MethodInvocation;
1928
+ private readonly _select;
1929
+ get select(): Expression | null;
1930
+ withSelect(select: Expression | null): MethodInvocation;
1931
+ private readonly _typeParameters;
1932
+ get typeParameters(): Expression[] | null;
1933
+ withTypeParameters(typeParameters: Expression[] | null): MethodInvocation;
1934
+ private readonly _name;
1935
+ get name(): Identifier;
1936
+ withName(name: Identifier): MethodInvocation;
1937
+ private readonly _arguments;
1938
+ get arguments(): Expression[];
1939
+ withArguments(_arguments: Expression[]): MethodInvocation;
1940
+ private readonly _methodType;
1941
+ get methodType(): JavaType.Method | null;
1942
+ withMethodType(methodType: JavaType.Method | null): MethodInvocation;
1943
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1944
+ get type(): JavaType | null;
1945
+ withType(type: JavaType): MethodInvocation;
1946
+ get padding(): {
1947
+ readonly select: JRightPadded<Expression> | null;
1948
+ withSelect(select: JRightPadded<Expression> | null): MethodInvocation;
1949
+ readonly typeParameters: JContainer<Expression> | null;
1950
+ withTypeParameters(typeParameters: JContainer<Expression> | null): MethodInvocation;
1951
+ readonly arguments: JContainer<Expression>;
1952
+ withArguments(_arguments: JContainer<Expression>): MethodInvocation;
1953
+ };
1954
+ }
1955
+ declare const Modifier_base: ((abstract new (...args: any[]) => {
1956
+ readonly prefix: Space;
1957
+ withPrefix(prefix: Space): J;
1958
+ readonly id: Uint8Array;
1959
+ withId(id: UUID): J;
1960
+ readonly markers: Markers;
1961
+ withMarkers(markers: Markers): J;
1962
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1963
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1964
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1965
+ constructor: Function;
1966
+ toString(): string;
1967
+ toLocaleString(): string;
1968
+ valueOf(): Object;
1969
+ hasOwnProperty(v: PropertyKey): boolean;
1970
+ isPrototypeOf(v: Object): boolean;
1971
+ propertyIsEnumerable(v: PropertyKey): boolean;
1972
+ }) & {
1973
+ isTree: boolean;
1974
+ isJava: boolean;
1975
+ }) & ObjectConstructor;
1976
+ export declare class Modifier extends Modifier_base {
1977
+ constructor(id: UUID, prefix: Space, markers: Markers, keyword: string | null, _type: Modifier.Type, annotations: Annotation[]);
1978
+ private readonly _id;
1979
+ get id(): UUID;
1980
+ withId(id: UUID): Modifier;
1981
+ private readonly _prefix;
1982
+ get prefix(): Space;
1983
+ withPrefix(prefix: Space): Modifier;
1984
+ private readonly _markers;
1985
+ get markers(): Markers;
1986
+ withMarkers(markers: Markers): Modifier;
1987
+ private readonly _keyword;
1988
+ get keyword(): string | null;
1989
+ withKeyword(keyword: string | null): Modifier;
1990
+ private readonly _type;
1991
+ get type(): Modifier.Type;
1992
+ withType(_type: Modifier.Type): Modifier;
1993
+ private readonly _annotations;
1994
+ get annotations(): Annotation[];
1995
+ withAnnotations(annotations: Annotation[]): Modifier;
1996
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
1997
+ }
1998
+ export declare namespace Modifier {
1999
+ enum Type {
2000
+ Default = 0,
2001
+ Public = 1,
2002
+ Protected = 2,
2003
+ Private = 3,
2004
+ Abstract = 4,
2005
+ Static = 5,
2006
+ Final = 6,
2007
+ Sealed = 7,
2008
+ NonSealed = 8,
2009
+ Transient = 9,
2010
+ Volatile = 10,
2011
+ Synchronized = 11,
2012
+ Native = 12,
2013
+ Strictfp = 13,
2014
+ Async = 14,
2015
+ Reified = 15,
2016
+ Inline = 16,
2017
+ LanguageExtension = 17
2018
+ }
2019
+ }
2020
+ declare const MultiCatch_base: ((abstract new (...args: any[]) => {
2021
+ readonly prefix: Space;
2022
+ withPrefix(prefix: Space): J;
2023
+ readonly id: Uint8Array;
2024
+ withId(id: UUID): J;
2025
+ readonly markers: Markers;
2026
+ withMarkers(markers: Markers): J;
2027
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2028
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2029
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2030
+ constructor: Function;
2031
+ toString(): string;
2032
+ toLocaleString(): string;
2033
+ valueOf(): Object;
2034
+ hasOwnProperty(v: PropertyKey): boolean;
2035
+ isPrototypeOf(v: Object): boolean;
2036
+ propertyIsEnumerable(v: PropertyKey): boolean;
2037
+ }) & {
2038
+ isTree: boolean;
2039
+ isJava: boolean;
2040
+ }) & ObjectConstructor;
2041
+ export declare class MultiCatch extends MultiCatch_base implements TypeTree {
2042
+ constructor(id: UUID, prefix: Space, markers: Markers, alternatives: JRightPadded<NameTree>[]);
2043
+ private readonly _id;
2044
+ get id(): UUID;
2045
+ withId(id: UUID): MultiCatch;
2046
+ private readonly _prefix;
2047
+ get prefix(): Space;
2048
+ withPrefix(prefix: Space): MultiCatch;
2049
+ private readonly _markers;
2050
+ get markers(): Markers;
2051
+ withMarkers(markers: Markers): MultiCatch;
2052
+ private readonly _alternatives;
2053
+ get alternatives(): NameTree[];
2054
+ withAlternatives(alternatives: NameTree[]): MultiCatch;
2055
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2056
+ get type(): JavaType | null;
2057
+ withType(type: JavaType): MultiCatch;
2058
+ get padding(): {
2059
+ readonly alternatives: JRightPadded<NameTree>[];
2060
+ withAlternatives(alternatives: JRightPadded<NameTree>[]): MultiCatch;
2061
+ };
2062
+ }
2063
+ declare const NewArray_base: ((abstract new (...args: any[]) => {
2064
+ readonly prefix: Space;
2065
+ withPrefix(prefix: Space): J;
2066
+ readonly id: Uint8Array;
2067
+ withId(id: UUID): J;
2068
+ readonly markers: Markers;
2069
+ withMarkers(markers: Markers): J;
2070
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2071
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2072
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2073
+ constructor: Function;
2074
+ toString(): string;
2075
+ toLocaleString(): string;
2076
+ valueOf(): Object;
2077
+ hasOwnProperty(v: PropertyKey): boolean;
2078
+ isPrototypeOf(v: Object): boolean;
2079
+ propertyIsEnumerable(v: PropertyKey): boolean;
2080
+ }) & {
2081
+ isTree: boolean;
2082
+ isJava: boolean;
2083
+ }) & ObjectConstructor;
2084
+ export declare class NewArray extends NewArray_base implements Expression, TypedTree {
2085
+ constructor(id: UUID, prefix: Space, markers: Markers, typeExpression: TypeTree | null, dimensions: ArrayDimension[], initializer: JContainer<Expression> | null, _type: JavaType | null);
2086
+ private readonly _id;
2087
+ get id(): UUID;
2088
+ withId(id: UUID): NewArray;
2089
+ private readonly _prefix;
2090
+ get prefix(): Space;
2091
+ withPrefix(prefix: Space): NewArray;
2092
+ private readonly _markers;
2093
+ get markers(): Markers;
2094
+ withMarkers(markers: Markers): NewArray;
2095
+ private readonly _typeExpression;
2096
+ get typeExpression(): TypeTree | null;
2097
+ withTypeExpression(typeExpression: TypeTree | null): NewArray;
2098
+ private readonly _dimensions;
2099
+ get dimensions(): ArrayDimension[];
2100
+ withDimensions(dimensions: ArrayDimension[]): NewArray;
2101
+ private readonly _initializer;
2102
+ get initializer(): Expression[] | null;
2103
+ withInitializer(initializer: Expression[] | null): NewArray;
2104
+ private readonly _type;
2105
+ get type(): JavaType | null;
2106
+ withType(_type: JavaType | null): NewArray;
2107
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2108
+ get padding(): {
2109
+ readonly initializer: JContainer<Expression> | null;
2110
+ withInitializer(initializer: JContainer<Expression> | null): NewArray;
2111
+ };
2112
+ }
2113
+ declare const ArrayDimension_base: ((abstract new (...args: any[]) => {
2114
+ readonly prefix: Space;
2115
+ withPrefix(prefix: Space): J;
2116
+ readonly id: Uint8Array;
2117
+ withId(id: UUID): J;
2118
+ readonly markers: Markers;
2119
+ withMarkers(markers: Markers): J;
2120
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2121
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2122
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2123
+ constructor: Function;
2124
+ toString(): string;
2125
+ toLocaleString(): string;
2126
+ valueOf(): Object;
2127
+ hasOwnProperty(v: PropertyKey): boolean;
2128
+ isPrototypeOf(v: Object): boolean;
2129
+ propertyIsEnumerable(v: PropertyKey): boolean;
2130
+ }) & {
2131
+ isTree: boolean;
2132
+ isJava: boolean;
2133
+ }) & ObjectConstructor;
2134
+ export declare class ArrayDimension extends ArrayDimension_base {
2135
+ constructor(id: UUID, prefix: Space, markers: Markers, index: JRightPadded<Expression>);
2136
+ private readonly _id;
2137
+ get id(): UUID;
2138
+ withId(id: UUID): ArrayDimension;
2139
+ private readonly _prefix;
2140
+ get prefix(): Space;
2141
+ withPrefix(prefix: Space): ArrayDimension;
2142
+ private readonly _markers;
2143
+ get markers(): Markers;
2144
+ withMarkers(markers: Markers): ArrayDimension;
2145
+ private readonly _index;
2146
+ get index(): Expression;
2147
+ withIndex(index: Expression): ArrayDimension;
2148
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2149
+ get padding(): {
2150
+ readonly index: JRightPadded<Expression>;
2151
+ withIndex(index: JRightPadded<Expression>): ArrayDimension;
2152
+ };
2153
+ }
2154
+ declare const NewClass_base: ((abstract new (...args: any[]) => {
2155
+ readonly prefix: Space;
2156
+ withPrefix(prefix: Space): J;
2157
+ readonly id: Uint8Array;
2158
+ withId(id: UUID): J;
2159
+ readonly markers: Markers;
2160
+ withMarkers(markers: Markers): J;
2161
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2162
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2163
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2164
+ constructor: Function;
2165
+ toString(): string;
2166
+ toLocaleString(): string;
2167
+ valueOf(): Object;
2168
+ hasOwnProperty(v: PropertyKey): boolean;
2169
+ isPrototypeOf(v: Object): boolean;
2170
+ propertyIsEnumerable(v: PropertyKey): boolean;
2171
+ }) & {
2172
+ isTree: boolean;
2173
+ isJava: boolean;
2174
+ }) & ObjectConstructor;
2175
+ export declare class NewClass extends NewClass_base implements Statement, TypedTree, MethodCall {
2176
+ constructor(id: UUID, prefix: Space, markers: Markers, enclosing: JRightPadded<Expression> | null, _new: Space, clazz: TypeTree | null, _arguments: JContainer<Expression>, body: Block | null, constructorType: JavaType.Method | null);
2177
+ private readonly _id;
2178
+ get id(): UUID;
2179
+ withId(id: UUID): NewClass;
2180
+ private readonly _prefix;
2181
+ get prefix(): Space;
2182
+ withPrefix(prefix: Space): NewClass;
2183
+ private readonly _markers;
2184
+ get markers(): Markers;
2185
+ withMarkers(markers: Markers): NewClass;
2186
+ private readonly _enclosing;
2187
+ get enclosing(): Expression | null;
2188
+ withEnclosing(enclosing: Expression | null): NewClass;
2189
+ private readonly _new;
2190
+ get new(): Space;
2191
+ withNew(_new: Space): NewClass;
2192
+ private readonly _clazz;
2193
+ get clazz(): TypeTree | null;
2194
+ withClazz(clazz: TypeTree | null): NewClass;
2195
+ private readonly _arguments;
2196
+ get arguments(): Expression[];
2197
+ withArguments(_arguments: Expression[]): NewClass;
2198
+ private readonly _body;
2199
+ get body(): Block | null;
2200
+ withBody(body: Block | null): NewClass;
2201
+ private readonly _constructorType;
2202
+ get constructorType(): JavaType.Method | null;
2203
+ withConstructorType(constructorType: JavaType.Method | null): NewClass;
2204
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2205
+ get type(): JavaType | null;
2206
+ withType(type: JavaType): NewClass;
2207
+ get padding(): {
2208
+ readonly enclosing: JRightPadded<Expression> | null;
2209
+ withEnclosing(enclosing: JRightPadded<Expression> | null): NewClass;
2210
+ readonly arguments: JContainer<Expression>;
2211
+ withArguments(_arguments: JContainer<Expression>): NewClass;
2212
+ };
2213
+ }
2214
+ declare const NullableType_base: ((abstract new (...args: any[]) => {
2215
+ readonly prefix: Space;
2216
+ withPrefix(prefix: Space): J;
2217
+ readonly id: Uint8Array;
2218
+ withId(id: UUID): J;
2219
+ readonly markers: Markers;
2220
+ withMarkers(markers: Markers): J;
2221
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2222
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2223
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2224
+ constructor: Function;
2225
+ toString(): string;
2226
+ toLocaleString(): string;
2227
+ valueOf(): Object;
2228
+ hasOwnProperty(v: PropertyKey): boolean;
2229
+ isPrototypeOf(v: Object): boolean;
2230
+ propertyIsEnumerable(v: PropertyKey): boolean;
2231
+ }) & {
2232
+ isTree: boolean;
2233
+ isJava: boolean;
2234
+ }) & ObjectConstructor;
2235
+ export declare class NullableType extends NullableType_base implements TypeTree, Expression {
2236
+ constructor(id: UUID, prefix: Space, markers: Markers, annotations: Annotation[], typeTree: JRightPadded<TypeTree>);
2237
+ private readonly _id;
2238
+ get id(): UUID;
2239
+ withId(id: UUID): NullableType;
2240
+ private readonly _prefix;
2241
+ get prefix(): Space;
2242
+ withPrefix(prefix: Space): NullableType;
2243
+ private readonly _markers;
2244
+ get markers(): Markers;
2245
+ withMarkers(markers: Markers): NullableType;
2246
+ private readonly _annotations;
2247
+ get annotations(): Annotation[];
2248
+ withAnnotations(annotations: Annotation[]): NullableType;
2249
+ private readonly _typeTree;
2250
+ get typeTree(): TypeTree;
2251
+ withTypeTree(typeTree: TypeTree): NullableType;
2252
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2253
+ get type(): JavaType | null;
2254
+ withType(type: JavaType): NullableType;
2255
+ get padding(): {
2256
+ readonly typeTree: JRightPadded<TypeTree>;
2257
+ withTypeTree(typeTree: JRightPadded<TypeTree>): NullableType;
2258
+ };
2259
+ }
2260
+ declare const Package_base: ((abstract new (...args: any[]) => {
2261
+ readonly prefix: Space;
2262
+ withPrefix(prefix: Space): J;
2263
+ readonly id: Uint8Array;
2264
+ withId(id: UUID): J;
2265
+ readonly markers: Markers;
2266
+ withMarkers(markers: Markers): J;
2267
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2268
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2269
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2270
+ constructor: Function;
2271
+ toString(): string;
2272
+ toLocaleString(): string;
2273
+ valueOf(): Object;
2274
+ hasOwnProperty(v: PropertyKey): boolean;
2275
+ isPrototypeOf(v: Object): boolean;
2276
+ propertyIsEnumerable(v: PropertyKey): boolean;
2277
+ }) & {
2278
+ isTree: boolean;
2279
+ isJava: boolean;
2280
+ }) & ObjectConstructor;
2281
+ export declare class Package extends Package_base implements Statement {
2282
+ constructor(id: UUID, prefix: Space, markers: Markers, expression: Expression, annotations: Annotation[]);
2283
+ private readonly _id;
2284
+ get id(): UUID;
2285
+ withId(id: UUID): Package;
2286
+ private readonly _prefix;
2287
+ get prefix(): Space;
2288
+ withPrefix(prefix: Space): Package;
2289
+ private readonly _markers;
2290
+ get markers(): Markers;
2291
+ withMarkers(markers: Markers): Package;
2292
+ private readonly _expression;
2293
+ get expression(): Expression;
2294
+ withExpression(expression: Expression): Package;
2295
+ private readonly _annotations;
2296
+ get annotations(): Annotation[];
2297
+ withAnnotations(annotations: Annotation[]): Package;
2298
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2299
+ }
2300
+ declare const ParameterizedType_base: ((abstract new (...args: any[]) => {
2301
+ readonly prefix: Space;
2302
+ withPrefix(prefix: Space): J;
2303
+ readonly id: Uint8Array;
2304
+ withId(id: UUID): J;
2305
+ readonly markers: Markers;
2306
+ withMarkers(markers: Markers): J;
2307
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2308
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2309
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2310
+ constructor: Function;
2311
+ toString(): string;
2312
+ toLocaleString(): string;
2313
+ valueOf(): Object;
2314
+ hasOwnProperty(v: PropertyKey): boolean;
2315
+ isPrototypeOf(v: Object): boolean;
2316
+ propertyIsEnumerable(v: PropertyKey): boolean;
2317
+ }) & {
2318
+ isTree: boolean;
2319
+ isJava: boolean;
2320
+ }) & ObjectConstructor;
2321
+ export declare class ParameterizedType extends ParameterizedType_base implements TypeTree, Expression {
2322
+ constructor(id: UUID, prefix: Space, markers: Markers, clazz: NameTree, typeParameters: JContainer<Expression> | null, _type: JavaType | null);
2323
+ private readonly _id;
2324
+ get id(): UUID;
2325
+ withId(id: UUID): ParameterizedType;
2326
+ private readonly _prefix;
2327
+ get prefix(): Space;
2328
+ withPrefix(prefix: Space): ParameterizedType;
2329
+ private readonly _markers;
2330
+ get markers(): Markers;
2331
+ withMarkers(markers: Markers): ParameterizedType;
2332
+ private readonly _clazz;
2333
+ get clazz(): NameTree;
2334
+ withClazz(clazz: NameTree): ParameterizedType;
2335
+ private readonly _typeParameters;
2336
+ get typeParameters(): Expression[] | null;
2337
+ withTypeParameters(typeParameters: Expression[] | null): ParameterizedType;
2338
+ private readonly _type;
2339
+ get type(): JavaType | null;
2340
+ withType(_type: JavaType | null): ParameterizedType;
2341
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2342
+ get padding(): {
2343
+ readonly typeParameters: JContainer<Expression> | null;
2344
+ withTypeParameters(typeParameters: JContainer<Expression> | null): ParameterizedType;
2345
+ };
2346
+ }
2347
+ declare const Parentheses_base: ((abstract new (...args: any[]) => {
2348
+ readonly prefix: Space;
2349
+ withPrefix(prefix: Space): J;
2350
+ readonly id: Uint8Array;
2351
+ withId(id: UUID): J;
2352
+ readonly markers: Markers;
2353
+ withMarkers(markers: Markers): J;
2354
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2355
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2356
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2357
+ constructor: Function;
2358
+ toString(): string;
2359
+ toLocaleString(): string;
2360
+ valueOf(): Object;
2361
+ hasOwnProperty(v: PropertyKey): boolean;
2362
+ isPrototypeOf(v: Object): boolean;
2363
+ propertyIsEnumerable(v: PropertyKey): boolean;
2364
+ }) & {
2365
+ isTree: boolean;
2366
+ isJava: boolean;
2367
+ }) & ObjectConstructor;
2368
+ export declare class Parentheses<J2 extends J> extends Parentheses_base implements Expression {
2369
+ constructor(id: UUID, prefix: Space, markers: Markers, tree: JRightPadded<J2>);
2370
+ private readonly _id;
2371
+ get id(): UUID;
2372
+ withId(id: UUID): Parentheses<J2>;
2373
+ private readonly _prefix;
2374
+ get prefix(): Space;
2375
+ withPrefix(prefix: Space): Parentheses<J2>;
2376
+ private readonly _markers;
2377
+ get markers(): Markers;
2378
+ withMarkers(markers: Markers): Parentheses<J2>;
2379
+ private readonly _tree;
2380
+ get tree(): J2;
2381
+ withTree(tree: J2): Parentheses<J2>;
2382
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2383
+ get type(): JavaType | null;
2384
+ withType(type: JavaType): Parentheses<J2>;
2385
+ get padding(): {
2386
+ readonly tree: JRightPadded<J2>;
2387
+ withTree(tree: JRightPadded<J2>): Parentheses<J2>;
2388
+ };
2389
+ }
2390
+ declare const ControlParentheses_base: ((abstract new (...args: any[]) => {
2391
+ readonly prefix: Space;
2392
+ withPrefix(prefix: Space): J;
2393
+ readonly id: Uint8Array;
2394
+ withId(id: UUID): J;
2395
+ readonly markers: Markers;
2396
+ withMarkers(markers: Markers): J;
2397
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2398
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2399
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2400
+ constructor: Function;
2401
+ toString(): string;
2402
+ toLocaleString(): string;
2403
+ valueOf(): Object;
2404
+ hasOwnProperty(v: PropertyKey): boolean;
2405
+ isPrototypeOf(v: Object): boolean;
2406
+ propertyIsEnumerable(v: PropertyKey): boolean;
2407
+ }) & {
2408
+ isTree: boolean;
2409
+ isJava: boolean;
2410
+ }) & ObjectConstructor;
2411
+ export declare class ControlParentheses<J2 extends J> extends ControlParentheses_base implements Expression {
2412
+ constructor(id: UUID, prefix: Space, markers: Markers, tree: JRightPadded<J2>);
2413
+ private readonly _id;
2414
+ get id(): UUID;
2415
+ withId(id: UUID): ControlParentheses<J2>;
2416
+ private readonly _prefix;
2417
+ get prefix(): Space;
2418
+ withPrefix(prefix: Space): ControlParentheses<J2>;
2419
+ private readonly _markers;
2420
+ get markers(): Markers;
2421
+ withMarkers(markers: Markers): ControlParentheses<J2>;
2422
+ private readonly _tree;
2423
+ get tree(): J2;
2424
+ withTree(tree: J2): ControlParentheses<J2>;
2425
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2426
+ get type(): JavaType | null;
2427
+ withType(type: JavaType): ControlParentheses<J2>;
2428
+ get padding(): {
2429
+ readonly tree: JRightPadded<J2>;
2430
+ withTree(tree: JRightPadded<J2>): ControlParentheses<J2>;
2431
+ };
2432
+ }
2433
+ declare const Primitive_base: ((abstract new (...args: any[]) => {
2434
+ readonly prefix: Space;
2435
+ withPrefix(prefix: Space): J;
2436
+ readonly id: Uint8Array;
2437
+ withId(id: UUID): J;
2438
+ readonly markers: Markers;
2439
+ withMarkers(markers: Markers): J;
2440
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2441
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2442
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2443
+ constructor: Function;
2444
+ toString(): string;
2445
+ toLocaleString(): string;
2446
+ valueOf(): Object;
2447
+ hasOwnProperty(v: PropertyKey): boolean;
2448
+ isPrototypeOf(v: Object): boolean;
2449
+ propertyIsEnumerable(v: PropertyKey): boolean;
2450
+ }) & {
2451
+ isTree: boolean;
2452
+ isJava: boolean;
2453
+ }) & ObjectConstructor;
2454
+ export declare class Primitive extends Primitive_base implements TypeTree, Expression {
2455
+ constructor(id: UUID, prefix: Space, markers: Markers, _type: JavaType.Primitive);
2456
+ private readonly _id;
2457
+ get id(): UUID;
2458
+ withId(id: UUID): Primitive;
2459
+ private readonly _prefix;
2460
+ get prefix(): Space;
2461
+ withPrefix(prefix: Space): Primitive;
2462
+ private readonly _markers;
2463
+ get markers(): Markers;
2464
+ withMarkers(markers: Markers): Primitive;
2465
+ private readonly _type;
2466
+ get type(): JavaType.Primitive;
2467
+ withType(_type: JavaType.Primitive): Primitive;
2468
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2469
+ }
2470
+ declare const Return_base: ((abstract new (...args: any[]) => {
2471
+ readonly prefix: Space;
2472
+ withPrefix(prefix: Space): J;
2473
+ readonly id: Uint8Array;
2474
+ withId(id: UUID): J;
2475
+ readonly markers: Markers;
2476
+ withMarkers(markers: Markers): J;
2477
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2478
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2479
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2480
+ constructor: Function;
2481
+ toString(): string;
2482
+ toLocaleString(): string;
2483
+ valueOf(): Object;
2484
+ hasOwnProperty(v: PropertyKey): boolean;
2485
+ isPrototypeOf(v: Object): boolean;
2486
+ propertyIsEnumerable(v: PropertyKey): boolean;
2487
+ }) & {
2488
+ isTree: boolean;
2489
+ isJava: boolean;
2490
+ }) & ObjectConstructor;
2491
+ export declare class Return extends Return_base implements Statement {
2492
+ constructor(id: UUID, prefix: Space, markers: Markers, expression: Expression | null);
2493
+ private readonly _id;
2494
+ get id(): UUID;
2495
+ withId(id: UUID): Return;
2496
+ private readonly _prefix;
2497
+ get prefix(): Space;
2498
+ withPrefix(prefix: Space): Return;
2499
+ private readonly _markers;
2500
+ get markers(): Markers;
2501
+ withMarkers(markers: Markers): Return;
2502
+ private readonly _expression;
2503
+ get expression(): Expression | null;
2504
+ withExpression(expression: Expression | null): Return;
2505
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2506
+ }
2507
+ declare const Switch_base: ((abstract new (...args: any[]) => {
2508
+ readonly prefix: Space;
2509
+ withPrefix(prefix: Space): J;
2510
+ readonly id: Uint8Array;
2511
+ withId(id: UUID): J;
2512
+ readonly markers: Markers;
2513
+ withMarkers(markers: Markers): J;
2514
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2515
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2516
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2517
+ constructor: Function;
2518
+ toString(): string;
2519
+ toLocaleString(): string;
2520
+ valueOf(): Object;
2521
+ hasOwnProperty(v: PropertyKey): boolean;
2522
+ isPrototypeOf(v: Object): boolean;
2523
+ propertyIsEnumerable(v: PropertyKey): boolean;
2524
+ }) & {
2525
+ isTree: boolean;
2526
+ isJava: boolean;
2527
+ }) & ObjectConstructor;
2528
+ export declare class Switch extends Switch_base implements Statement {
2529
+ constructor(id: UUID, prefix: Space, markers: Markers, selector: ControlParentheses<Expression>, cases: Block);
2530
+ private readonly _id;
2531
+ get id(): UUID;
2532
+ withId(id: UUID): Switch;
2533
+ private readonly _prefix;
2534
+ get prefix(): Space;
2535
+ withPrefix(prefix: Space): Switch;
2536
+ private readonly _markers;
2537
+ get markers(): Markers;
2538
+ withMarkers(markers: Markers): Switch;
2539
+ private readonly _selector;
2540
+ get selector(): ControlParentheses<Expression>;
2541
+ withSelector(selector: ControlParentheses<Expression>): Switch;
2542
+ private readonly _cases;
2543
+ get cases(): Block;
2544
+ withCases(cases: Block): Switch;
2545
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2546
+ }
2547
+ declare const SwitchExpression_base: ((abstract new (...args: any[]) => {
2548
+ readonly prefix: Space;
2549
+ withPrefix(prefix: Space): J;
2550
+ readonly id: Uint8Array;
2551
+ withId(id: UUID): J;
2552
+ readonly markers: Markers;
2553
+ withMarkers(markers: Markers): J;
2554
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2555
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2556
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2557
+ constructor: Function;
2558
+ toString(): string;
2559
+ toLocaleString(): string;
2560
+ valueOf(): Object;
2561
+ hasOwnProperty(v: PropertyKey): boolean;
2562
+ isPrototypeOf(v: Object): boolean;
2563
+ propertyIsEnumerable(v: PropertyKey): boolean;
2564
+ }) & {
2565
+ isTree: boolean;
2566
+ isJava: boolean;
2567
+ }) & ObjectConstructor;
2568
+ export declare class SwitchExpression extends SwitchExpression_base implements Expression, TypedTree {
2569
+ constructor(id: UUID, prefix: Space, markers: Markers, selector: ControlParentheses<Expression>, cases: Block);
2570
+ private readonly _id;
2571
+ get id(): UUID;
2572
+ withId(id: UUID): SwitchExpression;
2573
+ private readonly _prefix;
2574
+ get prefix(): Space;
2575
+ withPrefix(prefix: Space): SwitchExpression;
2576
+ private readonly _markers;
2577
+ get markers(): Markers;
2578
+ withMarkers(markers: Markers): SwitchExpression;
2579
+ private readonly _selector;
2580
+ get selector(): ControlParentheses<Expression>;
2581
+ withSelector(selector: ControlParentheses<Expression>): SwitchExpression;
2582
+ private readonly _cases;
2583
+ get cases(): Block;
2584
+ withCases(cases: Block): SwitchExpression;
2585
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2586
+ get type(): JavaType | null;
2587
+ withType(type: JavaType): SwitchExpression;
2588
+ }
2589
+ declare const Synchronized_base: ((abstract new (...args: any[]) => {
2590
+ readonly prefix: Space;
2591
+ withPrefix(prefix: Space): J;
2592
+ readonly id: Uint8Array;
2593
+ withId(id: UUID): J;
2594
+ readonly markers: Markers;
2595
+ withMarkers(markers: Markers): J;
2596
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2597
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2598
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2599
+ constructor: Function;
2600
+ toString(): string;
2601
+ toLocaleString(): string;
2602
+ valueOf(): Object;
2603
+ hasOwnProperty(v: PropertyKey): boolean;
2604
+ isPrototypeOf(v: Object): boolean;
2605
+ propertyIsEnumerable(v: PropertyKey): boolean;
2606
+ }) & {
2607
+ isTree: boolean;
2608
+ isJava: boolean;
2609
+ }) & ObjectConstructor;
2610
+ export declare class Synchronized extends Synchronized_base implements Statement {
2611
+ constructor(id: UUID, prefix: Space, markers: Markers, lock: ControlParentheses<Expression>, body: Block);
2612
+ private readonly _id;
2613
+ get id(): UUID;
2614
+ withId(id: UUID): Synchronized;
2615
+ private readonly _prefix;
2616
+ get prefix(): Space;
2617
+ withPrefix(prefix: Space): Synchronized;
2618
+ private readonly _markers;
2619
+ get markers(): Markers;
2620
+ withMarkers(markers: Markers): Synchronized;
2621
+ private readonly _lock;
2622
+ get lock(): ControlParentheses<Expression>;
2623
+ withLock(lock: ControlParentheses<Expression>): Synchronized;
2624
+ private readonly _body;
2625
+ get body(): Block;
2626
+ withBody(body: Block): Synchronized;
2627
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2628
+ }
2629
+ declare const Ternary_base: ((abstract new (...args: any[]) => {
2630
+ readonly prefix: Space;
2631
+ withPrefix(prefix: Space): J;
2632
+ readonly id: Uint8Array;
2633
+ withId(id: UUID): J;
2634
+ readonly markers: Markers;
2635
+ withMarkers(markers: Markers): J;
2636
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2637
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2638
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2639
+ constructor: Function;
2640
+ toString(): string;
2641
+ toLocaleString(): string;
2642
+ valueOf(): Object;
2643
+ hasOwnProperty(v: PropertyKey): boolean;
2644
+ isPrototypeOf(v: Object): boolean;
2645
+ propertyIsEnumerable(v: PropertyKey): boolean;
2646
+ }) & {
2647
+ isTree: boolean;
2648
+ isJava: boolean;
2649
+ }) & ObjectConstructor;
2650
+ export declare class Ternary extends Ternary_base implements Expression, Statement, TypedTree {
2651
+ constructor(id: UUID, prefix: Space, markers: Markers, condition: Expression, truePart: JLeftPadded<Expression>, falsePart: JLeftPadded<Expression>, _type: JavaType | null);
2652
+ private readonly _id;
2653
+ get id(): UUID;
2654
+ withId(id: UUID): Ternary;
2655
+ private readonly _prefix;
2656
+ get prefix(): Space;
2657
+ withPrefix(prefix: Space): Ternary;
2658
+ private readonly _markers;
2659
+ get markers(): Markers;
2660
+ withMarkers(markers: Markers): Ternary;
2661
+ private readonly _condition;
2662
+ get condition(): Expression;
2663
+ withCondition(condition: Expression): Ternary;
2664
+ private readonly _truePart;
2665
+ get truePart(): Expression;
2666
+ withTruePart(truePart: Expression): Ternary;
2667
+ private readonly _falsePart;
2668
+ get falsePart(): Expression;
2669
+ withFalsePart(falsePart: Expression): Ternary;
2670
+ private readonly _type;
2671
+ get type(): JavaType | null;
2672
+ withType(_type: JavaType | null): Ternary;
2673
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2674
+ get padding(): {
2675
+ readonly truePart: JLeftPadded<Expression>;
2676
+ withTruePart(truePart: JLeftPadded<Expression>): Ternary;
2677
+ readonly falsePart: JLeftPadded<Expression>;
2678
+ withFalsePart(falsePart: JLeftPadded<Expression>): Ternary;
2679
+ };
2680
+ }
2681
+ declare const Throw_base: ((abstract new (...args: any[]) => {
2682
+ readonly prefix: Space;
2683
+ withPrefix(prefix: Space): J;
2684
+ readonly id: Uint8Array;
2685
+ withId(id: UUID): J;
2686
+ readonly markers: Markers;
2687
+ withMarkers(markers: Markers): J;
2688
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2689
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2690
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2691
+ constructor: Function;
2692
+ toString(): string;
2693
+ toLocaleString(): string;
2694
+ valueOf(): Object;
2695
+ hasOwnProperty(v: PropertyKey): boolean;
2696
+ isPrototypeOf(v: Object): boolean;
2697
+ propertyIsEnumerable(v: PropertyKey): boolean;
2698
+ }) & {
2699
+ isTree: boolean;
2700
+ isJava: boolean;
2701
+ }) & ObjectConstructor;
2702
+ export declare class Throw extends Throw_base implements Statement {
2703
+ constructor(id: UUID, prefix: Space, markers: Markers, exception: Expression);
2704
+ private readonly _id;
2705
+ get id(): UUID;
2706
+ withId(id: UUID): Throw;
2707
+ private readonly _prefix;
2708
+ get prefix(): Space;
2709
+ withPrefix(prefix: Space): Throw;
2710
+ private readonly _markers;
2711
+ get markers(): Markers;
2712
+ withMarkers(markers: Markers): Throw;
2713
+ private readonly _exception;
2714
+ get exception(): Expression;
2715
+ withException(exception: Expression): Throw;
2716
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2717
+ }
2718
+ declare const Try_base: ((abstract new (...args: any[]) => {
2719
+ readonly prefix: Space;
2720
+ withPrefix(prefix: Space): J;
2721
+ readonly id: Uint8Array;
2722
+ withId(id: UUID): J;
2723
+ readonly markers: Markers;
2724
+ withMarkers(markers: Markers): J;
2725
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2726
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2727
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2728
+ constructor: Function;
2729
+ toString(): string;
2730
+ toLocaleString(): string;
2731
+ valueOf(): Object;
2732
+ hasOwnProperty(v: PropertyKey): boolean;
2733
+ isPrototypeOf(v: Object): boolean;
2734
+ propertyIsEnumerable(v: PropertyKey): boolean;
2735
+ }) & {
2736
+ isTree: boolean;
2737
+ isJava: boolean;
2738
+ }) & ObjectConstructor;
2739
+ export declare class Try extends Try_base implements Statement {
2740
+ constructor(id: UUID, prefix: Space, markers: Markers, resources: JContainer<Try.Resource> | null, body: Block, catches: Try.Catch[], _finally: JLeftPadded<Block> | null);
2741
+ private readonly _id;
2742
+ get id(): UUID;
2743
+ withId(id: UUID): Try;
2744
+ private readonly _prefix;
2745
+ get prefix(): Space;
2746
+ withPrefix(prefix: Space): Try;
2747
+ private readonly _markers;
2748
+ get markers(): Markers;
2749
+ withMarkers(markers: Markers): Try;
2750
+ private readonly _resources;
2751
+ get resources(): Try.Resource[] | null;
2752
+ withResources(resources: Try.Resource[] | null): Try;
2753
+ private readonly _body;
2754
+ get body(): Block;
2755
+ withBody(body: Block): Try;
2756
+ private readonly _catches;
2757
+ get catches(): Try.Catch[];
2758
+ withCatches(catches: Try.Catch[]): Try;
2759
+ private readonly _finally;
2760
+ get finally(): Block | null;
2761
+ withFinally(_finally: Block | null): Try;
2762
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2763
+ get padding(): {
2764
+ readonly resources: JContainer<Try.Resource> | null;
2765
+ withResources(resources: JContainer<Try.Resource> | null): Try;
2766
+ readonly finally: JLeftPadded<Block> | null;
2767
+ withFinally(_finally: JLeftPadded<Block> | null): Try;
2768
+ };
2769
+ }
2770
+ export declare namespace Try {
2771
+ const Resource_base: ((abstract new (...args: any[]) => {
2772
+ readonly prefix: Space;
2773
+ withPrefix(prefix: Space): J;
2774
+ readonly id: Uint8Array;
2775
+ withId(id: UUID): J;
2776
+ readonly markers: Markers;
2777
+ withMarkers(markers: Markers): J;
2778
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2779
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2780
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2781
+ constructor: Function;
2782
+ toString(): string;
2783
+ toLocaleString(): string;
2784
+ valueOf(): Object;
2785
+ hasOwnProperty(v: PropertyKey): boolean;
2786
+ isPrototypeOf(v: Object): boolean;
2787
+ propertyIsEnumerable(v: PropertyKey): boolean;
2788
+ }) & {
2789
+ isTree: boolean;
2790
+ isJava: boolean;
2791
+ }) & ObjectConstructor;
2792
+ export class Resource extends Resource_base {
2793
+ constructor(id: UUID, prefix: Space, markers: Markers, variableDeclarations: TypedTree, terminatedWithSemicolon: boolean);
2794
+ private readonly _id;
2795
+ get id(): UUID;
2796
+ withId(id: UUID): Try.Resource;
2797
+ private readonly _prefix;
2798
+ get prefix(): Space;
2799
+ withPrefix(prefix: Space): Try.Resource;
2800
+ private readonly _markers;
2801
+ get markers(): Markers;
2802
+ withMarkers(markers: Markers): Try.Resource;
2803
+ private readonly _variableDeclarations;
2804
+ get variableDeclarations(): TypedTree;
2805
+ withVariableDeclarations(variableDeclarations: TypedTree): Try.Resource;
2806
+ private readonly _terminatedWithSemicolon;
2807
+ get terminatedWithSemicolon(): boolean;
2808
+ withTerminatedWithSemicolon(terminatedWithSemicolon: boolean): Try.Resource;
2809
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2810
+ }
2811
+ const Catch_base: ((abstract new (...args: any[]) => {
2812
+ readonly prefix: Space;
2813
+ withPrefix(prefix: Space): J;
2814
+ readonly id: Uint8Array;
2815
+ withId(id: UUID): J;
2816
+ readonly markers: Markers;
2817
+ withMarkers(markers: Markers): J;
2818
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2819
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2820
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2821
+ constructor: Function;
2822
+ toString(): string;
2823
+ toLocaleString(): string;
2824
+ valueOf(): Object;
2825
+ hasOwnProperty(v: PropertyKey): boolean;
2826
+ isPrototypeOf(v: Object): boolean;
2827
+ propertyIsEnumerable(v: PropertyKey): boolean;
2828
+ }) & {
2829
+ isTree: boolean;
2830
+ isJava: boolean;
2831
+ }) & ObjectConstructor;
2832
+ export class Catch extends Catch_base {
2833
+ constructor(id: UUID, prefix: Space, markers: Markers, parameter: ControlParentheses<VariableDeclarations>, body: Block);
2834
+ private readonly _id;
2835
+ get id(): UUID;
2836
+ withId(id: UUID): Try.Catch;
2837
+ private readonly _prefix;
2838
+ get prefix(): Space;
2839
+ withPrefix(prefix: Space): Try.Catch;
2840
+ private readonly _markers;
2841
+ get markers(): Markers;
2842
+ withMarkers(markers: Markers): Try.Catch;
2843
+ private readonly _parameter;
2844
+ get parameter(): ControlParentheses<VariableDeclarations>;
2845
+ withParameter(parameter: ControlParentheses<VariableDeclarations>): Try.Catch;
2846
+ private readonly _body;
2847
+ get body(): Block;
2848
+ withBody(body: Block): Try.Catch;
2849
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2850
+ }
2851
+ export {};
2852
+ }
2853
+ declare const TypeCast_base: ((abstract new (...args: any[]) => {
2854
+ readonly prefix: Space;
2855
+ withPrefix(prefix: Space): J;
2856
+ readonly id: Uint8Array;
2857
+ withId(id: UUID): J;
2858
+ readonly markers: Markers;
2859
+ withMarkers(markers: Markers): J;
2860
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2861
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2862
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2863
+ constructor: Function;
2864
+ toString(): string;
2865
+ toLocaleString(): string;
2866
+ valueOf(): Object;
2867
+ hasOwnProperty(v: PropertyKey): boolean;
2868
+ isPrototypeOf(v: Object): boolean;
2869
+ propertyIsEnumerable(v: PropertyKey): boolean;
2870
+ }) & {
2871
+ isTree: boolean;
2872
+ isJava: boolean;
2873
+ }) & ObjectConstructor;
2874
+ export declare class TypeCast extends TypeCast_base implements Expression, TypedTree {
2875
+ constructor(id: UUID, prefix: Space, markers: Markers, clazz: ControlParentheses<TypeTree>, expression: Expression);
2876
+ private readonly _id;
2877
+ get id(): UUID;
2878
+ withId(id: UUID): TypeCast;
2879
+ private readonly _prefix;
2880
+ get prefix(): Space;
2881
+ withPrefix(prefix: Space): TypeCast;
2882
+ private readonly _markers;
2883
+ get markers(): Markers;
2884
+ withMarkers(markers: Markers): TypeCast;
2885
+ private readonly _clazz;
2886
+ get clazz(): ControlParentheses<TypeTree>;
2887
+ withClazz(clazz: ControlParentheses<TypeTree>): TypeCast;
2888
+ private readonly _expression;
2889
+ get expression(): Expression;
2890
+ withExpression(expression: Expression): TypeCast;
2891
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2892
+ get type(): JavaType | null;
2893
+ withType(type: JavaType): TypeCast;
2894
+ }
2895
+ declare const TypeParameter_base: ((abstract new (...args: any[]) => {
2896
+ readonly prefix: Space;
2897
+ withPrefix(prefix: Space): J;
2898
+ readonly id: Uint8Array;
2899
+ withId(id: UUID): J;
2900
+ readonly markers: Markers;
2901
+ withMarkers(markers: Markers): J;
2902
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2903
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2904
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2905
+ constructor: Function;
2906
+ toString(): string;
2907
+ toLocaleString(): string;
2908
+ valueOf(): Object;
2909
+ hasOwnProperty(v: PropertyKey): boolean;
2910
+ isPrototypeOf(v: Object): boolean;
2911
+ propertyIsEnumerable(v: PropertyKey): boolean;
2912
+ }) & {
2913
+ isTree: boolean;
2914
+ isJava: boolean;
2915
+ }) & ObjectConstructor;
2916
+ export declare class TypeParameter extends TypeParameter_base {
2917
+ constructor(id: UUID, prefix: Space, markers: Markers, annotations: Annotation[], modifiers: Modifier[], name: Expression, bounds: JContainer<TypeTree> | null);
2918
+ private readonly _id;
2919
+ get id(): UUID;
2920
+ withId(id: UUID): TypeParameter;
2921
+ private readonly _prefix;
2922
+ get prefix(): Space;
2923
+ withPrefix(prefix: Space): TypeParameter;
2924
+ private readonly _markers;
2925
+ get markers(): Markers;
2926
+ withMarkers(markers: Markers): TypeParameter;
2927
+ private readonly _annotations;
2928
+ get annotations(): Annotation[];
2929
+ withAnnotations(annotations: Annotation[]): TypeParameter;
2930
+ private readonly _modifiers;
2931
+ get modifiers(): Modifier[];
2932
+ withModifiers(modifiers: Modifier[]): TypeParameter;
2933
+ private readonly _name;
2934
+ get name(): Expression;
2935
+ withName(name: Expression): TypeParameter;
2936
+ private readonly _bounds;
2937
+ get bounds(): TypeTree[] | null;
2938
+ withBounds(bounds: TypeTree[] | null): TypeParameter;
2939
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2940
+ get padding(): {
2941
+ readonly bounds: JContainer<TypeTree> | null;
2942
+ withBounds(bounds: JContainer<TypeTree> | null): TypeParameter;
2943
+ };
2944
+ }
2945
+ declare const TypeParameters_base: ((abstract new (...args: any[]) => {
2946
+ readonly prefix: Space;
2947
+ withPrefix(prefix: Space): J;
2948
+ readonly id: Uint8Array;
2949
+ withId(id: UUID): J;
2950
+ readonly markers: Markers;
2951
+ withMarkers(markers: Markers): J;
2952
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2953
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2954
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2955
+ constructor: Function;
2956
+ toString(): string;
2957
+ toLocaleString(): string;
2958
+ valueOf(): Object;
2959
+ hasOwnProperty(v: PropertyKey): boolean;
2960
+ isPrototypeOf(v: Object): boolean;
2961
+ propertyIsEnumerable(v: PropertyKey): boolean;
2962
+ }) & {
2963
+ isTree: boolean;
2964
+ isJava: boolean;
2965
+ }) & ObjectConstructor;
2966
+ export declare class TypeParameters extends TypeParameters_base {
2967
+ constructor(id: UUID, prefix: Space, markers: Markers, annotations: Annotation[], typeParameters: JRightPadded<TypeParameter>[]);
2968
+ private readonly _id;
2969
+ get id(): UUID;
2970
+ withId(id: UUID): TypeParameters;
2971
+ private readonly _prefix;
2972
+ get prefix(): Space;
2973
+ withPrefix(prefix: Space): TypeParameters;
2974
+ private readonly _markers;
2975
+ get markers(): Markers;
2976
+ withMarkers(markers: Markers): TypeParameters;
2977
+ private readonly _annotations;
2978
+ get annotations(): Annotation[];
2979
+ withAnnotations(annotations: Annotation[]): TypeParameters;
2980
+ private readonly _typeParameters;
2981
+ get typeParameters(): TypeParameter[];
2982
+ withTypeParameters(typeParameters: TypeParameter[]): TypeParameters;
2983
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2984
+ get padding(): {
2985
+ readonly typeParameters: JRightPadded<TypeParameter>[];
2986
+ withTypeParameters(typeParameters: JRightPadded<TypeParameter>[]): TypeParameters;
2987
+ };
2988
+ }
2989
+ declare const Unary_base: ((abstract new (...args: any[]) => {
2990
+ readonly prefix: Space;
2991
+ withPrefix(prefix: Space): J;
2992
+ readonly id: Uint8Array;
2993
+ withId(id: UUID): J;
2994
+ readonly markers: Markers;
2995
+ withMarkers(markers: Markers): J;
2996
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2997
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2998
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
2999
+ constructor: Function;
3000
+ toString(): string;
3001
+ toLocaleString(): string;
3002
+ valueOf(): Object;
3003
+ hasOwnProperty(v: PropertyKey): boolean;
3004
+ isPrototypeOf(v: Object): boolean;
3005
+ propertyIsEnumerable(v: PropertyKey): boolean;
3006
+ }) & {
3007
+ isTree: boolean;
3008
+ isJava: boolean;
3009
+ }) & ObjectConstructor;
3010
+ export declare class Unary extends Unary_base implements Statement, Expression, TypedTree {
3011
+ constructor(id: UUID, prefix: Space, markers: Markers, operator: JLeftPadded<Unary.Type>, expression: Expression, _type: JavaType | null);
3012
+ private readonly _id;
3013
+ get id(): UUID;
3014
+ withId(id: UUID): Unary;
3015
+ private readonly _prefix;
3016
+ get prefix(): Space;
3017
+ withPrefix(prefix: Space): Unary;
3018
+ private readonly _markers;
3019
+ get markers(): Markers;
3020
+ withMarkers(markers: Markers): Unary;
3021
+ private readonly _operator;
3022
+ get operator(): Unary.Type;
3023
+ withOperator(operator: Unary.Type): Unary;
3024
+ private readonly _expression;
3025
+ get expression(): Expression;
3026
+ withExpression(expression: Expression): Unary;
3027
+ private readonly _type;
3028
+ get type(): JavaType | null;
3029
+ withType(_type: JavaType | null): Unary;
3030
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
3031
+ get padding(): {
3032
+ readonly operator: JLeftPadded<Unary.Type>;
3033
+ withOperator(operator: JLeftPadded<Unary.Type>): Unary;
3034
+ };
3035
+ }
3036
+ export declare namespace Unary {
3037
+ enum Type {
3038
+ PreIncrement = 0,
3039
+ PreDecrement = 1,
3040
+ PostIncrement = 2,
3041
+ PostDecrement = 3,
3042
+ Positive = 4,
3043
+ Negative = 5,
3044
+ Complement = 6,
3045
+ Not = 7
3046
+ }
3047
+ }
3048
+ declare const VariableDeclarations_base: ((abstract new (...args: any[]) => {
3049
+ readonly prefix: Space;
3050
+ withPrefix(prefix: Space): J;
3051
+ readonly id: Uint8Array;
3052
+ withId(id: UUID): J;
3053
+ readonly markers: Markers;
3054
+ withMarkers(markers: Markers): J;
3055
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
3056
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
3057
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
3058
+ constructor: Function;
3059
+ toString(): string;
3060
+ toLocaleString(): string;
3061
+ valueOf(): Object;
3062
+ hasOwnProperty(v: PropertyKey): boolean;
3063
+ isPrototypeOf(v: Object): boolean;
3064
+ propertyIsEnumerable(v: PropertyKey): boolean;
3065
+ }) & {
3066
+ isTree: boolean;
3067
+ isJava: boolean;
3068
+ }) & ObjectConstructor;
3069
+ export declare class VariableDeclarations extends VariableDeclarations_base implements Statement, TypedTree {
3070
+ constructor(id: UUID, prefix: Space, markers: Markers, leadingAnnotations: Annotation[], modifiers: Modifier[], typeExpression: TypeTree | null, varargs: Space | null, dimensionsBeforeName: JLeftPadded<Space>[], variables: JRightPadded<VariableDeclarations.NamedVariable>[]);
3071
+ private readonly _id;
3072
+ get id(): UUID;
3073
+ withId(id: UUID): VariableDeclarations;
3074
+ private readonly _prefix;
3075
+ get prefix(): Space;
3076
+ withPrefix(prefix: Space): VariableDeclarations;
3077
+ private readonly _markers;
3078
+ get markers(): Markers;
3079
+ withMarkers(markers: Markers): VariableDeclarations;
3080
+ private readonly _leadingAnnotations;
3081
+ get leadingAnnotations(): Annotation[];
3082
+ withLeadingAnnotations(leadingAnnotations: Annotation[]): VariableDeclarations;
3083
+ private readonly _modifiers;
3084
+ get modifiers(): Modifier[];
3085
+ withModifiers(modifiers: Modifier[]): VariableDeclarations;
3086
+ private readonly _typeExpression;
3087
+ get typeExpression(): TypeTree | null;
3088
+ withTypeExpression(typeExpression: TypeTree | null): VariableDeclarations;
3089
+ private readonly _varargs;
3090
+ get varargs(): Space | null;
3091
+ withVarargs(varargs: Space | null): VariableDeclarations;
3092
+ private readonly _dimensionsBeforeName;
3093
+ get dimensionsBeforeName(): JLeftPadded<Space>[];
3094
+ withDimensionsBeforeName(dimensionsBeforeName: JLeftPadded<Space>[]): VariableDeclarations;
3095
+ private readonly _variables;
3096
+ get variables(): VariableDeclarations.NamedVariable[];
3097
+ withVariables(variables: VariableDeclarations.NamedVariable[]): VariableDeclarations;
3098
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
3099
+ get type(): JavaType | null;
3100
+ withType(type: JavaType): VariableDeclarations;
3101
+ get padding(): {
3102
+ readonly variables: JRightPadded<VariableDeclarations.NamedVariable>[];
3103
+ withVariables(variables: JRightPadded<VariableDeclarations.NamedVariable>[]): VariableDeclarations;
3104
+ };
3105
+ }
3106
+ export declare namespace VariableDeclarations {
3107
+ const NamedVariable_base: ((abstract new (...args: any[]) => {
3108
+ readonly prefix: Space;
3109
+ withPrefix(prefix: Space): J;
3110
+ readonly id: Uint8Array;
3111
+ withId(id: UUID): J;
3112
+ readonly markers: Markers;
3113
+ withMarkers(markers: Markers): J;
3114
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
3115
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
3116
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
3117
+ constructor: Function;
3118
+ toString(): string;
3119
+ toLocaleString(): string;
3120
+ valueOf(): Object;
3121
+ hasOwnProperty(v: PropertyKey): boolean;
3122
+ isPrototypeOf(v: Object): boolean;
3123
+ propertyIsEnumerable(v: PropertyKey): boolean;
3124
+ }) & {
3125
+ isTree: boolean;
3126
+ isJava: boolean;
3127
+ }) & ObjectConstructor;
3128
+ export class NamedVariable extends NamedVariable_base implements NameTree {
3129
+ constructor(id: UUID, prefix: Space, markers: Markers, name: Identifier, dimensionsAfterName: JLeftPadded<Space>[], initializer: JLeftPadded<Expression> | null, variableType: JavaType.Variable | null);
3130
+ private readonly _id;
3131
+ get id(): UUID;
3132
+ withId(id: UUID): VariableDeclarations.NamedVariable;
3133
+ private readonly _prefix;
3134
+ get prefix(): Space;
3135
+ withPrefix(prefix: Space): VariableDeclarations.NamedVariable;
3136
+ private readonly _markers;
3137
+ get markers(): Markers;
3138
+ withMarkers(markers: Markers): VariableDeclarations.NamedVariable;
3139
+ private readonly _name;
3140
+ get name(): Identifier;
3141
+ withName(name: Identifier): VariableDeclarations.NamedVariable;
3142
+ private readonly _dimensionsAfterName;
3143
+ get dimensionsAfterName(): JLeftPadded<Space>[];
3144
+ withDimensionsAfterName(dimensionsAfterName: JLeftPadded<Space>[]): VariableDeclarations.NamedVariable;
3145
+ private readonly _initializer;
3146
+ get initializer(): Expression | null;
3147
+ withInitializer(initializer: Expression | null): VariableDeclarations.NamedVariable;
3148
+ private readonly _variableType;
3149
+ get variableType(): JavaType.Variable | null;
3150
+ withVariableType(variableType: JavaType.Variable | null): VariableDeclarations.NamedVariable;
3151
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
3152
+ get type(): JavaType | null;
3153
+ withType(type: JavaType): VariableDeclarations.NamedVariable;
3154
+ get padding(): {
3155
+ readonly initializer: JLeftPadded<Expression> | null;
3156
+ withInitializer(initializer: JLeftPadded<Expression> | null): VariableDeclarations.NamedVariable;
3157
+ };
3158
+ }
3159
+ export {};
3160
+ }
3161
+ declare const WhileLoop_base: ((abstract new (...args: any[]) => {
3162
+ readonly prefix: Space;
3163
+ withPrefix(prefix: Space): J;
3164
+ readonly id: Uint8Array;
3165
+ withId(id: UUID): J;
3166
+ readonly markers: Markers;
3167
+ withMarkers(markers: Markers): J;
3168
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
3169
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
3170
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
3171
+ constructor: Function;
3172
+ toString(): string;
3173
+ toLocaleString(): string;
3174
+ valueOf(): Object;
3175
+ hasOwnProperty(v: PropertyKey): boolean;
3176
+ isPrototypeOf(v: Object): boolean;
3177
+ propertyIsEnumerable(v: PropertyKey): boolean;
3178
+ }) & {
3179
+ isTree: boolean;
3180
+ isJava: boolean;
3181
+ }) & ObjectConstructor;
3182
+ export declare class WhileLoop extends WhileLoop_base implements Loop {
3183
+ constructor(id: UUID, prefix: Space, markers: Markers, condition: ControlParentheses<Expression>, body: JRightPadded<Statement>);
3184
+ private readonly _id;
3185
+ get id(): UUID;
3186
+ withId(id: UUID): WhileLoop;
3187
+ private readonly _prefix;
3188
+ get prefix(): Space;
3189
+ withPrefix(prefix: Space): WhileLoop;
3190
+ private readonly _markers;
3191
+ get markers(): Markers;
3192
+ withMarkers(markers: Markers): WhileLoop;
3193
+ private readonly _condition;
3194
+ get condition(): ControlParentheses<Expression>;
3195
+ withCondition(condition: ControlParentheses<Expression>): WhileLoop;
3196
+ private readonly _body;
3197
+ get body(): Statement;
3198
+ withBody(body: Statement): WhileLoop;
3199
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
3200
+ get padding(): {
3201
+ readonly body: JRightPadded<Statement>;
3202
+ withBody(body: JRightPadded<Statement>): WhileLoop;
3203
+ };
3204
+ }
3205
+ declare const Wildcard_base: ((abstract new (...args: any[]) => {
3206
+ readonly prefix: Space;
3207
+ withPrefix(prefix: Space): J;
3208
+ readonly id: Uint8Array;
3209
+ withId(id: UUID): J;
3210
+ readonly markers: Markers;
3211
+ withMarkers(markers: Markers): J;
3212
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
3213
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
3214
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
3215
+ constructor: Function;
3216
+ toString(): string;
3217
+ toLocaleString(): string;
3218
+ valueOf(): Object;
3219
+ hasOwnProperty(v: PropertyKey): boolean;
3220
+ isPrototypeOf(v: Object): boolean;
3221
+ propertyIsEnumerable(v: PropertyKey): boolean;
3222
+ }) & {
3223
+ isTree: boolean;
3224
+ isJava: boolean;
3225
+ }) & ObjectConstructor;
3226
+ export declare class Wildcard extends Wildcard_base implements Expression, TypeTree {
3227
+ constructor(id: UUID, prefix: Space, markers: Markers, bound: JLeftPadded<Wildcard.Bound> | null, boundedType: NameTree | null);
3228
+ private readonly _id;
3229
+ get id(): UUID;
3230
+ withId(id: UUID): Wildcard;
3231
+ private readonly _prefix;
3232
+ get prefix(): Space;
3233
+ withPrefix(prefix: Space): Wildcard;
3234
+ private readonly _markers;
3235
+ get markers(): Markers;
3236
+ withMarkers(markers: Markers): Wildcard;
3237
+ private readonly _bound;
3238
+ get bound(): Wildcard.Bound | null;
3239
+ withBound(bound: Wildcard.Bound | null): Wildcard;
3240
+ private readonly _boundedType;
3241
+ get boundedType(): NameTree | null;
3242
+ withBoundedType(boundedType: NameTree | null): Wildcard;
3243
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
3244
+ get type(): JavaType | null;
3245
+ withType(type: JavaType): Wildcard;
3246
+ get padding(): {
3247
+ readonly bound: JLeftPadded<Wildcard.Bound> | null;
3248
+ withBound(bound: JLeftPadded<Wildcard.Bound> | null): Wildcard;
3249
+ };
3250
+ }
3251
+ export declare namespace Wildcard {
3252
+ enum Bound {
3253
+ Extends = 0,
3254
+ Super = 1
3255
+ }
3256
+ }
3257
+ declare const Yield_base: ((abstract new (...args: any[]) => {
3258
+ readonly prefix: Space;
3259
+ withPrefix(prefix: Space): J;
3260
+ readonly id: Uint8Array;
3261
+ withId(id: UUID): J;
3262
+ readonly markers: Markers;
3263
+ withMarkers(markers: Markers): J;
3264
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
3265
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
3266
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
3267
+ constructor: Function;
3268
+ toString(): string;
3269
+ toLocaleString(): string;
3270
+ valueOf(): Object;
3271
+ hasOwnProperty(v: PropertyKey): boolean;
3272
+ isPrototypeOf(v: Object): boolean;
3273
+ propertyIsEnumerable(v: PropertyKey): boolean;
3274
+ }) & {
3275
+ isTree: boolean;
3276
+ isJava: boolean;
3277
+ }) & ObjectConstructor;
3278
+ export declare class Yield extends Yield_base implements Statement {
3279
+ constructor(id: UUID, prefix: Space, markers: Markers, implicit: boolean, value: Expression);
3280
+ private readonly _id;
3281
+ get id(): UUID;
3282
+ withId(id: UUID): Yield;
3283
+ private readonly _prefix;
3284
+ get prefix(): Space;
3285
+ withPrefix(prefix: Space): Yield;
3286
+ private readonly _markers;
3287
+ get markers(): Markers;
3288
+ withMarkers(markers: Markers): Yield;
3289
+ private readonly _implicit;
3290
+ get implicit(): boolean;
3291
+ withImplicit(implicit: boolean): Yield;
3292
+ private readonly _value;
3293
+ get value(): Expression;
3294
+ withValue(value: Expression): Yield;
3295
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
3296
+ }
3297
+ declare const Unknown_base: ((abstract new (...args: any[]) => {
3298
+ readonly prefix: Space;
3299
+ withPrefix(prefix: Space): J;
3300
+ readonly id: Uint8Array;
3301
+ withId(id: UUID): J;
3302
+ readonly markers: Markers;
3303
+ withMarkers(markers: Markers): J;
3304
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
3305
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
3306
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
3307
+ constructor: Function;
3308
+ toString(): string;
3309
+ toLocaleString(): string;
3310
+ valueOf(): Object;
3311
+ hasOwnProperty(v: PropertyKey): boolean;
3312
+ isPrototypeOf(v: Object): boolean;
3313
+ propertyIsEnumerable(v: PropertyKey): boolean;
3314
+ }) & {
3315
+ isTree: boolean;
3316
+ isJava: boolean;
3317
+ }) & ObjectConstructor;
3318
+ export declare class Unknown extends Unknown_base implements Statement, Expression, TypeTree {
3319
+ constructor(id: UUID, prefix: Space, markers: Markers, source: Unknown.Source);
3320
+ private readonly _id;
3321
+ get id(): UUID;
3322
+ withId(id: UUID): Unknown;
3323
+ private readonly _prefix;
3324
+ get prefix(): Space;
3325
+ withPrefix(prefix: Space): Unknown;
3326
+ private readonly _markers;
3327
+ get markers(): Markers;
3328
+ withMarkers(markers: Markers): Unknown;
3329
+ private readonly _source;
3330
+ get source(): Unknown.Source;
3331
+ withSource(source: Unknown.Source): Unknown;
3332
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
3333
+ get type(): JavaType | null;
3334
+ withType(type: JavaType): Unknown;
3335
+ }
3336
+ export declare namespace Unknown {
3337
+ const Source_base: ((abstract new (...args: any[]) => {
3338
+ readonly prefix: Space;
3339
+ withPrefix(prefix: Space): J;
3340
+ readonly id: Uint8Array;
3341
+ withId(id: UUID): J;
3342
+ readonly markers: Markers;
3343
+ withMarkers(markers: Markers): J;
3344
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
3345
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
3346
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
3347
+ constructor: Function;
3348
+ toString(): string;
3349
+ toLocaleString(): string;
3350
+ valueOf(): Object;
3351
+ hasOwnProperty(v: PropertyKey): boolean;
3352
+ isPrototypeOf(v: Object): boolean;
3353
+ propertyIsEnumerable(v: PropertyKey): boolean;
3354
+ }) & {
3355
+ isTree: boolean;
3356
+ isJava: boolean;
3357
+ }) & ObjectConstructor;
3358
+ export class Source extends Source_base {
3359
+ constructor(id: UUID, prefix: Space, markers: Markers, text: string);
3360
+ private readonly _id;
3361
+ get id(): UUID;
3362
+ withId(id: UUID): Unknown.Source;
3363
+ private readonly _prefix;
3364
+ get prefix(): Space;
3365
+ withPrefix(prefix: Space): Unknown.Source;
3366
+ private readonly _markers;
3367
+ get markers(): Markers;
3368
+ withMarkers(markers: Markers): Unknown.Source;
3369
+ private readonly _text;
3370
+ get text(): string;
3371
+ withText(text: string): Unknown.Source;
3372
+ acceptJava<P>(v: JavaVisitor<P>, p: P): J | null;
3373
+ }
3374
+ export {};
3375
+ }
3376
+ export {};
3377
+ //# sourceMappingURL=tree.d.ts.map