@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.
- package/CONTRIBUTING.md +22 -0
- package/LICENSE +201 -0
- package/README.md +13 -0
- package/dist/src/core/execution.d.ts +35 -0
- package/dist/src/core/execution.d.ts.map +1 -0
- package/dist/src/core/execution.js +65 -0
- package/dist/src/core/execution.js.map +1 -0
- package/dist/src/core/index.d.ts +6 -0
- package/dist/src/core/index.d.ts.map +1 -0
- package/dist/src/core/index.js +22 -0
- package/dist/src/core/index.js.map +1 -0
- package/dist/src/core/markers.d.ts +56 -0
- package/dist/src/core/markers.d.ts.map +1 -0
- package/dist/src/core/markers.js +140 -0
- package/dist/src/core/markers.js.map +1 -0
- package/dist/src/core/parser.d.ts +34 -0
- package/dist/src/core/parser.d.ts.map +1 -0
- package/dist/src/core/parser.js +106 -0
- package/dist/src/core/parser.js.map +1 -0
- package/dist/src/core/tree.d.ts +195 -0
- package/dist/src/core/tree.d.ts.map +1 -0
- package/dist/src/core/tree.js +455 -0
- package/dist/src/core/tree.js.map +1 -0
- package/dist/src/core/utils.d.ts +12 -0
- package/dist/src/core/utils.d.ts.map +1 -0
- package/dist/src/core/utils.js +69 -0
- package/dist/src/core/utils.js.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +3 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/java/extensions.d.ts +7 -0
- package/dist/src/java/extensions.d.ts.map +1 -0
- package/dist/src/java/extensions.js +53 -0
- package/dist/src/java/extensions.js.map +1 -0
- package/dist/src/java/index.d.ts +4 -0
- package/dist/src/java/index.d.ts.map +1 -0
- package/dist/src/java/index.js +20 -0
- package/dist/src/java/index.js.map +1 -0
- package/dist/src/java/markers.d.ts +20 -0
- package/dist/src/java/markers.d.ts.map +1 -0
- package/dist/src/java/markers.js +54 -0
- package/dist/src/java/markers.js.map +1 -0
- package/dist/src/java/tree/extensions.d.ts +6 -0
- package/dist/src/java/tree/extensions.d.ts.map +1 -0
- package/dist/src/java/tree/extensions.js +36 -0
- package/dist/src/java/tree/extensions.js.map +1 -0
- package/dist/src/java/tree/index.d.ts +4 -0
- package/dist/src/java/tree/index.d.ts.map +1 -0
- package/dist/src/java/tree/index.js +20 -0
- package/dist/src/java/tree/index.js.map +1 -0
- package/dist/src/java/tree/support_types.d.ts +396 -0
- package/dist/src/java/tree/support_types.d.ts.map +1 -0
- package/dist/src/java/tree/support_types.js +450 -0
- package/dist/src/java/tree/support_types.js.map +1 -0
- package/dist/src/java/tree/tree.d.ts +3377 -0
- package/dist/src/java/tree/tree.d.ts.map +1 -0
- package/dist/src/java/tree/tree.js +4613 -0
- package/dist/src/java/tree/tree.js.map +1 -0
- package/dist/src/java/tree/types.d.ts +80 -0
- package/dist/src/java/tree/types.d.ts.map +1 -0
- package/dist/src/java/tree/types.js +138 -0
- package/dist/src/java/tree/types.js.map +1 -0
- package/dist/src/java/visitor.d.ts +82 -0
- package/dist/src/java/visitor.d.ts.map +1 -0
- package/dist/src/java/visitor.js +872 -0
- package/dist/src/java/visitor.js.map +1 -0
- package/dist/src/javascript/extensions.d.ts +12 -0
- package/dist/src/javascript/extensions.d.ts.map +1 -0
- package/dist/src/javascript/extensions.js +60 -0
- package/dist/src/javascript/extensions.js.map +1 -0
- package/dist/src/javascript/index.d.ts +6 -0
- package/dist/src/javascript/index.d.ts.map +1 -0
- package/dist/src/javascript/index.js +22 -0
- package/dist/src/javascript/index.js.map +1 -0
- package/dist/src/javascript/markers.d.ts +2 -0
- package/dist/src/javascript/markers.d.ts.map +1 -0
- package/dist/src/javascript/markers.js +3 -0
- package/dist/src/javascript/markers.js.map +1 -0
- package/dist/src/javascript/parser.d.ts +268 -0
- package/dist/src/javascript/parser.d.ts.map +1 -0
- package/dist/src/javascript/parser.js +1137 -0
- package/dist/src/javascript/parser.js.map +1 -0
- package/dist/src/javascript/parserUtils.d.ts +7 -0
- package/dist/src/javascript/parserUtils.d.ts.map +1 -0
- package/dist/src/javascript/parserUtils.js +165 -0
- package/dist/src/javascript/parserUtils.js.map +1 -0
- package/dist/src/javascript/projectParser.d.ts +25 -0
- package/dist/src/javascript/projectParser.d.ts.map +1 -0
- package/dist/src/javascript/projectParser.js +149 -0
- package/dist/src/javascript/projectParser.js.map +1 -0
- package/dist/src/javascript/projectParserMain.d.ts +3 -0
- package/dist/src/javascript/projectParserMain.d.ts.map +1 -0
- package/dist/src/javascript/projectParserMain.js +59 -0
- package/dist/src/javascript/projectParserMain.js.map +1 -0
- package/dist/src/javascript/tree/extensions.d.ts +4 -0
- package/dist/src/javascript/tree/extensions.d.ts.map +1 -0
- package/dist/src/javascript/tree/extensions.js +80 -0
- package/dist/src/javascript/tree/extensions.js.map +1 -0
- package/dist/src/javascript/tree/index.d.ts +3 -0
- package/dist/src/javascript/tree/index.d.ts.map +1 -0
- package/dist/src/javascript/tree/index.js +19 -0
- package/dist/src/javascript/tree/index.js.map +1 -0
- package/dist/src/javascript/tree/support_types.d.ts +184 -0
- package/dist/src/javascript/tree/support_types.d.ts.map +1 -0
- package/dist/src/javascript/tree/support_types.js +224 -0
- package/dist/src/javascript/tree/support_types.js.map +1 -0
- package/dist/src/javascript/tree/tree.d.ts +1173 -0
- package/dist/src/javascript/tree/tree.d.ts.map +1 -0
- package/dist/src/javascript/tree/tree.js +1590 -0
- package/dist/src/javascript/tree/tree.js.map +1 -0
- package/dist/src/javascript/typeMapping.d.ts +16 -0
- package/dist/src/javascript/typeMapping.d.ts.map +1 -0
- package/dist/src/javascript/typeMapping.js +120 -0
- package/dist/src/javascript/typeMapping.js.map +1 -0
- package/dist/src/javascript/visitor.d.ts +41 -0
- package/dist/src/javascript/visitor.d.ts.map +1 -0
- package/dist/src/javascript/visitor.js +360 -0
- package/dist/src/javascript/visitor.js.map +1 -0
- package/dist/src/json/extensions.d.ts +6 -0
- package/dist/src/json/extensions.d.ts.map +1 -0
- package/dist/src/json/extensions.js +11 -0
- package/dist/src/json/extensions.js.map +1 -0
- package/dist/src/json/index.d.ts +5 -0
- package/dist/src/json/index.d.ts.map +1 -0
- package/dist/src/json/index.js +21 -0
- package/dist/src/json/index.js.map +1 -0
- package/dist/src/json/markers.d.ts +2 -0
- package/dist/src/json/markers.d.ts.map +1 -0
- package/dist/src/json/markers.js +3 -0
- package/dist/src/json/markers.js.map +1 -0
- package/dist/src/json/support_types.d.ts +19 -0
- package/dist/src/json/support_types.d.ts.map +1 -0
- package/dist/src/json/support_types.js +47 -0
- package/dist/src/json/support_types.js.map +1 -0
- package/dist/src/json/tree.d.ts +187 -0
- package/dist/src/json/tree.d.ts.map +1 -0
- package/dist/src/json/tree.js +393 -0
- package/dist/src/json/tree.js.map +1 -0
- package/dist/src/json/visitor.d.ts +16 -0
- package/dist/src/json/visitor.d.ts.map +1 -0
- package/dist/src/json/visitor.js +83 -0
- package/dist/src/json/visitor.js.map +1 -0
- package/dist/src/yaml/index.d.ts +4 -0
- package/dist/src/yaml/index.d.ts.map +1 -0
- package/dist/src/yaml/index.js +20 -0
- package/dist/src/yaml/index.js.map +1 -0
- package/dist/src/yaml/markers.d.ts +2 -0
- package/dist/src/yaml/markers.d.ts.map +1 -0
- package/dist/src/yaml/markers.js +3 -0
- package/dist/src/yaml/markers.js.map +1 -0
- package/dist/src/yaml/tree/extensions.d.ts +2 -0
- package/dist/src/yaml/tree/extensions.d.ts.map +1 -0
- package/dist/src/yaml/tree/extensions.js +3 -0
- package/dist/src/yaml/tree/extensions.js.map +1 -0
- package/dist/src/yaml/tree/index.d.ts +3 -0
- package/dist/src/yaml/tree/index.d.ts.map +1 -0
- package/dist/src/yaml/tree/index.js +19 -0
- package/dist/src/yaml/tree/index.js.map +1 -0
- package/dist/src/yaml/tree/support_types.d.ts +37 -0
- package/dist/src/yaml/tree/support_types.d.ts.map +1 -0
- package/dist/src/yaml/tree/support_types.js +25 -0
- package/dist/src/yaml/tree/support_types.js.map +1 -0
- package/dist/src/yaml/tree/tree.d.ts +451 -0
- package/dist/src/yaml/tree/tree.d.ts.map +1 -0
- package/dist/src/yaml/tree/tree.js +551 -0
- package/dist/src/yaml/tree/tree.js.map +1 -0
- package/dist/src/yaml/visitor.d.ts +16 -0
- package/dist/src/yaml/visitor.d.ts.map +1 -0
- package/dist/src/yaml/visitor.js +64 -0
- package/dist/src/yaml/visitor.js.map +1 -0
- package/package.json +40 -0
|
@@ -0,0 +1,4613 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
+
if (mod && mod.__esModule) return mod;
|
|
26
|
+
var result = {};
|
|
27
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
+
__setModuleDefault(result, mod);
|
|
29
|
+
return result;
|
|
30
|
+
};
|
|
31
|
+
var AnnotatedType_1, Annotation_1, ArrayAccess_1, ArrayType_1, Assert_1, Assignment_1, AssignmentOperation_1, Binary_1, Block_1, Break_1, Case_1, ClassDeclaration_1, CompilationUnit_1, Continue_1, DoWhileLoop_1, Empty_1, EnumValue_1, EnumValueSet_1, FieldAccess_1, ForEachLoop_1, ForLoop_1, ParenthesizedTypeTree_1, Identifier_1, If_1, Import_1, InstanceOf_1, IntersectionType_1, Label_1, Lambda_1, Literal_1, MemberReference_1, MethodDeclaration_1, MethodInvocation_1, Modifier_1, MultiCatch_1, NewArray_1, ArrayDimension_1, NewClass_1, NullableType_1, Package_1, ParameterizedType_1, Parentheses_1, ControlParentheses_1, Primitive_1, Return_1, Switch_1, SwitchExpression_1, Synchronized_1, Ternary_1, Throw_1, Try_1, TypeCast_1, TypeParameter_1, TypeParameters_1, Unary_1, VariableDeclarations_1, WhileLoop_1, Wildcard_1, Yield_1, Unknown_1;
|
|
32
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
+
exports.Throw = exports.Ternary = exports.Synchronized = exports.SwitchExpression = exports.Switch = exports.Return = exports.Primitive = exports.ControlParentheses = exports.Parentheses = exports.ParameterizedType = exports.Package = exports.NullableType = exports.NewClass = exports.ArrayDimension = exports.NewArray = exports.MultiCatch = exports.Modifier = exports.MethodInvocation = exports.MethodDeclaration = exports.MemberReference = exports.Literal = exports.Lambda = exports.Label = exports.IntersectionType = exports.InstanceOf = exports.Import = exports.If = exports.Identifier = exports.ParenthesizedTypeTree = exports.ForLoop = exports.ForEachLoop = exports.FieldAccess = exports.EnumValueSet = exports.EnumValue = exports.Empty = exports.DoWhileLoop = exports.Continue = exports.CompilationUnit = exports.ClassDeclaration = exports.Case = exports.Break = exports.Block = exports.Binary = exports.AssignmentOperation = exports.Assignment = exports.Assert = exports.ArrayType = exports.ArrayAccess = exports.Annotation = exports.AnnotatedType = void 0;
|
|
34
|
+
exports.Unknown = exports.Yield = exports.Wildcard = exports.WhileLoop = exports.VariableDeclarations = exports.Unary = exports.TypeParameters = exports.TypeParameter = exports.TypeCast = exports.Try = void 0;
|
|
35
|
+
const extensions = __importStar(require("./extensions"));
|
|
36
|
+
const support_types_1 = require("./support_types");
|
|
37
|
+
const core_1 = require("../../core");
|
|
38
|
+
let AnnotatedType = AnnotatedType_1 = class AnnotatedType extends (0, support_types_1.JMixin)(Object) {
|
|
39
|
+
constructor(id, prefix, markers, annotations, typeExpression) {
|
|
40
|
+
super();
|
|
41
|
+
this._id = id;
|
|
42
|
+
this._prefix = prefix;
|
|
43
|
+
this._markers = markers;
|
|
44
|
+
this._annotations = annotations;
|
|
45
|
+
this._typeExpression = typeExpression;
|
|
46
|
+
}
|
|
47
|
+
get id() {
|
|
48
|
+
return this._id;
|
|
49
|
+
}
|
|
50
|
+
withId(id) {
|
|
51
|
+
return id === this._id ? this : new AnnotatedType_1(id, this._prefix, this._markers, this._annotations, this._typeExpression);
|
|
52
|
+
}
|
|
53
|
+
get prefix() {
|
|
54
|
+
return this._prefix;
|
|
55
|
+
}
|
|
56
|
+
withPrefix(prefix) {
|
|
57
|
+
return prefix === this._prefix ? this : new AnnotatedType_1(this._id, prefix, this._markers, this._annotations, this._typeExpression);
|
|
58
|
+
}
|
|
59
|
+
get markers() {
|
|
60
|
+
return this._markers;
|
|
61
|
+
}
|
|
62
|
+
withMarkers(markers) {
|
|
63
|
+
return markers === this._markers ? this : new AnnotatedType_1(this._id, this._prefix, markers, this._annotations, this._typeExpression);
|
|
64
|
+
}
|
|
65
|
+
get annotations() {
|
|
66
|
+
return this._annotations;
|
|
67
|
+
}
|
|
68
|
+
withAnnotations(annotations) {
|
|
69
|
+
return annotations === this._annotations ? this : new AnnotatedType_1(this._id, this._prefix, this._markers, annotations, this._typeExpression);
|
|
70
|
+
}
|
|
71
|
+
get typeExpression() {
|
|
72
|
+
return this._typeExpression;
|
|
73
|
+
}
|
|
74
|
+
withTypeExpression(typeExpression) {
|
|
75
|
+
return typeExpression === this._typeExpression ? this : new AnnotatedType_1(this._id, this._prefix, this._markers, this._annotations, typeExpression);
|
|
76
|
+
}
|
|
77
|
+
acceptJava(v, p) {
|
|
78
|
+
return v.visitAnnotatedType(this, p);
|
|
79
|
+
}
|
|
80
|
+
get type() {
|
|
81
|
+
return extensions.getJavaType(this);
|
|
82
|
+
}
|
|
83
|
+
withType(type) {
|
|
84
|
+
return extensions.withJavaType(this, type);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
exports.AnnotatedType = AnnotatedType;
|
|
88
|
+
exports.AnnotatedType = AnnotatedType = AnnotatedType_1 = __decorate([
|
|
89
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$AnnotatedType")
|
|
90
|
+
], AnnotatedType);
|
|
91
|
+
let Annotation = Annotation_1 = class Annotation extends (0, support_types_1.JMixin)(Object) {
|
|
92
|
+
constructor(id, prefix, markers, annotationType, _arguments) {
|
|
93
|
+
super();
|
|
94
|
+
this._id = id;
|
|
95
|
+
this._prefix = prefix;
|
|
96
|
+
this._markers = markers;
|
|
97
|
+
this._annotationType = annotationType;
|
|
98
|
+
this._arguments = _arguments;
|
|
99
|
+
}
|
|
100
|
+
get id() {
|
|
101
|
+
return this._id;
|
|
102
|
+
}
|
|
103
|
+
withId(id) {
|
|
104
|
+
return id === this._id ? this : new Annotation_1(id, this._prefix, this._markers, this._annotationType, this._arguments);
|
|
105
|
+
}
|
|
106
|
+
get prefix() {
|
|
107
|
+
return this._prefix;
|
|
108
|
+
}
|
|
109
|
+
withPrefix(prefix) {
|
|
110
|
+
return prefix === this._prefix ? this : new Annotation_1(this._id, prefix, this._markers, this._annotationType, this._arguments);
|
|
111
|
+
}
|
|
112
|
+
get markers() {
|
|
113
|
+
return this._markers;
|
|
114
|
+
}
|
|
115
|
+
withMarkers(markers) {
|
|
116
|
+
return markers === this._markers ? this : new Annotation_1(this._id, this._prefix, markers, this._annotationType, this._arguments);
|
|
117
|
+
}
|
|
118
|
+
get annotationType() {
|
|
119
|
+
return this._annotationType;
|
|
120
|
+
}
|
|
121
|
+
withAnnotationType(annotationType) {
|
|
122
|
+
return annotationType === this._annotationType ? this : new Annotation_1(this._id, this._prefix, this._markers, annotationType, this._arguments);
|
|
123
|
+
}
|
|
124
|
+
get arguments() {
|
|
125
|
+
return this._arguments === null ? null : this._arguments.elements;
|
|
126
|
+
}
|
|
127
|
+
withArguments(_arguments) {
|
|
128
|
+
return this.padding.withArguments(support_types_1.JContainer.withElementsNullable(this._arguments, _arguments));
|
|
129
|
+
}
|
|
130
|
+
acceptJava(v, p) {
|
|
131
|
+
return v.visitAnnotation(this, p);
|
|
132
|
+
}
|
|
133
|
+
get type() {
|
|
134
|
+
return extensions.getJavaType(this);
|
|
135
|
+
}
|
|
136
|
+
withType(type) {
|
|
137
|
+
return extensions.withJavaType(this, type);
|
|
138
|
+
}
|
|
139
|
+
get padding() {
|
|
140
|
+
const t = this;
|
|
141
|
+
return new class {
|
|
142
|
+
get arguments() {
|
|
143
|
+
return t._arguments;
|
|
144
|
+
}
|
|
145
|
+
withArguments(_arguments) {
|
|
146
|
+
return t._arguments === _arguments ? t : new Annotation_1(t._id, t._prefix, t._markers, t._annotationType, _arguments);
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
exports.Annotation = Annotation;
|
|
152
|
+
exports.Annotation = Annotation = Annotation_1 = __decorate([
|
|
153
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Annotation")
|
|
154
|
+
], Annotation);
|
|
155
|
+
let ArrayAccess = ArrayAccess_1 = class ArrayAccess extends (0, support_types_1.JMixin)(Object) {
|
|
156
|
+
constructor(id, prefix, markers, indexed, dimension, _type) {
|
|
157
|
+
super();
|
|
158
|
+
this._id = id;
|
|
159
|
+
this._prefix = prefix;
|
|
160
|
+
this._markers = markers;
|
|
161
|
+
this._indexed = indexed;
|
|
162
|
+
this._dimension = dimension;
|
|
163
|
+
this._type = _type;
|
|
164
|
+
}
|
|
165
|
+
get id() {
|
|
166
|
+
return this._id;
|
|
167
|
+
}
|
|
168
|
+
withId(id) {
|
|
169
|
+
return id === this._id ? this : new ArrayAccess_1(id, this._prefix, this._markers, this._indexed, this._dimension, this._type);
|
|
170
|
+
}
|
|
171
|
+
get prefix() {
|
|
172
|
+
return this._prefix;
|
|
173
|
+
}
|
|
174
|
+
withPrefix(prefix) {
|
|
175
|
+
return prefix === this._prefix ? this : new ArrayAccess_1(this._id, prefix, this._markers, this._indexed, this._dimension, this._type);
|
|
176
|
+
}
|
|
177
|
+
get markers() {
|
|
178
|
+
return this._markers;
|
|
179
|
+
}
|
|
180
|
+
withMarkers(markers) {
|
|
181
|
+
return markers === this._markers ? this : new ArrayAccess_1(this._id, this._prefix, markers, this._indexed, this._dimension, this._type);
|
|
182
|
+
}
|
|
183
|
+
get indexed() {
|
|
184
|
+
return this._indexed;
|
|
185
|
+
}
|
|
186
|
+
withIndexed(indexed) {
|
|
187
|
+
return indexed === this._indexed ? this : new ArrayAccess_1(this._id, this._prefix, this._markers, indexed, this._dimension, this._type);
|
|
188
|
+
}
|
|
189
|
+
get dimension() {
|
|
190
|
+
return this._dimension;
|
|
191
|
+
}
|
|
192
|
+
withDimension(dimension) {
|
|
193
|
+
return dimension === this._dimension ? this : new ArrayAccess_1(this._id, this._prefix, this._markers, this._indexed, dimension, this._type);
|
|
194
|
+
}
|
|
195
|
+
get type() {
|
|
196
|
+
return this._type;
|
|
197
|
+
}
|
|
198
|
+
withType(_type) {
|
|
199
|
+
return _type === this._type ? this : new ArrayAccess_1(this._id, this._prefix, this._markers, this._indexed, this._dimension, _type);
|
|
200
|
+
}
|
|
201
|
+
acceptJava(v, p) {
|
|
202
|
+
return v.visitArrayAccess(this, p);
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
exports.ArrayAccess = ArrayAccess;
|
|
206
|
+
exports.ArrayAccess = ArrayAccess = ArrayAccess_1 = __decorate([
|
|
207
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$ArrayAccess")
|
|
208
|
+
], ArrayAccess);
|
|
209
|
+
let ArrayType = ArrayType_1 = class ArrayType extends (0, support_types_1.JMixin)(Object) {
|
|
210
|
+
constructor(id, prefix, markers, elementType, annotations, dimension, _type) {
|
|
211
|
+
super();
|
|
212
|
+
this._id = id;
|
|
213
|
+
this._prefix = prefix;
|
|
214
|
+
this._markers = markers;
|
|
215
|
+
this._elementType = elementType;
|
|
216
|
+
this._annotations = annotations;
|
|
217
|
+
this._dimension = dimension;
|
|
218
|
+
this._type = _type;
|
|
219
|
+
}
|
|
220
|
+
get id() {
|
|
221
|
+
return this._id;
|
|
222
|
+
}
|
|
223
|
+
withId(id) {
|
|
224
|
+
return id === this._id ? this : new ArrayType_1(id, this._prefix, this._markers, this._elementType, this._annotations, this._dimension, this._type);
|
|
225
|
+
}
|
|
226
|
+
get prefix() {
|
|
227
|
+
return this._prefix;
|
|
228
|
+
}
|
|
229
|
+
withPrefix(prefix) {
|
|
230
|
+
return prefix === this._prefix ? this : new ArrayType_1(this._id, prefix, this._markers, this._elementType, this._annotations, this._dimension, this._type);
|
|
231
|
+
}
|
|
232
|
+
get markers() {
|
|
233
|
+
return this._markers;
|
|
234
|
+
}
|
|
235
|
+
withMarkers(markers) {
|
|
236
|
+
return markers === this._markers ? this : new ArrayType_1(this._id, this._prefix, markers, this._elementType, this._annotations, this._dimension, this._type);
|
|
237
|
+
}
|
|
238
|
+
get elementType() {
|
|
239
|
+
return this._elementType;
|
|
240
|
+
}
|
|
241
|
+
withElementType(elementType) {
|
|
242
|
+
return elementType === this._elementType ? this : new ArrayType_1(this._id, this._prefix, this._markers, elementType, this._annotations, this._dimension, this._type);
|
|
243
|
+
}
|
|
244
|
+
get annotations() {
|
|
245
|
+
return this._annotations;
|
|
246
|
+
}
|
|
247
|
+
withAnnotations(annotations) {
|
|
248
|
+
return annotations === this._annotations ? this : new ArrayType_1(this._id, this._prefix, this._markers, this._elementType, annotations, this._dimension, this._type);
|
|
249
|
+
}
|
|
250
|
+
get dimension() {
|
|
251
|
+
return this._dimension;
|
|
252
|
+
}
|
|
253
|
+
withDimension(dimension) {
|
|
254
|
+
return dimension === this._dimension ? this : new ArrayType_1(this._id, this._prefix, this._markers, this._elementType, this._annotations, dimension, this._type);
|
|
255
|
+
}
|
|
256
|
+
get type() {
|
|
257
|
+
return this._type;
|
|
258
|
+
}
|
|
259
|
+
withType(_type) {
|
|
260
|
+
return _type === this._type ? this : new ArrayType_1(this._id, this._prefix, this._markers, this._elementType, this._annotations, this._dimension, _type);
|
|
261
|
+
}
|
|
262
|
+
acceptJava(v, p) {
|
|
263
|
+
return v.visitArrayType(this, p);
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
exports.ArrayType = ArrayType;
|
|
267
|
+
exports.ArrayType = ArrayType = ArrayType_1 = __decorate([
|
|
268
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$ArrayType")
|
|
269
|
+
], ArrayType);
|
|
270
|
+
let Assert = Assert_1 = class Assert extends (0, support_types_1.JMixin)(Object) {
|
|
271
|
+
constructor(id, prefix, markers, condition, detail) {
|
|
272
|
+
super();
|
|
273
|
+
this._id = id;
|
|
274
|
+
this._prefix = prefix;
|
|
275
|
+
this._markers = markers;
|
|
276
|
+
this._condition = condition;
|
|
277
|
+
this._detail = detail;
|
|
278
|
+
}
|
|
279
|
+
get id() {
|
|
280
|
+
return this._id;
|
|
281
|
+
}
|
|
282
|
+
withId(id) {
|
|
283
|
+
return id === this._id ? this : new Assert_1(id, this._prefix, this._markers, this._condition, this._detail);
|
|
284
|
+
}
|
|
285
|
+
get prefix() {
|
|
286
|
+
return this._prefix;
|
|
287
|
+
}
|
|
288
|
+
withPrefix(prefix) {
|
|
289
|
+
return prefix === this._prefix ? this : new Assert_1(this._id, prefix, this._markers, this._condition, this._detail);
|
|
290
|
+
}
|
|
291
|
+
get markers() {
|
|
292
|
+
return this._markers;
|
|
293
|
+
}
|
|
294
|
+
withMarkers(markers) {
|
|
295
|
+
return markers === this._markers ? this : new Assert_1(this._id, this._prefix, markers, this._condition, this._detail);
|
|
296
|
+
}
|
|
297
|
+
get condition() {
|
|
298
|
+
return this._condition;
|
|
299
|
+
}
|
|
300
|
+
withCondition(condition) {
|
|
301
|
+
return condition === this._condition ? this : new Assert_1(this._id, this._prefix, this._markers, condition, this._detail);
|
|
302
|
+
}
|
|
303
|
+
get detail() {
|
|
304
|
+
return this._detail;
|
|
305
|
+
}
|
|
306
|
+
withDetail(detail) {
|
|
307
|
+
return detail === this._detail ? this : new Assert_1(this._id, this._prefix, this._markers, this._condition, detail);
|
|
308
|
+
}
|
|
309
|
+
acceptJava(v, p) {
|
|
310
|
+
return v.visitAssert(this, p);
|
|
311
|
+
}
|
|
312
|
+
};
|
|
313
|
+
exports.Assert = Assert;
|
|
314
|
+
exports.Assert = Assert = Assert_1 = __decorate([
|
|
315
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Assert")
|
|
316
|
+
], Assert);
|
|
317
|
+
let Assignment = Assignment_1 = class Assignment extends (0, support_types_1.JMixin)(Object) {
|
|
318
|
+
constructor(id, prefix, markers, variable, assignment, _type) {
|
|
319
|
+
super();
|
|
320
|
+
this._id = id;
|
|
321
|
+
this._prefix = prefix;
|
|
322
|
+
this._markers = markers;
|
|
323
|
+
this._variable = variable;
|
|
324
|
+
this._assignment = assignment;
|
|
325
|
+
this._type = _type;
|
|
326
|
+
}
|
|
327
|
+
get id() {
|
|
328
|
+
return this._id;
|
|
329
|
+
}
|
|
330
|
+
withId(id) {
|
|
331
|
+
return id === this._id ? this : new Assignment_1(id, this._prefix, this._markers, this._variable, this._assignment, this._type);
|
|
332
|
+
}
|
|
333
|
+
get prefix() {
|
|
334
|
+
return this._prefix;
|
|
335
|
+
}
|
|
336
|
+
withPrefix(prefix) {
|
|
337
|
+
return prefix === this._prefix ? this : new Assignment_1(this._id, prefix, this._markers, this._variable, this._assignment, this._type);
|
|
338
|
+
}
|
|
339
|
+
get markers() {
|
|
340
|
+
return this._markers;
|
|
341
|
+
}
|
|
342
|
+
withMarkers(markers) {
|
|
343
|
+
return markers === this._markers ? this : new Assignment_1(this._id, this._prefix, markers, this._variable, this._assignment, this._type);
|
|
344
|
+
}
|
|
345
|
+
get variable() {
|
|
346
|
+
return this._variable;
|
|
347
|
+
}
|
|
348
|
+
withVariable(variable) {
|
|
349
|
+
return variable === this._variable ? this : new Assignment_1(this._id, this._prefix, this._markers, variable, this._assignment, this._type);
|
|
350
|
+
}
|
|
351
|
+
get assignment() {
|
|
352
|
+
return this._assignment.element;
|
|
353
|
+
}
|
|
354
|
+
withAssignment(assignment) {
|
|
355
|
+
return this.padding.withAssignment(this._assignment.withElement(assignment));
|
|
356
|
+
}
|
|
357
|
+
get type() {
|
|
358
|
+
return this._type;
|
|
359
|
+
}
|
|
360
|
+
withType(_type) {
|
|
361
|
+
return _type === this._type ? this : new Assignment_1(this._id, this._prefix, this._markers, this._variable, this._assignment, _type);
|
|
362
|
+
}
|
|
363
|
+
acceptJava(v, p) {
|
|
364
|
+
return v.visitAssignment(this, p);
|
|
365
|
+
}
|
|
366
|
+
get padding() {
|
|
367
|
+
const t = this;
|
|
368
|
+
return new class {
|
|
369
|
+
get assignment() {
|
|
370
|
+
return t._assignment;
|
|
371
|
+
}
|
|
372
|
+
withAssignment(assignment) {
|
|
373
|
+
return t._assignment === assignment ? t : new Assignment_1(t._id, t._prefix, t._markers, t._variable, assignment, t._type);
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
};
|
|
378
|
+
exports.Assignment = Assignment;
|
|
379
|
+
exports.Assignment = Assignment = Assignment_1 = __decorate([
|
|
380
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Assignment")
|
|
381
|
+
], Assignment);
|
|
382
|
+
let AssignmentOperation = AssignmentOperation_1 = class AssignmentOperation extends (0, support_types_1.JMixin)(Object) {
|
|
383
|
+
constructor(id, prefix, markers, variable, operator, assignment, _type) {
|
|
384
|
+
super();
|
|
385
|
+
this._id = id;
|
|
386
|
+
this._prefix = prefix;
|
|
387
|
+
this._markers = markers;
|
|
388
|
+
this._variable = variable;
|
|
389
|
+
this._operator = operator;
|
|
390
|
+
this._assignment = assignment;
|
|
391
|
+
this._type = _type;
|
|
392
|
+
}
|
|
393
|
+
get id() {
|
|
394
|
+
return this._id;
|
|
395
|
+
}
|
|
396
|
+
withId(id) {
|
|
397
|
+
return id === this._id ? this : new AssignmentOperation_1(id, this._prefix, this._markers, this._variable, this._operator, this._assignment, this._type);
|
|
398
|
+
}
|
|
399
|
+
get prefix() {
|
|
400
|
+
return this._prefix;
|
|
401
|
+
}
|
|
402
|
+
withPrefix(prefix) {
|
|
403
|
+
return prefix === this._prefix ? this : new AssignmentOperation_1(this._id, prefix, this._markers, this._variable, this._operator, this._assignment, this._type);
|
|
404
|
+
}
|
|
405
|
+
get markers() {
|
|
406
|
+
return this._markers;
|
|
407
|
+
}
|
|
408
|
+
withMarkers(markers) {
|
|
409
|
+
return markers === this._markers ? this : new AssignmentOperation_1(this._id, this._prefix, markers, this._variable, this._operator, this._assignment, this._type);
|
|
410
|
+
}
|
|
411
|
+
get variable() {
|
|
412
|
+
return this._variable;
|
|
413
|
+
}
|
|
414
|
+
withVariable(variable) {
|
|
415
|
+
return variable === this._variable ? this : new AssignmentOperation_1(this._id, this._prefix, this._markers, variable, this._operator, this._assignment, this._type);
|
|
416
|
+
}
|
|
417
|
+
get operator() {
|
|
418
|
+
return this._operator.element;
|
|
419
|
+
}
|
|
420
|
+
withOperator(operator) {
|
|
421
|
+
return this.padding.withOperator(this._operator.withElement(operator));
|
|
422
|
+
}
|
|
423
|
+
get assignment() {
|
|
424
|
+
return this._assignment;
|
|
425
|
+
}
|
|
426
|
+
withAssignment(assignment) {
|
|
427
|
+
return assignment === this._assignment ? this : new AssignmentOperation_1(this._id, this._prefix, this._markers, this._variable, this._operator, assignment, this._type);
|
|
428
|
+
}
|
|
429
|
+
get type() {
|
|
430
|
+
return this._type;
|
|
431
|
+
}
|
|
432
|
+
withType(_type) {
|
|
433
|
+
return _type === this._type ? this : new AssignmentOperation_1(this._id, this._prefix, this._markers, this._variable, this._operator, this._assignment, _type);
|
|
434
|
+
}
|
|
435
|
+
acceptJava(v, p) {
|
|
436
|
+
return v.visitAssignmentOperation(this, p);
|
|
437
|
+
}
|
|
438
|
+
get padding() {
|
|
439
|
+
const t = this;
|
|
440
|
+
return new class {
|
|
441
|
+
get operator() {
|
|
442
|
+
return t._operator;
|
|
443
|
+
}
|
|
444
|
+
withOperator(operator) {
|
|
445
|
+
return t._operator === operator ? t : new AssignmentOperation_1(t._id, t._prefix, t._markers, t._variable, operator, t._assignment, t._type);
|
|
446
|
+
}
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
};
|
|
450
|
+
exports.AssignmentOperation = AssignmentOperation;
|
|
451
|
+
exports.AssignmentOperation = AssignmentOperation = AssignmentOperation_1 = __decorate([
|
|
452
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$AssignmentOperation")
|
|
453
|
+
], AssignmentOperation);
|
|
454
|
+
(function (AssignmentOperation) {
|
|
455
|
+
let Type;
|
|
456
|
+
(function (Type) {
|
|
457
|
+
Type[Type["Addition"] = 0] = "Addition";
|
|
458
|
+
Type[Type["BitAnd"] = 1] = "BitAnd";
|
|
459
|
+
Type[Type["BitOr"] = 2] = "BitOr";
|
|
460
|
+
Type[Type["BitXor"] = 3] = "BitXor";
|
|
461
|
+
Type[Type["Division"] = 4] = "Division";
|
|
462
|
+
Type[Type["Exponentiation"] = 5] = "Exponentiation";
|
|
463
|
+
Type[Type["FloorDivision"] = 6] = "FloorDivision";
|
|
464
|
+
Type[Type["LeftShift"] = 7] = "LeftShift";
|
|
465
|
+
Type[Type["MatrixMultiplication"] = 8] = "MatrixMultiplication";
|
|
466
|
+
Type[Type["Modulo"] = 9] = "Modulo";
|
|
467
|
+
Type[Type["Multiplication"] = 10] = "Multiplication";
|
|
468
|
+
Type[Type["RightShift"] = 11] = "RightShift";
|
|
469
|
+
Type[Type["Subtraction"] = 12] = "Subtraction";
|
|
470
|
+
Type[Type["UnsignedRightShift"] = 13] = "UnsignedRightShift";
|
|
471
|
+
})(Type = AssignmentOperation.Type || (AssignmentOperation.Type = {}));
|
|
472
|
+
})(AssignmentOperation || (exports.AssignmentOperation = AssignmentOperation = {}));
|
|
473
|
+
let Binary = Binary_1 = class Binary extends (0, support_types_1.JMixin)(Object) {
|
|
474
|
+
constructor(id, prefix, markers, left, operator, right, _type) {
|
|
475
|
+
super();
|
|
476
|
+
this._id = id;
|
|
477
|
+
this._prefix = prefix;
|
|
478
|
+
this._markers = markers;
|
|
479
|
+
this._left = left;
|
|
480
|
+
this._operator = operator;
|
|
481
|
+
this._right = right;
|
|
482
|
+
this._type = _type;
|
|
483
|
+
}
|
|
484
|
+
get id() {
|
|
485
|
+
return this._id;
|
|
486
|
+
}
|
|
487
|
+
withId(id) {
|
|
488
|
+
return id === this._id ? this : new Binary_1(id, this._prefix, this._markers, this._left, this._operator, this._right, this._type);
|
|
489
|
+
}
|
|
490
|
+
get prefix() {
|
|
491
|
+
return this._prefix;
|
|
492
|
+
}
|
|
493
|
+
withPrefix(prefix) {
|
|
494
|
+
return prefix === this._prefix ? this : new Binary_1(this._id, prefix, this._markers, this._left, this._operator, this._right, this._type);
|
|
495
|
+
}
|
|
496
|
+
get markers() {
|
|
497
|
+
return this._markers;
|
|
498
|
+
}
|
|
499
|
+
withMarkers(markers) {
|
|
500
|
+
return markers === this._markers ? this : new Binary_1(this._id, this._prefix, markers, this._left, this._operator, this._right, this._type);
|
|
501
|
+
}
|
|
502
|
+
get left() {
|
|
503
|
+
return this._left;
|
|
504
|
+
}
|
|
505
|
+
withLeft(left) {
|
|
506
|
+
return left === this._left ? this : new Binary_1(this._id, this._prefix, this._markers, left, this._operator, this._right, this._type);
|
|
507
|
+
}
|
|
508
|
+
get operator() {
|
|
509
|
+
return this._operator.element;
|
|
510
|
+
}
|
|
511
|
+
withOperator(operator) {
|
|
512
|
+
return this.padding.withOperator(this._operator.withElement(operator));
|
|
513
|
+
}
|
|
514
|
+
get right() {
|
|
515
|
+
return this._right;
|
|
516
|
+
}
|
|
517
|
+
withRight(right) {
|
|
518
|
+
return right === this._right ? this : new Binary_1(this._id, this._prefix, this._markers, this._left, this._operator, right, this._type);
|
|
519
|
+
}
|
|
520
|
+
get type() {
|
|
521
|
+
return this._type;
|
|
522
|
+
}
|
|
523
|
+
withType(_type) {
|
|
524
|
+
return _type === this._type ? this : new Binary_1(this._id, this._prefix, this._markers, this._left, this._operator, this._right, _type);
|
|
525
|
+
}
|
|
526
|
+
acceptJava(v, p) {
|
|
527
|
+
return v.visitBinary(this, p);
|
|
528
|
+
}
|
|
529
|
+
get padding() {
|
|
530
|
+
const t = this;
|
|
531
|
+
return new class {
|
|
532
|
+
get operator() {
|
|
533
|
+
return t._operator;
|
|
534
|
+
}
|
|
535
|
+
withOperator(operator) {
|
|
536
|
+
return t._operator === operator ? t : new Binary_1(t._id, t._prefix, t._markers, t._left, operator, t._right, t._type);
|
|
537
|
+
}
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
};
|
|
541
|
+
exports.Binary = Binary;
|
|
542
|
+
exports.Binary = Binary = Binary_1 = __decorate([
|
|
543
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Binary")
|
|
544
|
+
], Binary);
|
|
545
|
+
(function (Binary) {
|
|
546
|
+
let Type;
|
|
547
|
+
(function (Type) {
|
|
548
|
+
Type[Type["Addition"] = 0] = "Addition";
|
|
549
|
+
Type[Type["Subtraction"] = 1] = "Subtraction";
|
|
550
|
+
Type[Type["Multiplication"] = 2] = "Multiplication";
|
|
551
|
+
Type[Type["Division"] = 3] = "Division";
|
|
552
|
+
Type[Type["Modulo"] = 4] = "Modulo";
|
|
553
|
+
Type[Type["LessThan"] = 5] = "LessThan";
|
|
554
|
+
Type[Type["GreaterThan"] = 6] = "GreaterThan";
|
|
555
|
+
Type[Type["LessThanOrEqual"] = 7] = "LessThanOrEqual";
|
|
556
|
+
Type[Type["GreaterThanOrEqual"] = 8] = "GreaterThanOrEqual";
|
|
557
|
+
Type[Type["Equal"] = 9] = "Equal";
|
|
558
|
+
Type[Type["NotEqual"] = 10] = "NotEqual";
|
|
559
|
+
Type[Type["BitAnd"] = 11] = "BitAnd";
|
|
560
|
+
Type[Type["BitOr"] = 12] = "BitOr";
|
|
561
|
+
Type[Type["BitXor"] = 13] = "BitXor";
|
|
562
|
+
Type[Type["LeftShift"] = 14] = "LeftShift";
|
|
563
|
+
Type[Type["RightShift"] = 15] = "RightShift";
|
|
564
|
+
Type[Type["UnsignedRightShift"] = 16] = "UnsignedRightShift";
|
|
565
|
+
Type[Type["Or"] = 17] = "Or";
|
|
566
|
+
Type[Type["And"] = 18] = "And";
|
|
567
|
+
})(Type = Binary.Type || (Binary.Type = {}));
|
|
568
|
+
})(Binary || (exports.Binary = Binary = {}));
|
|
569
|
+
let Block = Block_1 = class Block extends (0, support_types_1.JMixin)(Object) {
|
|
570
|
+
constructor(id, prefix, markers, _static, statements, end) {
|
|
571
|
+
super();
|
|
572
|
+
this._id = id;
|
|
573
|
+
this._prefix = prefix;
|
|
574
|
+
this._markers = markers;
|
|
575
|
+
this._static = _static;
|
|
576
|
+
this._statements = statements;
|
|
577
|
+
this._end = end;
|
|
578
|
+
}
|
|
579
|
+
get id() {
|
|
580
|
+
return this._id;
|
|
581
|
+
}
|
|
582
|
+
withId(id) {
|
|
583
|
+
return id === this._id ? this : new Block_1(id, this._prefix, this._markers, this._static, this._statements, this._end);
|
|
584
|
+
}
|
|
585
|
+
get prefix() {
|
|
586
|
+
return this._prefix;
|
|
587
|
+
}
|
|
588
|
+
withPrefix(prefix) {
|
|
589
|
+
return prefix === this._prefix ? this : new Block_1(this._id, prefix, this._markers, this._static, this._statements, this._end);
|
|
590
|
+
}
|
|
591
|
+
get markers() {
|
|
592
|
+
return this._markers;
|
|
593
|
+
}
|
|
594
|
+
withMarkers(markers) {
|
|
595
|
+
return markers === this._markers ? this : new Block_1(this._id, this._prefix, markers, this._static, this._statements, this._end);
|
|
596
|
+
}
|
|
597
|
+
get static() {
|
|
598
|
+
return this._static.element;
|
|
599
|
+
}
|
|
600
|
+
withStatic(_static) {
|
|
601
|
+
return this.padding.withStatic(this._static.withElement(_static));
|
|
602
|
+
}
|
|
603
|
+
get statements() {
|
|
604
|
+
return support_types_1.JRightPadded.getElements(this._statements);
|
|
605
|
+
}
|
|
606
|
+
withStatements(statements) {
|
|
607
|
+
return this.padding.withStatements(support_types_1.JRightPadded.withElements(this._statements, statements));
|
|
608
|
+
}
|
|
609
|
+
get end() {
|
|
610
|
+
return this._end;
|
|
611
|
+
}
|
|
612
|
+
withEnd(end) {
|
|
613
|
+
return end === this._end ? this : new Block_1(this._id, this._prefix, this._markers, this._static, this._statements, end);
|
|
614
|
+
}
|
|
615
|
+
acceptJava(v, p) {
|
|
616
|
+
return v.visitBlock(this, p);
|
|
617
|
+
}
|
|
618
|
+
get padding() {
|
|
619
|
+
const t = this;
|
|
620
|
+
return new class {
|
|
621
|
+
get static() {
|
|
622
|
+
return t._static;
|
|
623
|
+
}
|
|
624
|
+
withStatic(_static) {
|
|
625
|
+
return t._static === _static ? t : new Block_1(t._id, t._prefix, t._markers, _static, t._statements, t._end);
|
|
626
|
+
}
|
|
627
|
+
get statements() {
|
|
628
|
+
return t._statements;
|
|
629
|
+
}
|
|
630
|
+
withStatements(statements) {
|
|
631
|
+
return t._statements === statements ? t : new Block_1(t._id, t._prefix, t._markers, t._static, statements, t._end);
|
|
632
|
+
}
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
};
|
|
636
|
+
exports.Block = Block;
|
|
637
|
+
exports.Block = Block = Block_1 = __decorate([
|
|
638
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Block")
|
|
639
|
+
], Block);
|
|
640
|
+
let Break = Break_1 = class Break extends (0, support_types_1.JMixin)(Object) {
|
|
641
|
+
constructor(id, prefix, markers, label) {
|
|
642
|
+
super();
|
|
643
|
+
this._id = id;
|
|
644
|
+
this._prefix = prefix;
|
|
645
|
+
this._markers = markers;
|
|
646
|
+
this._label = label;
|
|
647
|
+
}
|
|
648
|
+
get id() {
|
|
649
|
+
return this._id;
|
|
650
|
+
}
|
|
651
|
+
withId(id) {
|
|
652
|
+
return id === this._id ? this : new Break_1(id, this._prefix, this._markers, this._label);
|
|
653
|
+
}
|
|
654
|
+
get prefix() {
|
|
655
|
+
return this._prefix;
|
|
656
|
+
}
|
|
657
|
+
withPrefix(prefix) {
|
|
658
|
+
return prefix === this._prefix ? this : new Break_1(this._id, prefix, this._markers, this._label);
|
|
659
|
+
}
|
|
660
|
+
get markers() {
|
|
661
|
+
return this._markers;
|
|
662
|
+
}
|
|
663
|
+
withMarkers(markers) {
|
|
664
|
+
return markers === this._markers ? this : new Break_1(this._id, this._prefix, markers, this._label);
|
|
665
|
+
}
|
|
666
|
+
get label() {
|
|
667
|
+
return this._label;
|
|
668
|
+
}
|
|
669
|
+
withLabel(label) {
|
|
670
|
+
return label === this._label ? this : new Break_1(this._id, this._prefix, this._markers, label);
|
|
671
|
+
}
|
|
672
|
+
acceptJava(v, p) {
|
|
673
|
+
return v.visitBreak(this, p);
|
|
674
|
+
}
|
|
675
|
+
};
|
|
676
|
+
exports.Break = Break;
|
|
677
|
+
exports.Break = Break = Break_1 = __decorate([
|
|
678
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Break")
|
|
679
|
+
], Break);
|
|
680
|
+
let Case = Case_1 = class Case extends (0, support_types_1.JMixin)(Object) {
|
|
681
|
+
constructor(id, prefix, markers, _type, expressions, statements, body) {
|
|
682
|
+
super();
|
|
683
|
+
this._id = id;
|
|
684
|
+
this._prefix = prefix;
|
|
685
|
+
this._markers = markers;
|
|
686
|
+
this._type = _type;
|
|
687
|
+
this._expressions = expressions;
|
|
688
|
+
this._statements = statements;
|
|
689
|
+
this._body = body;
|
|
690
|
+
}
|
|
691
|
+
get id() {
|
|
692
|
+
return this._id;
|
|
693
|
+
}
|
|
694
|
+
withId(id) {
|
|
695
|
+
return id === this._id ? this : new Case_1(id, this._prefix, this._markers, this._type, this._expressions, this._statements, this._body);
|
|
696
|
+
}
|
|
697
|
+
get prefix() {
|
|
698
|
+
return this._prefix;
|
|
699
|
+
}
|
|
700
|
+
withPrefix(prefix) {
|
|
701
|
+
return prefix === this._prefix ? this : new Case_1(this._id, prefix, this._markers, this._type, this._expressions, this._statements, this._body);
|
|
702
|
+
}
|
|
703
|
+
get markers() {
|
|
704
|
+
return this._markers;
|
|
705
|
+
}
|
|
706
|
+
withMarkers(markers) {
|
|
707
|
+
return markers === this._markers ? this : new Case_1(this._id, this._prefix, markers, this._type, this._expressions, this._statements, this._body);
|
|
708
|
+
}
|
|
709
|
+
get type() {
|
|
710
|
+
return this._type;
|
|
711
|
+
}
|
|
712
|
+
withType(_type) {
|
|
713
|
+
return _type === this._type ? this : new Case_1(this._id, this._prefix, this._markers, _type, this._expressions, this._statements, this._body);
|
|
714
|
+
}
|
|
715
|
+
get expressions() {
|
|
716
|
+
return this._expressions.elements;
|
|
717
|
+
}
|
|
718
|
+
withExpressions(expressions) {
|
|
719
|
+
return this.padding.withExpressions(support_types_1.JContainer.withElements(this._expressions, expressions));
|
|
720
|
+
}
|
|
721
|
+
get statements() {
|
|
722
|
+
return this._statements.elements;
|
|
723
|
+
}
|
|
724
|
+
withStatements(statements) {
|
|
725
|
+
return this.padding.withStatements(support_types_1.JContainer.withElements(this._statements, statements));
|
|
726
|
+
}
|
|
727
|
+
get body() {
|
|
728
|
+
return this._body === null ? null : this._body.element;
|
|
729
|
+
}
|
|
730
|
+
withBody(body) {
|
|
731
|
+
return this.padding.withBody(support_types_1.JRightPadded.withElement(this._body, body));
|
|
732
|
+
}
|
|
733
|
+
acceptJava(v, p) {
|
|
734
|
+
return v.visitCase(this, p);
|
|
735
|
+
}
|
|
736
|
+
get padding() {
|
|
737
|
+
const t = this;
|
|
738
|
+
return new class {
|
|
739
|
+
get expressions() {
|
|
740
|
+
return t._expressions;
|
|
741
|
+
}
|
|
742
|
+
withExpressions(expressions) {
|
|
743
|
+
return t._expressions === expressions ? t : new Case_1(t._id, t._prefix, t._markers, t._type, expressions, t._statements, t._body);
|
|
744
|
+
}
|
|
745
|
+
get statements() {
|
|
746
|
+
return t._statements;
|
|
747
|
+
}
|
|
748
|
+
withStatements(statements) {
|
|
749
|
+
return t._statements === statements ? t : new Case_1(t._id, t._prefix, t._markers, t._type, t._expressions, statements, t._body);
|
|
750
|
+
}
|
|
751
|
+
get body() {
|
|
752
|
+
return t._body;
|
|
753
|
+
}
|
|
754
|
+
withBody(body) {
|
|
755
|
+
return t._body === body ? t : new Case_1(t._id, t._prefix, t._markers, t._type, t._expressions, t._statements, body);
|
|
756
|
+
}
|
|
757
|
+
};
|
|
758
|
+
}
|
|
759
|
+
};
|
|
760
|
+
exports.Case = Case;
|
|
761
|
+
exports.Case = Case = Case_1 = __decorate([
|
|
762
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Case")
|
|
763
|
+
], Case);
|
|
764
|
+
(function (Case) {
|
|
765
|
+
let Type;
|
|
766
|
+
(function (Type) {
|
|
767
|
+
Type[Type["Statement"] = 0] = "Statement";
|
|
768
|
+
Type[Type["Rule"] = 1] = "Rule";
|
|
769
|
+
})(Type = Case.Type || (Case.Type = {}));
|
|
770
|
+
})(Case || (exports.Case = Case = {}));
|
|
771
|
+
let ClassDeclaration = ClassDeclaration_1 = class ClassDeclaration extends (0, support_types_1.JMixin)(Object) {
|
|
772
|
+
constructor(id, prefix, markers, leadingAnnotations, modifiers, kind, name, typeParameters, primaryConstructor, _extends, _implements, permits, body, _type) {
|
|
773
|
+
super();
|
|
774
|
+
this._id = id;
|
|
775
|
+
this._prefix = prefix;
|
|
776
|
+
this._markers = markers;
|
|
777
|
+
this._leadingAnnotations = leadingAnnotations;
|
|
778
|
+
this._modifiers = modifiers;
|
|
779
|
+
this._kind = kind;
|
|
780
|
+
this._name = name;
|
|
781
|
+
this._typeParameters = typeParameters;
|
|
782
|
+
this._primaryConstructor = primaryConstructor;
|
|
783
|
+
this._extends = _extends;
|
|
784
|
+
this._implements = _implements;
|
|
785
|
+
this._permits = permits;
|
|
786
|
+
this._body = body;
|
|
787
|
+
this._type = _type;
|
|
788
|
+
}
|
|
789
|
+
get id() {
|
|
790
|
+
return this._id;
|
|
791
|
+
}
|
|
792
|
+
withId(id) {
|
|
793
|
+
return id === this._id ? this : new ClassDeclaration_1(id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._kind, this._name, this._typeParameters, this._primaryConstructor, this._extends, this._implements, this._permits, this._body, this._type);
|
|
794
|
+
}
|
|
795
|
+
get prefix() {
|
|
796
|
+
return this._prefix;
|
|
797
|
+
}
|
|
798
|
+
withPrefix(prefix) {
|
|
799
|
+
return prefix === this._prefix ? this : new ClassDeclaration_1(this._id, prefix, this._markers, this._leadingAnnotations, this._modifiers, this._kind, this._name, this._typeParameters, this._primaryConstructor, this._extends, this._implements, this._permits, this._body, this._type);
|
|
800
|
+
}
|
|
801
|
+
get markers() {
|
|
802
|
+
return this._markers;
|
|
803
|
+
}
|
|
804
|
+
withMarkers(markers) {
|
|
805
|
+
return markers === this._markers ? this : new ClassDeclaration_1(this._id, this._prefix, markers, this._leadingAnnotations, this._modifiers, this._kind, this._name, this._typeParameters, this._primaryConstructor, this._extends, this._implements, this._permits, this._body, this._type);
|
|
806
|
+
}
|
|
807
|
+
get leadingAnnotations() {
|
|
808
|
+
return this._leadingAnnotations;
|
|
809
|
+
}
|
|
810
|
+
withLeadingAnnotations(leadingAnnotations) {
|
|
811
|
+
return leadingAnnotations === this._leadingAnnotations ? this : new ClassDeclaration_1(this._id, this._prefix, this._markers, leadingAnnotations, this._modifiers, this._kind, this._name, this._typeParameters, this._primaryConstructor, this._extends, this._implements, this._permits, this._body, this._type);
|
|
812
|
+
}
|
|
813
|
+
get modifiers() {
|
|
814
|
+
return this._modifiers;
|
|
815
|
+
}
|
|
816
|
+
withModifiers(modifiers) {
|
|
817
|
+
return modifiers === this._modifiers ? this : new ClassDeclaration_1(this._id, this._prefix, this._markers, this._leadingAnnotations, modifiers, this._kind, this._name, this._typeParameters, this._primaryConstructor, this._extends, this._implements, this._permits, this._body, this._type);
|
|
818
|
+
}
|
|
819
|
+
withKind(kind) {
|
|
820
|
+
return kind === this._kind ? this : new ClassDeclaration_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, kind, this._name, this._typeParameters, this._primaryConstructor, this._extends, this._implements, this._permits, this._body, this._type);
|
|
821
|
+
}
|
|
822
|
+
get name() {
|
|
823
|
+
return this._name;
|
|
824
|
+
}
|
|
825
|
+
withName(name) {
|
|
826
|
+
return name === this._name ? this : new ClassDeclaration_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._kind, name, this._typeParameters, this._primaryConstructor, this._extends, this._implements, this._permits, this._body, this._type);
|
|
827
|
+
}
|
|
828
|
+
get typeParameters() {
|
|
829
|
+
return this._typeParameters === null ? null : this._typeParameters.elements;
|
|
830
|
+
}
|
|
831
|
+
withTypeParameters(typeParameters) {
|
|
832
|
+
return this.padding.withTypeParameters(support_types_1.JContainer.withElementsNullable(this._typeParameters, typeParameters));
|
|
833
|
+
}
|
|
834
|
+
get primaryConstructor() {
|
|
835
|
+
return this._primaryConstructor === null ? null : this._primaryConstructor.elements;
|
|
836
|
+
}
|
|
837
|
+
withPrimaryConstructor(primaryConstructor) {
|
|
838
|
+
return this.padding.withPrimaryConstructor(support_types_1.JContainer.withElementsNullable(this._primaryConstructor, primaryConstructor));
|
|
839
|
+
}
|
|
840
|
+
get extends() {
|
|
841
|
+
return this._extends === null ? null : this._extends.element;
|
|
842
|
+
}
|
|
843
|
+
withExtends(_extends) {
|
|
844
|
+
return this.padding.withExtends(support_types_1.JLeftPadded.withElement(this._extends, _extends));
|
|
845
|
+
}
|
|
846
|
+
get implements() {
|
|
847
|
+
return this._implements === null ? null : this._implements.elements;
|
|
848
|
+
}
|
|
849
|
+
withImplements(_implements) {
|
|
850
|
+
return this.padding.withImplements(support_types_1.JContainer.withElementsNullable(this._implements, _implements));
|
|
851
|
+
}
|
|
852
|
+
get permits() {
|
|
853
|
+
return this._permits === null ? null : this._permits.elements;
|
|
854
|
+
}
|
|
855
|
+
withPermits(permits) {
|
|
856
|
+
return this.padding.withPermits(support_types_1.JContainer.withElementsNullable(this._permits, permits));
|
|
857
|
+
}
|
|
858
|
+
get body() {
|
|
859
|
+
return this._body;
|
|
860
|
+
}
|
|
861
|
+
withBody(body) {
|
|
862
|
+
return body === this._body ? this : new ClassDeclaration_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._kind, this._name, this._typeParameters, this._primaryConstructor, this._extends, this._implements, this._permits, body, this._type);
|
|
863
|
+
}
|
|
864
|
+
get type() {
|
|
865
|
+
return this._type;
|
|
866
|
+
}
|
|
867
|
+
withType(_type) {
|
|
868
|
+
return _type === this._type ? this : new ClassDeclaration_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._kind, this._name, this._typeParameters, this._primaryConstructor, this._extends, this._implements, this._permits, this._body, _type);
|
|
869
|
+
}
|
|
870
|
+
acceptJava(v, p) {
|
|
871
|
+
return v.visitClassDeclaration(this, p);
|
|
872
|
+
}
|
|
873
|
+
get padding() {
|
|
874
|
+
const t = this;
|
|
875
|
+
return new class {
|
|
876
|
+
get kind() {
|
|
877
|
+
return t._kind;
|
|
878
|
+
}
|
|
879
|
+
withKind(kind) {
|
|
880
|
+
return t._kind === kind ? t : new ClassDeclaration_1(t._id, t._prefix, t._markers, t._leadingAnnotations, t._modifiers, kind, t._name, t._typeParameters, t._primaryConstructor, t._extends, t._implements, t._permits, t._body, t._type);
|
|
881
|
+
}
|
|
882
|
+
get typeParameters() {
|
|
883
|
+
return t._typeParameters;
|
|
884
|
+
}
|
|
885
|
+
withTypeParameters(typeParameters) {
|
|
886
|
+
return t._typeParameters === typeParameters ? t : new ClassDeclaration_1(t._id, t._prefix, t._markers, t._leadingAnnotations, t._modifiers, t._kind, t._name, typeParameters, t._primaryConstructor, t._extends, t._implements, t._permits, t._body, t._type);
|
|
887
|
+
}
|
|
888
|
+
get primaryConstructor() {
|
|
889
|
+
return t._primaryConstructor;
|
|
890
|
+
}
|
|
891
|
+
withPrimaryConstructor(primaryConstructor) {
|
|
892
|
+
return t._primaryConstructor === primaryConstructor ? t : new ClassDeclaration_1(t._id, t._prefix, t._markers, t._leadingAnnotations, t._modifiers, t._kind, t._name, t._typeParameters, primaryConstructor, t._extends, t._implements, t._permits, t._body, t._type);
|
|
893
|
+
}
|
|
894
|
+
get extends() {
|
|
895
|
+
return t._extends;
|
|
896
|
+
}
|
|
897
|
+
withExtends(_extends) {
|
|
898
|
+
return t._extends === _extends ? t : new ClassDeclaration_1(t._id, t._prefix, t._markers, t._leadingAnnotations, t._modifiers, t._kind, t._name, t._typeParameters, t._primaryConstructor, _extends, t._implements, t._permits, t._body, t._type);
|
|
899
|
+
}
|
|
900
|
+
get implements() {
|
|
901
|
+
return t._implements;
|
|
902
|
+
}
|
|
903
|
+
withImplements(_implements) {
|
|
904
|
+
return t._implements === _implements ? t : new ClassDeclaration_1(t._id, t._prefix, t._markers, t._leadingAnnotations, t._modifiers, t._kind, t._name, t._typeParameters, t._primaryConstructor, t._extends, _implements, t._permits, t._body, t._type);
|
|
905
|
+
}
|
|
906
|
+
get permits() {
|
|
907
|
+
return t._permits;
|
|
908
|
+
}
|
|
909
|
+
withPermits(permits) {
|
|
910
|
+
return t._permits === permits ? t : new ClassDeclaration_1(t._id, t._prefix, t._markers, t._leadingAnnotations, t._modifiers, t._kind, t._name, t._typeParameters, t._primaryConstructor, t._extends, t._implements, permits, t._body, t._type);
|
|
911
|
+
}
|
|
912
|
+
};
|
|
913
|
+
}
|
|
914
|
+
};
|
|
915
|
+
exports.ClassDeclaration = ClassDeclaration;
|
|
916
|
+
exports.ClassDeclaration = ClassDeclaration = ClassDeclaration_1 = __decorate([
|
|
917
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$ClassDeclaration")
|
|
918
|
+
], ClassDeclaration);
|
|
919
|
+
(function (ClassDeclaration) {
|
|
920
|
+
let Kind = class Kind extends (0, support_types_1.JMixin)(Object) {
|
|
921
|
+
constructor(id, prefix, markers, annotations, _type) {
|
|
922
|
+
super();
|
|
923
|
+
this._id = id;
|
|
924
|
+
this._prefix = prefix;
|
|
925
|
+
this._markers = markers;
|
|
926
|
+
this._annotations = annotations;
|
|
927
|
+
this._type = _type;
|
|
928
|
+
}
|
|
929
|
+
get id() {
|
|
930
|
+
return this._id;
|
|
931
|
+
}
|
|
932
|
+
withId(id) {
|
|
933
|
+
return id === this._id ? this : new ClassDeclaration.Kind(id, this._prefix, this._markers, this._annotations, this._type);
|
|
934
|
+
}
|
|
935
|
+
get prefix() {
|
|
936
|
+
return this._prefix;
|
|
937
|
+
}
|
|
938
|
+
withPrefix(prefix) {
|
|
939
|
+
return prefix === this._prefix ? this : new ClassDeclaration.Kind(this._id, prefix, this._markers, this._annotations, this._type);
|
|
940
|
+
}
|
|
941
|
+
get markers() {
|
|
942
|
+
return this._markers;
|
|
943
|
+
}
|
|
944
|
+
withMarkers(markers) {
|
|
945
|
+
return markers === this._markers ? this : new ClassDeclaration.Kind(this._id, this._prefix, markers, this._annotations, this._type);
|
|
946
|
+
}
|
|
947
|
+
get annotations() {
|
|
948
|
+
return this._annotations;
|
|
949
|
+
}
|
|
950
|
+
withAnnotations(annotations) {
|
|
951
|
+
return annotations === this._annotations ? this : new ClassDeclaration.Kind(this._id, this._prefix, this._markers, annotations, this._type);
|
|
952
|
+
}
|
|
953
|
+
get type() {
|
|
954
|
+
return this._type;
|
|
955
|
+
}
|
|
956
|
+
withType(_type) {
|
|
957
|
+
return _type === this._type ? this : new ClassDeclaration.Kind(this._id, this._prefix, this._markers, this._annotations, _type);
|
|
958
|
+
}
|
|
959
|
+
acceptJava(v, p) {
|
|
960
|
+
return v.visitClassDeclarationKind(this, p);
|
|
961
|
+
}
|
|
962
|
+
};
|
|
963
|
+
Kind = __decorate([
|
|
964
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$ClassDeclaration$Kind")
|
|
965
|
+
], Kind);
|
|
966
|
+
ClassDeclaration.Kind = Kind;
|
|
967
|
+
(function (Kind) {
|
|
968
|
+
let Type;
|
|
969
|
+
(function (Type) {
|
|
970
|
+
Type[Type["Class"] = 0] = "Class";
|
|
971
|
+
Type[Type["Enum"] = 1] = "Enum";
|
|
972
|
+
Type[Type["Interface"] = 2] = "Interface";
|
|
973
|
+
Type[Type["Annotation"] = 3] = "Annotation";
|
|
974
|
+
Type[Type["Record"] = 4] = "Record";
|
|
975
|
+
Type[Type["Value"] = 5] = "Value";
|
|
976
|
+
})(Type = Kind.Type || (Kind.Type = {}));
|
|
977
|
+
})(Kind = ClassDeclaration.Kind || (ClassDeclaration.Kind = {}));
|
|
978
|
+
})(ClassDeclaration || (exports.ClassDeclaration = ClassDeclaration = {}));
|
|
979
|
+
let CompilationUnit = CompilationUnit_1 = class CompilationUnit extends (0, core_1.SourceFileMixin)((0, support_types_1.JMixin)(Object)) {
|
|
980
|
+
constructor(id, prefix, markers, sourcePath, fileAttributes, charsetName, charsetBomMarked, checksum, packageDeclaration, imports, classes, eof) {
|
|
981
|
+
super();
|
|
982
|
+
this._id = id;
|
|
983
|
+
this._prefix = prefix;
|
|
984
|
+
this._markers = markers;
|
|
985
|
+
this._sourcePath = sourcePath;
|
|
986
|
+
this._fileAttributes = fileAttributes;
|
|
987
|
+
this._charsetName = charsetName;
|
|
988
|
+
this._charsetBomMarked = charsetBomMarked;
|
|
989
|
+
this._checksum = checksum;
|
|
990
|
+
this._packageDeclaration = packageDeclaration;
|
|
991
|
+
this._imports = imports;
|
|
992
|
+
this._classes = classes;
|
|
993
|
+
this._eof = eof;
|
|
994
|
+
}
|
|
995
|
+
get id() {
|
|
996
|
+
return this._id;
|
|
997
|
+
}
|
|
998
|
+
withId(id) {
|
|
999
|
+
return id === this._id ? this : new CompilationUnit_1(id, this._prefix, this._markers, this._sourcePath, this._fileAttributes, this._charsetName, this._charsetBomMarked, this._checksum, this._packageDeclaration, this._imports, this._classes, this._eof);
|
|
1000
|
+
}
|
|
1001
|
+
get prefix() {
|
|
1002
|
+
return this._prefix;
|
|
1003
|
+
}
|
|
1004
|
+
withPrefix(prefix) {
|
|
1005
|
+
return prefix === this._prefix ? this : new CompilationUnit_1(this._id, prefix, this._markers, this._sourcePath, this._fileAttributes, this._charsetName, this._charsetBomMarked, this._checksum, this._packageDeclaration, this._imports, this._classes, this._eof);
|
|
1006
|
+
}
|
|
1007
|
+
get markers() {
|
|
1008
|
+
return this._markers;
|
|
1009
|
+
}
|
|
1010
|
+
withMarkers(markers) {
|
|
1011
|
+
return markers === this._markers ? this : new CompilationUnit_1(this._id, this._prefix, markers, this._sourcePath, this._fileAttributes, this._charsetName, this._charsetBomMarked, this._checksum, this._packageDeclaration, this._imports, this._classes, this._eof);
|
|
1012
|
+
}
|
|
1013
|
+
get sourcePath() {
|
|
1014
|
+
return this._sourcePath;
|
|
1015
|
+
}
|
|
1016
|
+
withSourcePath(sourcePath) {
|
|
1017
|
+
return sourcePath === this._sourcePath ? this : new CompilationUnit_1(this._id, this._prefix, this._markers, sourcePath, this._fileAttributes, this._charsetName, this._charsetBomMarked, this._checksum, this._packageDeclaration, this._imports, this._classes, this._eof);
|
|
1018
|
+
}
|
|
1019
|
+
get fileAttributes() {
|
|
1020
|
+
return this._fileAttributes;
|
|
1021
|
+
}
|
|
1022
|
+
withFileAttributes(fileAttributes) {
|
|
1023
|
+
return fileAttributes === this._fileAttributes ? this : new CompilationUnit_1(this._id, this._prefix, this._markers, this._sourcePath, fileAttributes, this._charsetName, this._charsetBomMarked, this._checksum, this._packageDeclaration, this._imports, this._classes, this._eof);
|
|
1024
|
+
}
|
|
1025
|
+
get charsetName() {
|
|
1026
|
+
return this._charsetName;
|
|
1027
|
+
}
|
|
1028
|
+
withCharsetName(charsetName) {
|
|
1029
|
+
return charsetName === this._charsetName ? this : new CompilationUnit_1(this._id, this._prefix, this._markers, this._sourcePath, this._fileAttributes, charsetName, this._charsetBomMarked, this._checksum, this._packageDeclaration, this._imports, this._classes, this._eof);
|
|
1030
|
+
}
|
|
1031
|
+
get charsetBomMarked() {
|
|
1032
|
+
return this._charsetBomMarked;
|
|
1033
|
+
}
|
|
1034
|
+
withCharsetBomMarked(charsetBomMarked) {
|
|
1035
|
+
return charsetBomMarked === this._charsetBomMarked ? this : new CompilationUnit_1(this._id, this._prefix, this._markers, this._sourcePath, this._fileAttributes, this._charsetName, charsetBomMarked, this._checksum, this._packageDeclaration, this._imports, this._classes, this._eof);
|
|
1036
|
+
}
|
|
1037
|
+
get checksum() {
|
|
1038
|
+
return this._checksum;
|
|
1039
|
+
}
|
|
1040
|
+
withChecksum(checksum) {
|
|
1041
|
+
return checksum === this._checksum ? this : new CompilationUnit_1(this._id, this._prefix, this._markers, this._sourcePath, this._fileAttributes, this._charsetName, this._charsetBomMarked, checksum, this._packageDeclaration, this._imports, this._classes, this._eof);
|
|
1042
|
+
}
|
|
1043
|
+
get packageDeclaration() {
|
|
1044
|
+
return this._packageDeclaration === null ? null : this._packageDeclaration.element;
|
|
1045
|
+
}
|
|
1046
|
+
withPackageDeclaration(packageDeclaration) {
|
|
1047
|
+
return this.padding.withPackageDeclaration(support_types_1.JRightPadded.withElement(this._packageDeclaration, packageDeclaration));
|
|
1048
|
+
}
|
|
1049
|
+
get imports() {
|
|
1050
|
+
return support_types_1.JRightPadded.getElements(this._imports);
|
|
1051
|
+
}
|
|
1052
|
+
withImports(imports) {
|
|
1053
|
+
return this.padding.withImports(support_types_1.JRightPadded.withElements(this._imports, imports));
|
|
1054
|
+
}
|
|
1055
|
+
get classes() {
|
|
1056
|
+
return this._classes;
|
|
1057
|
+
}
|
|
1058
|
+
withClasses(classes) {
|
|
1059
|
+
return classes === this._classes ? this : new CompilationUnit_1(this._id, this._prefix, this._markers, this._sourcePath, this._fileAttributes, this._charsetName, this._charsetBomMarked, this._checksum, this._packageDeclaration, this._imports, classes, this._eof);
|
|
1060
|
+
}
|
|
1061
|
+
get eof() {
|
|
1062
|
+
return this._eof;
|
|
1063
|
+
}
|
|
1064
|
+
withEof(eof) {
|
|
1065
|
+
return eof === this._eof ? this : new CompilationUnit_1(this._id, this._prefix, this._markers, this._sourcePath, this._fileAttributes, this._charsetName, this._charsetBomMarked, this._checksum, this._packageDeclaration, this._imports, this._classes, eof);
|
|
1066
|
+
}
|
|
1067
|
+
printer(cursor) {
|
|
1068
|
+
return core_1.PrinterFactory.current.createPrinter(cursor);
|
|
1069
|
+
}
|
|
1070
|
+
acceptJava(v, p) {
|
|
1071
|
+
return v.visitCompilationUnit(this, p);
|
|
1072
|
+
}
|
|
1073
|
+
get padding() {
|
|
1074
|
+
const t = this;
|
|
1075
|
+
return new class {
|
|
1076
|
+
get packageDeclaration() {
|
|
1077
|
+
return t._packageDeclaration;
|
|
1078
|
+
}
|
|
1079
|
+
withPackageDeclaration(packageDeclaration) {
|
|
1080
|
+
return t._packageDeclaration === packageDeclaration ? t : new CompilationUnit_1(t._id, t._prefix, t._markers, t._sourcePath, t._fileAttributes, t._charsetName, t._charsetBomMarked, t._checksum, packageDeclaration, t._imports, t._classes, t._eof);
|
|
1081
|
+
}
|
|
1082
|
+
get imports() {
|
|
1083
|
+
return t._imports;
|
|
1084
|
+
}
|
|
1085
|
+
withImports(imports) {
|
|
1086
|
+
return t._imports === imports ? t : new CompilationUnit_1(t._id, t._prefix, t._markers, t._sourcePath, t._fileAttributes, t._charsetName, t._charsetBomMarked, t._checksum, t._packageDeclaration, imports, t._classes, t._eof);
|
|
1087
|
+
}
|
|
1088
|
+
};
|
|
1089
|
+
}
|
|
1090
|
+
};
|
|
1091
|
+
exports.CompilationUnit = CompilationUnit;
|
|
1092
|
+
exports.CompilationUnit = CompilationUnit = CompilationUnit_1 = __decorate([
|
|
1093
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$CompilationUnit")
|
|
1094
|
+
], CompilationUnit);
|
|
1095
|
+
let Continue = Continue_1 = class Continue extends (0, support_types_1.JMixin)(Object) {
|
|
1096
|
+
constructor(id, prefix, markers, label) {
|
|
1097
|
+
super();
|
|
1098
|
+
this._id = id;
|
|
1099
|
+
this._prefix = prefix;
|
|
1100
|
+
this._markers = markers;
|
|
1101
|
+
this._label = label;
|
|
1102
|
+
}
|
|
1103
|
+
get id() {
|
|
1104
|
+
return this._id;
|
|
1105
|
+
}
|
|
1106
|
+
withId(id) {
|
|
1107
|
+
return id === this._id ? this : new Continue_1(id, this._prefix, this._markers, this._label);
|
|
1108
|
+
}
|
|
1109
|
+
get prefix() {
|
|
1110
|
+
return this._prefix;
|
|
1111
|
+
}
|
|
1112
|
+
withPrefix(prefix) {
|
|
1113
|
+
return prefix === this._prefix ? this : new Continue_1(this._id, prefix, this._markers, this._label);
|
|
1114
|
+
}
|
|
1115
|
+
get markers() {
|
|
1116
|
+
return this._markers;
|
|
1117
|
+
}
|
|
1118
|
+
withMarkers(markers) {
|
|
1119
|
+
return markers === this._markers ? this : new Continue_1(this._id, this._prefix, markers, this._label);
|
|
1120
|
+
}
|
|
1121
|
+
get label() {
|
|
1122
|
+
return this._label;
|
|
1123
|
+
}
|
|
1124
|
+
withLabel(label) {
|
|
1125
|
+
return label === this._label ? this : new Continue_1(this._id, this._prefix, this._markers, label);
|
|
1126
|
+
}
|
|
1127
|
+
acceptJava(v, p) {
|
|
1128
|
+
return v.visitContinue(this, p);
|
|
1129
|
+
}
|
|
1130
|
+
};
|
|
1131
|
+
exports.Continue = Continue;
|
|
1132
|
+
exports.Continue = Continue = Continue_1 = __decorate([
|
|
1133
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Continue")
|
|
1134
|
+
], Continue);
|
|
1135
|
+
let DoWhileLoop = DoWhileLoop_1 = class DoWhileLoop extends (0, support_types_1.JMixin)(Object) {
|
|
1136
|
+
constructor(id, prefix, markers, body, whileCondition) {
|
|
1137
|
+
super();
|
|
1138
|
+
this._id = id;
|
|
1139
|
+
this._prefix = prefix;
|
|
1140
|
+
this._markers = markers;
|
|
1141
|
+
this._body = body;
|
|
1142
|
+
this._whileCondition = whileCondition;
|
|
1143
|
+
}
|
|
1144
|
+
get id() {
|
|
1145
|
+
return this._id;
|
|
1146
|
+
}
|
|
1147
|
+
withId(id) {
|
|
1148
|
+
return id === this._id ? this : new DoWhileLoop_1(id, this._prefix, this._markers, this._body, this._whileCondition);
|
|
1149
|
+
}
|
|
1150
|
+
get prefix() {
|
|
1151
|
+
return this._prefix;
|
|
1152
|
+
}
|
|
1153
|
+
withPrefix(prefix) {
|
|
1154
|
+
return prefix === this._prefix ? this : new DoWhileLoop_1(this._id, prefix, this._markers, this._body, this._whileCondition);
|
|
1155
|
+
}
|
|
1156
|
+
get markers() {
|
|
1157
|
+
return this._markers;
|
|
1158
|
+
}
|
|
1159
|
+
withMarkers(markers) {
|
|
1160
|
+
return markers === this._markers ? this : new DoWhileLoop_1(this._id, this._prefix, markers, this._body, this._whileCondition);
|
|
1161
|
+
}
|
|
1162
|
+
get body() {
|
|
1163
|
+
return this._body.element;
|
|
1164
|
+
}
|
|
1165
|
+
withBody(body) {
|
|
1166
|
+
return this.padding.withBody(this._body.withElement(body));
|
|
1167
|
+
}
|
|
1168
|
+
get whileCondition() {
|
|
1169
|
+
return this._whileCondition.element;
|
|
1170
|
+
}
|
|
1171
|
+
withWhileCondition(whileCondition) {
|
|
1172
|
+
return this.padding.withWhileCondition(this._whileCondition.withElement(whileCondition));
|
|
1173
|
+
}
|
|
1174
|
+
acceptJava(v, p) {
|
|
1175
|
+
return v.visitDoWhileLoop(this, p);
|
|
1176
|
+
}
|
|
1177
|
+
get padding() {
|
|
1178
|
+
const t = this;
|
|
1179
|
+
return new class {
|
|
1180
|
+
get body() {
|
|
1181
|
+
return t._body;
|
|
1182
|
+
}
|
|
1183
|
+
withBody(body) {
|
|
1184
|
+
return t._body === body ? t : new DoWhileLoop_1(t._id, t._prefix, t._markers, body, t._whileCondition);
|
|
1185
|
+
}
|
|
1186
|
+
get whileCondition() {
|
|
1187
|
+
return t._whileCondition;
|
|
1188
|
+
}
|
|
1189
|
+
withWhileCondition(whileCondition) {
|
|
1190
|
+
return t._whileCondition === whileCondition ? t : new DoWhileLoop_1(t._id, t._prefix, t._markers, t._body, whileCondition);
|
|
1191
|
+
}
|
|
1192
|
+
};
|
|
1193
|
+
}
|
|
1194
|
+
};
|
|
1195
|
+
exports.DoWhileLoop = DoWhileLoop;
|
|
1196
|
+
exports.DoWhileLoop = DoWhileLoop = DoWhileLoop_1 = __decorate([
|
|
1197
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$DoWhileLoop")
|
|
1198
|
+
], DoWhileLoop);
|
|
1199
|
+
let Empty = Empty_1 = class Empty extends (0, support_types_1.JMixin)(Object) {
|
|
1200
|
+
constructor(id, prefix, markers) {
|
|
1201
|
+
super();
|
|
1202
|
+
this._id = id;
|
|
1203
|
+
this._prefix = prefix;
|
|
1204
|
+
this._markers = markers;
|
|
1205
|
+
}
|
|
1206
|
+
get id() {
|
|
1207
|
+
return this._id;
|
|
1208
|
+
}
|
|
1209
|
+
withId(id) {
|
|
1210
|
+
return id === this._id ? this : new Empty_1(id, this._prefix, this._markers);
|
|
1211
|
+
}
|
|
1212
|
+
get prefix() {
|
|
1213
|
+
return this._prefix;
|
|
1214
|
+
}
|
|
1215
|
+
withPrefix(prefix) {
|
|
1216
|
+
return prefix === this._prefix ? this : new Empty_1(this._id, prefix, this._markers);
|
|
1217
|
+
}
|
|
1218
|
+
get markers() {
|
|
1219
|
+
return this._markers;
|
|
1220
|
+
}
|
|
1221
|
+
withMarkers(markers) {
|
|
1222
|
+
return markers === this._markers ? this : new Empty_1(this._id, this._prefix, markers);
|
|
1223
|
+
}
|
|
1224
|
+
acceptJava(v, p) {
|
|
1225
|
+
return v.visitEmpty(this, p);
|
|
1226
|
+
}
|
|
1227
|
+
get type() {
|
|
1228
|
+
return extensions.getJavaType(this);
|
|
1229
|
+
}
|
|
1230
|
+
withType(type) {
|
|
1231
|
+
return extensions.withJavaType(this, type);
|
|
1232
|
+
}
|
|
1233
|
+
};
|
|
1234
|
+
exports.Empty = Empty;
|
|
1235
|
+
exports.Empty = Empty = Empty_1 = __decorate([
|
|
1236
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Empty")
|
|
1237
|
+
], Empty);
|
|
1238
|
+
let EnumValue = EnumValue_1 = class EnumValue extends (0, support_types_1.JMixin)(Object) {
|
|
1239
|
+
constructor(id, prefix, markers, annotations, name, initializer) {
|
|
1240
|
+
super();
|
|
1241
|
+
this._id = id;
|
|
1242
|
+
this._prefix = prefix;
|
|
1243
|
+
this._markers = markers;
|
|
1244
|
+
this._annotations = annotations;
|
|
1245
|
+
this._name = name;
|
|
1246
|
+
this._initializer = initializer;
|
|
1247
|
+
}
|
|
1248
|
+
get id() {
|
|
1249
|
+
return this._id;
|
|
1250
|
+
}
|
|
1251
|
+
withId(id) {
|
|
1252
|
+
return id === this._id ? this : new EnumValue_1(id, this._prefix, this._markers, this._annotations, this._name, this._initializer);
|
|
1253
|
+
}
|
|
1254
|
+
get prefix() {
|
|
1255
|
+
return this._prefix;
|
|
1256
|
+
}
|
|
1257
|
+
withPrefix(prefix) {
|
|
1258
|
+
return prefix === this._prefix ? this : new EnumValue_1(this._id, prefix, this._markers, this._annotations, this._name, this._initializer);
|
|
1259
|
+
}
|
|
1260
|
+
get markers() {
|
|
1261
|
+
return this._markers;
|
|
1262
|
+
}
|
|
1263
|
+
withMarkers(markers) {
|
|
1264
|
+
return markers === this._markers ? this : new EnumValue_1(this._id, this._prefix, markers, this._annotations, this._name, this._initializer);
|
|
1265
|
+
}
|
|
1266
|
+
get annotations() {
|
|
1267
|
+
return this._annotations;
|
|
1268
|
+
}
|
|
1269
|
+
withAnnotations(annotations) {
|
|
1270
|
+
return annotations === this._annotations ? this : new EnumValue_1(this._id, this._prefix, this._markers, annotations, this._name, this._initializer);
|
|
1271
|
+
}
|
|
1272
|
+
get name() {
|
|
1273
|
+
return this._name;
|
|
1274
|
+
}
|
|
1275
|
+
withName(name) {
|
|
1276
|
+
return name === this._name ? this : new EnumValue_1(this._id, this._prefix, this._markers, this._annotations, name, this._initializer);
|
|
1277
|
+
}
|
|
1278
|
+
get initializer() {
|
|
1279
|
+
return this._initializer;
|
|
1280
|
+
}
|
|
1281
|
+
withInitializer(initializer) {
|
|
1282
|
+
return initializer === this._initializer ? this : new EnumValue_1(this._id, this._prefix, this._markers, this._annotations, this._name, initializer);
|
|
1283
|
+
}
|
|
1284
|
+
acceptJava(v, p) {
|
|
1285
|
+
return v.visitEnumValue(this, p);
|
|
1286
|
+
}
|
|
1287
|
+
};
|
|
1288
|
+
exports.EnumValue = EnumValue;
|
|
1289
|
+
exports.EnumValue = EnumValue = EnumValue_1 = __decorate([
|
|
1290
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$EnumValue")
|
|
1291
|
+
], EnumValue);
|
|
1292
|
+
let EnumValueSet = EnumValueSet_1 = class EnumValueSet extends (0, support_types_1.JMixin)(Object) {
|
|
1293
|
+
constructor(id, prefix, markers, enums, terminatedWithSemicolon) {
|
|
1294
|
+
super();
|
|
1295
|
+
this._id = id;
|
|
1296
|
+
this._prefix = prefix;
|
|
1297
|
+
this._markers = markers;
|
|
1298
|
+
this._enums = enums;
|
|
1299
|
+
this._terminatedWithSemicolon = terminatedWithSemicolon;
|
|
1300
|
+
}
|
|
1301
|
+
get id() {
|
|
1302
|
+
return this._id;
|
|
1303
|
+
}
|
|
1304
|
+
withId(id) {
|
|
1305
|
+
return id === this._id ? this : new EnumValueSet_1(id, this._prefix, this._markers, this._enums, this._terminatedWithSemicolon);
|
|
1306
|
+
}
|
|
1307
|
+
get prefix() {
|
|
1308
|
+
return this._prefix;
|
|
1309
|
+
}
|
|
1310
|
+
withPrefix(prefix) {
|
|
1311
|
+
return prefix === this._prefix ? this : new EnumValueSet_1(this._id, prefix, this._markers, this._enums, this._terminatedWithSemicolon);
|
|
1312
|
+
}
|
|
1313
|
+
get markers() {
|
|
1314
|
+
return this._markers;
|
|
1315
|
+
}
|
|
1316
|
+
withMarkers(markers) {
|
|
1317
|
+
return markers === this._markers ? this : new EnumValueSet_1(this._id, this._prefix, markers, this._enums, this._terminatedWithSemicolon);
|
|
1318
|
+
}
|
|
1319
|
+
get enums() {
|
|
1320
|
+
return support_types_1.JRightPadded.getElements(this._enums);
|
|
1321
|
+
}
|
|
1322
|
+
withEnums(enums) {
|
|
1323
|
+
return this.padding.withEnums(support_types_1.JRightPadded.withElements(this._enums, enums));
|
|
1324
|
+
}
|
|
1325
|
+
get terminatedWithSemicolon() {
|
|
1326
|
+
return this._terminatedWithSemicolon;
|
|
1327
|
+
}
|
|
1328
|
+
withTerminatedWithSemicolon(terminatedWithSemicolon) {
|
|
1329
|
+
return terminatedWithSemicolon === this._terminatedWithSemicolon ? this : new EnumValueSet_1(this._id, this._prefix, this._markers, this._enums, terminatedWithSemicolon);
|
|
1330
|
+
}
|
|
1331
|
+
acceptJava(v, p) {
|
|
1332
|
+
return v.visitEnumValueSet(this, p);
|
|
1333
|
+
}
|
|
1334
|
+
get padding() {
|
|
1335
|
+
const t = this;
|
|
1336
|
+
return new class {
|
|
1337
|
+
get enums() {
|
|
1338
|
+
return t._enums;
|
|
1339
|
+
}
|
|
1340
|
+
withEnums(enums) {
|
|
1341
|
+
return t._enums === enums ? t : new EnumValueSet_1(t._id, t._prefix, t._markers, enums, t._terminatedWithSemicolon);
|
|
1342
|
+
}
|
|
1343
|
+
};
|
|
1344
|
+
}
|
|
1345
|
+
};
|
|
1346
|
+
exports.EnumValueSet = EnumValueSet;
|
|
1347
|
+
exports.EnumValueSet = EnumValueSet = EnumValueSet_1 = __decorate([
|
|
1348
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$EnumValueSet")
|
|
1349
|
+
], EnumValueSet);
|
|
1350
|
+
let FieldAccess = FieldAccess_1 = class FieldAccess extends (0, support_types_1.JMixin)(Object) {
|
|
1351
|
+
constructor(id, prefix, markers, target, name, _type) {
|
|
1352
|
+
super();
|
|
1353
|
+
this._id = id;
|
|
1354
|
+
this._prefix = prefix;
|
|
1355
|
+
this._markers = markers;
|
|
1356
|
+
this._target = target;
|
|
1357
|
+
this._name = name;
|
|
1358
|
+
this._type = _type;
|
|
1359
|
+
}
|
|
1360
|
+
get id() {
|
|
1361
|
+
return this._id;
|
|
1362
|
+
}
|
|
1363
|
+
withId(id) {
|
|
1364
|
+
return id === this._id ? this : new FieldAccess_1(id, this._prefix, this._markers, this._target, this._name, this._type);
|
|
1365
|
+
}
|
|
1366
|
+
get prefix() {
|
|
1367
|
+
return this._prefix;
|
|
1368
|
+
}
|
|
1369
|
+
withPrefix(prefix) {
|
|
1370
|
+
return prefix === this._prefix ? this : new FieldAccess_1(this._id, prefix, this._markers, this._target, this._name, this._type);
|
|
1371
|
+
}
|
|
1372
|
+
get markers() {
|
|
1373
|
+
return this._markers;
|
|
1374
|
+
}
|
|
1375
|
+
withMarkers(markers) {
|
|
1376
|
+
return markers === this._markers ? this : new FieldAccess_1(this._id, this._prefix, markers, this._target, this._name, this._type);
|
|
1377
|
+
}
|
|
1378
|
+
get target() {
|
|
1379
|
+
return this._target;
|
|
1380
|
+
}
|
|
1381
|
+
withTarget(target) {
|
|
1382
|
+
return target === this._target ? this : new FieldAccess_1(this._id, this._prefix, this._markers, target, this._name, this._type);
|
|
1383
|
+
}
|
|
1384
|
+
get name() {
|
|
1385
|
+
return this._name.element;
|
|
1386
|
+
}
|
|
1387
|
+
withName(name) {
|
|
1388
|
+
return this.padding.withName(this._name.withElement(name));
|
|
1389
|
+
}
|
|
1390
|
+
get type() {
|
|
1391
|
+
return this._type;
|
|
1392
|
+
}
|
|
1393
|
+
withType(_type) {
|
|
1394
|
+
return _type === this._type ? this : new FieldAccess_1(this._id, this._prefix, this._markers, this._target, this._name, _type);
|
|
1395
|
+
}
|
|
1396
|
+
acceptJava(v, p) {
|
|
1397
|
+
return v.visitFieldAccess(this, p);
|
|
1398
|
+
}
|
|
1399
|
+
get padding() {
|
|
1400
|
+
const t = this;
|
|
1401
|
+
return new class {
|
|
1402
|
+
get name() {
|
|
1403
|
+
return t._name;
|
|
1404
|
+
}
|
|
1405
|
+
withName(name) {
|
|
1406
|
+
return t._name === name ? t : new FieldAccess_1(t._id, t._prefix, t._markers, t._target, name, t._type);
|
|
1407
|
+
}
|
|
1408
|
+
};
|
|
1409
|
+
}
|
|
1410
|
+
};
|
|
1411
|
+
exports.FieldAccess = FieldAccess;
|
|
1412
|
+
exports.FieldAccess = FieldAccess = FieldAccess_1 = __decorate([
|
|
1413
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$FieldAccess")
|
|
1414
|
+
], FieldAccess);
|
|
1415
|
+
let ForEachLoop = ForEachLoop_1 = class ForEachLoop extends (0, support_types_1.JMixin)(Object) {
|
|
1416
|
+
constructor(id, prefix, markers, control, body) {
|
|
1417
|
+
super();
|
|
1418
|
+
this._id = id;
|
|
1419
|
+
this._prefix = prefix;
|
|
1420
|
+
this._markers = markers;
|
|
1421
|
+
this._control = control;
|
|
1422
|
+
this._body = body;
|
|
1423
|
+
}
|
|
1424
|
+
get id() {
|
|
1425
|
+
return this._id;
|
|
1426
|
+
}
|
|
1427
|
+
withId(id) {
|
|
1428
|
+
return id === this._id ? this : new ForEachLoop_1(id, this._prefix, this._markers, this._control, this._body);
|
|
1429
|
+
}
|
|
1430
|
+
get prefix() {
|
|
1431
|
+
return this._prefix;
|
|
1432
|
+
}
|
|
1433
|
+
withPrefix(prefix) {
|
|
1434
|
+
return prefix === this._prefix ? this : new ForEachLoop_1(this._id, prefix, this._markers, this._control, this._body);
|
|
1435
|
+
}
|
|
1436
|
+
get markers() {
|
|
1437
|
+
return this._markers;
|
|
1438
|
+
}
|
|
1439
|
+
withMarkers(markers) {
|
|
1440
|
+
return markers === this._markers ? this : new ForEachLoop_1(this._id, this._prefix, markers, this._control, this._body);
|
|
1441
|
+
}
|
|
1442
|
+
get control() {
|
|
1443
|
+
return this._control;
|
|
1444
|
+
}
|
|
1445
|
+
withControl(control) {
|
|
1446
|
+
return control === this._control ? this : new ForEachLoop_1(this._id, this._prefix, this._markers, control, this._body);
|
|
1447
|
+
}
|
|
1448
|
+
get body() {
|
|
1449
|
+
return this._body.element;
|
|
1450
|
+
}
|
|
1451
|
+
withBody(body) {
|
|
1452
|
+
return this.padding.withBody(this._body.withElement(body));
|
|
1453
|
+
}
|
|
1454
|
+
acceptJava(v, p) {
|
|
1455
|
+
return v.visitForEachLoop(this, p);
|
|
1456
|
+
}
|
|
1457
|
+
get padding() {
|
|
1458
|
+
const t = this;
|
|
1459
|
+
return new class {
|
|
1460
|
+
get body() {
|
|
1461
|
+
return t._body;
|
|
1462
|
+
}
|
|
1463
|
+
withBody(body) {
|
|
1464
|
+
return t._body === body ? t : new ForEachLoop_1(t._id, t._prefix, t._markers, t._control, body);
|
|
1465
|
+
}
|
|
1466
|
+
};
|
|
1467
|
+
}
|
|
1468
|
+
};
|
|
1469
|
+
exports.ForEachLoop = ForEachLoop;
|
|
1470
|
+
exports.ForEachLoop = ForEachLoop = ForEachLoop_1 = __decorate([
|
|
1471
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$ForEachLoop")
|
|
1472
|
+
], ForEachLoop);
|
|
1473
|
+
(function (ForEachLoop) {
|
|
1474
|
+
let Control = class Control extends (0, support_types_1.JMixin)(Object) {
|
|
1475
|
+
constructor(id, prefix, markers, variable, iterable) {
|
|
1476
|
+
super();
|
|
1477
|
+
this._id = id;
|
|
1478
|
+
this._prefix = prefix;
|
|
1479
|
+
this._markers = markers;
|
|
1480
|
+
this._variable = variable;
|
|
1481
|
+
this._iterable = iterable;
|
|
1482
|
+
}
|
|
1483
|
+
get id() {
|
|
1484
|
+
return this._id;
|
|
1485
|
+
}
|
|
1486
|
+
withId(id) {
|
|
1487
|
+
return id === this._id ? this : new ForEachLoop.Control(id, this._prefix, this._markers, this._variable, this._iterable);
|
|
1488
|
+
}
|
|
1489
|
+
get prefix() {
|
|
1490
|
+
return this._prefix;
|
|
1491
|
+
}
|
|
1492
|
+
withPrefix(prefix) {
|
|
1493
|
+
return prefix === this._prefix ? this : new ForEachLoop.Control(this._id, prefix, this._markers, this._variable, this._iterable);
|
|
1494
|
+
}
|
|
1495
|
+
get markers() {
|
|
1496
|
+
return this._markers;
|
|
1497
|
+
}
|
|
1498
|
+
withMarkers(markers) {
|
|
1499
|
+
return markers === this._markers ? this : new ForEachLoop.Control(this._id, this._prefix, markers, this._variable, this._iterable);
|
|
1500
|
+
}
|
|
1501
|
+
get variable() {
|
|
1502
|
+
return this._variable.element;
|
|
1503
|
+
}
|
|
1504
|
+
withVariable(variable) {
|
|
1505
|
+
return this.padding.withVariable(this._variable.withElement(variable));
|
|
1506
|
+
}
|
|
1507
|
+
get iterable() {
|
|
1508
|
+
return this._iterable.element;
|
|
1509
|
+
}
|
|
1510
|
+
withIterable(iterable) {
|
|
1511
|
+
return this.padding.withIterable(this._iterable.withElement(iterable));
|
|
1512
|
+
}
|
|
1513
|
+
acceptJava(v, p) {
|
|
1514
|
+
return v.visitForEachControl(this, p);
|
|
1515
|
+
}
|
|
1516
|
+
get padding() {
|
|
1517
|
+
const t = this;
|
|
1518
|
+
return new class {
|
|
1519
|
+
get variable() {
|
|
1520
|
+
return t._variable;
|
|
1521
|
+
}
|
|
1522
|
+
withVariable(variable) {
|
|
1523
|
+
return t._variable === variable ? t : new ForEachLoop.Control(t._id, t._prefix, t._markers, variable, t._iterable);
|
|
1524
|
+
}
|
|
1525
|
+
get iterable() {
|
|
1526
|
+
return t._iterable;
|
|
1527
|
+
}
|
|
1528
|
+
withIterable(iterable) {
|
|
1529
|
+
return t._iterable === iterable ? t : new ForEachLoop.Control(t._id, t._prefix, t._markers, t._variable, iterable);
|
|
1530
|
+
}
|
|
1531
|
+
};
|
|
1532
|
+
}
|
|
1533
|
+
};
|
|
1534
|
+
Control = __decorate([
|
|
1535
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$ForEachLoop$Control")
|
|
1536
|
+
], Control);
|
|
1537
|
+
ForEachLoop.Control = Control;
|
|
1538
|
+
})(ForEachLoop || (exports.ForEachLoop = ForEachLoop = {}));
|
|
1539
|
+
let ForLoop = ForLoop_1 = class ForLoop extends (0, support_types_1.JMixin)(Object) {
|
|
1540
|
+
constructor(id, prefix, markers, control, body) {
|
|
1541
|
+
super();
|
|
1542
|
+
this._id = id;
|
|
1543
|
+
this._prefix = prefix;
|
|
1544
|
+
this._markers = markers;
|
|
1545
|
+
this._control = control;
|
|
1546
|
+
this._body = body;
|
|
1547
|
+
}
|
|
1548
|
+
get id() {
|
|
1549
|
+
return this._id;
|
|
1550
|
+
}
|
|
1551
|
+
withId(id) {
|
|
1552
|
+
return id === this._id ? this : new ForLoop_1(id, this._prefix, this._markers, this._control, this._body);
|
|
1553
|
+
}
|
|
1554
|
+
get prefix() {
|
|
1555
|
+
return this._prefix;
|
|
1556
|
+
}
|
|
1557
|
+
withPrefix(prefix) {
|
|
1558
|
+
return prefix === this._prefix ? this : new ForLoop_1(this._id, prefix, this._markers, this._control, this._body);
|
|
1559
|
+
}
|
|
1560
|
+
get markers() {
|
|
1561
|
+
return this._markers;
|
|
1562
|
+
}
|
|
1563
|
+
withMarkers(markers) {
|
|
1564
|
+
return markers === this._markers ? this : new ForLoop_1(this._id, this._prefix, markers, this._control, this._body);
|
|
1565
|
+
}
|
|
1566
|
+
get control() {
|
|
1567
|
+
return this._control;
|
|
1568
|
+
}
|
|
1569
|
+
withControl(control) {
|
|
1570
|
+
return control === this._control ? this : new ForLoop_1(this._id, this._prefix, this._markers, control, this._body);
|
|
1571
|
+
}
|
|
1572
|
+
get body() {
|
|
1573
|
+
return this._body.element;
|
|
1574
|
+
}
|
|
1575
|
+
withBody(body) {
|
|
1576
|
+
return this.padding.withBody(this._body.withElement(body));
|
|
1577
|
+
}
|
|
1578
|
+
acceptJava(v, p) {
|
|
1579
|
+
return v.visitForLoop(this, p);
|
|
1580
|
+
}
|
|
1581
|
+
get padding() {
|
|
1582
|
+
const t = this;
|
|
1583
|
+
return new class {
|
|
1584
|
+
get body() {
|
|
1585
|
+
return t._body;
|
|
1586
|
+
}
|
|
1587
|
+
withBody(body) {
|
|
1588
|
+
return t._body === body ? t : new ForLoop_1(t._id, t._prefix, t._markers, t._control, body);
|
|
1589
|
+
}
|
|
1590
|
+
};
|
|
1591
|
+
}
|
|
1592
|
+
};
|
|
1593
|
+
exports.ForLoop = ForLoop;
|
|
1594
|
+
exports.ForLoop = ForLoop = ForLoop_1 = __decorate([
|
|
1595
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$ForLoop")
|
|
1596
|
+
], ForLoop);
|
|
1597
|
+
(function (ForLoop) {
|
|
1598
|
+
let Control = class Control extends (0, support_types_1.JMixin)(Object) {
|
|
1599
|
+
constructor(id, prefix, markers, init, condition, update) {
|
|
1600
|
+
super();
|
|
1601
|
+
this._id = id;
|
|
1602
|
+
this._prefix = prefix;
|
|
1603
|
+
this._markers = markers;
|
|
1604
|
+
this._init = init;
|
|
1605
|
+
this._condition = condition;
|
|
1606
|
+
this._update = update;
|
|
1607
|
+
}
|
|
1608
|
+
get id() {
|
|
1609
|
+
return this._id;
|
|
1610
|
+
}
|
|
1611
|
+
withId(id) {
|
|
1612
|
+
return id === this._id ? this : new ForLoop.Control(id, this._prefix, this._markers, this._init, this._condition, this._update);
|
|
1613
|
+
}
|
|
1614
|
+
get prefix() {
|
|
1615
|
+
return this._prefix;
|
|
1616
|
+
}
|
|
1617
|
+
withPrefix(prefix) {
|
|
1618
|
+
return prefix === this._prefix ? this : new ForLoop.Control(this._id, prefix, this._markers, this._init, this._condition, this._update);
|
|
1619
|
+
}
|
|
1620
|
+
get markers() {
|
|
1621
|
+
return this._markers;
|
|
1622
|
+
}
|
|
1623
|
+
withMarkers(markers) {
|
|
1624
|
+
return markers === this._markers ? this : new ForLoop.Control(this._id, this._prefix, markers, this._init, this._condition, this._update);
|
|
1625
|
+
}
|
|
1626
|
+
get init() {
|
|
1627
|
+
return support_types_1.JRightPadded.getElements(this._init);
|
|
1628
|
+
}
|
|
1629
|
+
withInit(init) {
|
|
1630
|
+
return this.padding.withInit(support_types_1.JRightPadded.withElements(this._init, init));
|
|
1631
|
+
}
|
|
1632
|
+
get condition() {
|
|
1633
|
+
return this._condition.element;
|
|
1634
|
+
}
|
|
1635
|
+
withCondition(condition) {
|
|
1636
|
+
return this.padding.withCondition(this._condition.withElement(condition));
|
|
1637
|
+
}
|
|
1638
|
+
get update() {
|
|
1639
|
+
return support_types_1.JRightPadded.getElements(this._update);
|
|
1640
|
+
}
|
|
1641
|
+
withUpdate(update) {
|
|
1642
|
+
return this.padding.withUpdate(support_types_1.JRightPadded.withElements(this._update, update));
|
|
1643
|
+
}
|
|
1644
|
+
acceptJava(v, p) {
|
|
1645
|
+
return v.visitForControl(this, p);
|
|
1646
|
+
}
|
|
1647
|
+
get padding() {
|
|
1648
|
+
const t = this;
|
|
1649
|
+
return new class {
|
|
1650
|
+
get init() {
|
|
1651
|
+
return t._init;
|
|
1652
|
+
}
|
|
1653
|
+
withInit(init) {
|
|
1654
|
+
return t._init === init ? t : new ForLoop.Control(t._id, t._prefix, t._markers, init, t._condition, t._update);
|
|
1655
|
+
}
|
|
1656
|
+
get condition() {
|
|
1657
|
+
return t._condition;
|
|
1658
|
+
}
|
|
1659
|
+
withCondition(condition) {
|
|
1660
|
+
return t._condition === condition ? t : new ForLoop.Control(t._id, t._prefix, t._markers, t._init, condition, t._update);
|
|
1661
|
+
}
|
|
1662
|
+
get update() {
|
|
1663
|
+
return t._update;
|
|
1664
|
+
}
|
|
1665
|
+
withUpdate(update) {
|
|
1666
|
+
return t._update === update ? t : new ForLoop.Control(t._id, t._prefix, t._markers, t._init, t._condition, update);
|
|
1667
|
+
}
|
|
1668
|
+
};
|
|
1669
|
+
}
|
|
1670
|
+
};
|
|
1671
|
+
Control = __decorate([
|
|
1672
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$ForLoop$Control")
|
|
1673
|
+
], Control);
|
|
1674
|
+
ForLoop.Control = Control;
|
|
1675
|
+
})(ForLoop || (exports.ForLoop = ForLoop = {}));
|
|
1676
|
+
let ParenthesizedTypeTree = ParenthesizedTypeTree_1 = class ParenthesizedTypeTree extends (0, support_types_1.JMixin)(Object) {
|
|
1677
|
+
constructor(id, prefix, markers, annotations, parenthesizedType) {
|
|
1678
|
+
super();
|
|
1679
|
+
this._id = id;
|
|
1680
|
+
this._prefix = prefix;
|
|
1681
|
+
this._markers = markers;
|
|
1682
|
+
this._annotations = annotations;
|
|
1683
|
+
this._parenthesizedType = parenthesizedType;
|
|
1684
|
+
}
|
|
1685
|
+
get id() {
|
|
1686
|
+
return this._id;
|
|
1687
|
+
}
|
|
1688
|
+
withId(id) {
|
|
1689
|
+
return id === this._id ? this : new ParenthesizedTypeTree_1(id, this._prefix, this._markers, this._annotations, this._parenthesizedType);
|
|
1690
|
+
}
|
|
1691
|
+
get prefix() {
|
|
1692
|
+
return this._prefix;
|
|
1693
|
+
}
|
|
1694
|
+
withPrefix(prefix) {
|
|
1695
|
+
return prefix === this._prefix ? this : new ParenthesizedTypeTree_1(this._id, prefix, this._markers, this._annotations, this._parenthesizedType);
|
|
1696
|
+
}
|
|
1697
|
+
get markers() {
|
|
1698
|
+
return this._markers;
|
|
1699
|
+
}
|
|
1700
|
+
withMarkers(markers) {
|
|
1701
|
+
return markers === this._markers ? this : new ParenthesizedTypeTree_1(this._id, this._prefix, markers, this._annotations, this._parenthesizedType);
|
|
1702
|
+
}
|
|
1703
|
+
get annotations() {
|
|
1704
|
+
return this._annotations;
|
|
1705
|
+
}
|
|
1706
|
+
withAnnotations(annotations) {
|
|
1707
|
+
return annotations === this._annotations ? this : new ParenthesizedTypeTree_1(this._id, this._prefix, this._markers, annotations, this._parenthesizedType);
|
|
1708
|
+
}
|
|
1709
|
+
get parenthesizedType() {
|
|
1710
|
+
return this._parenthesizedType;
|
|
1711
|
+
}
|
|
1712
|
+
withParenthesizedType(parenthesizedType) {
|
|
1713
|
+
return parenthesizedType === this._parenthesizedType ? this : new ParenthesizedTypeTree_1(this._id, this._prefix, this._markers, this._annotations, parenthesizedType);
|
|
1714
|
+
}
|
|
1715
|
+
acceptJava(v, p) {
|
|
1716
|
+
return v.visitParenthesizedTypeTree(this, p);
|
|
1717
|
+
}
|
|
1718
|
+
get type() {
|
|
1719
|
+
return extensions.getJavaType(this);
|
|
1720
|
+
}
|
|
1721
|
+
withType(type) {
|
|
1722
|
+
return extensions.withJavaType(this, type);
|
|
1723
|
+
}
|
|
1724
|
+
};
|
|
1725
|
+
exports.ParenthesizedTypeTree = ParenthesizedTypeTree;
|
|
1726
|
+
exports.ParenthesizedTypeTree = ParenthesizedTypeTree = ParenthesizedTypeTree_1 = __decorate([
|
|
1727
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$ParenthesizedTypeTree")
|
|
1728
|
+
], ParenthesizedTypeTree);
|
|
1729
|
+
let Identifier = Identifier_1 = class Identifier extends (0, support_types_1.JMixin)(Object) {
|
|
1730
|
+
constructor(id, prefix, markers, annotations, simpleName, _type, fieldType) {
|
|
1731
|
+
super();
|
|
1732
|
+
this._id = id;
|
|
1733
|
+
this._prefix = prefix;
|
|
1734
|
+
this._markers = markers;
|
|
1735
|
+
this._annotations = annotations;
|
|
1736
|
+
this._simpleName = simpleName;
|
|
1737
|
+
this._type = _type;
|
|
1738
|
+
this._fieldType = fieldType;
|
|
1739
|
+
}
|
|
1740
|
+
get id() {
|
|
1741
|
+
return this._id;
|
|
1742
|
+
}
|
|
1743
|
+
withId(id) {
|
|
1744
|
+
return id === this._id ? this : new Identifier_1(id, this._prefix, this._markers, this._annotations, this._simpleName, this._type, this._fieldType);
|
|
1745
|
+
}
|
|
1746
|
+
get prefix() {
|
|
1747
|
+
return this._prefix;
|
|
1748
|
+
}
|
|
1749
|
+
withPrefix(prefix) {
|
|
1750
|
+
return prefix === this._prefix ? this : new Identifier_1(this._id, prefix, this._markers, this._annotations, this._simpleName, this._type, this._fieldType);
|
|
1751
|
+
}
|
|
1752
|
+
get markers() {
|
|
1753
|
+
return this._markers;
|
|
1754
|
+
}
|
|
1755
|
+
withMarkers(markers) {
|
|
1756
|
+
return markers === this._markers ? this : new Identifier_1(this._id, this._prefix, markers, this._annotations, this._simpleName, this._type, this._fieldType);
|
|
1757
|
+
}
|
|
1758
|
+
get annotations() {
|
|
1759
|
+
return this._annotations;
|
|
1760
|
+
}
|
|
1761
|
+
withAnnotations(annotations) {
|
|
1762
|
+
return annotations === this._annotations ? this : new Identifier_1(this._id, this._prefix, this._markers, annotations, this._simpleName, this._type, this._fieldType);
|
|
1763
|
+
}
|
|
1764
|
+
get simpleName() {
|
|
1765
|
+
return this._simpleName;
|
|
1766
|
+
}
|
|
1767
|
+
withSimpleName(simpleName) {
|
|
1768
|
+
return simpleName === this._simpleName ? this : new Identifier_1(this._id, this._prefix, this._markers, this._annotations, simpleName, this._type, this._fieldType);
|
|
1769
|
+
}
|
|
1770
|
+
get type() {
|
|
1771
|
+
return this._type;
|
|
1772
|
+
}
|
|
1773
|
+
withType(_type) {
|
|
1774
|
+
return _type === this._type ? this : new Identifier_1(this._id, this._prefix, this._markers, this._annotations, this._simpleName, _type, this._fieldType);
|
|
1775
|
+
}
|
|
1776
|
+
get fieldType() {
|
|
1777
|
+
return this._fieldType;
|
|
1778
|
+
}
|
|
1779
|
+
withFieldType(fieldType) {
|
|
1780
|
+
return fieldType === this._fieldType ? this : new Identifier_1(this._id, this._prefix, this._markers, this._annotations, this._simpleName, this._type, fieldType);
|
|
1781
|
+
}
|
|
1782
|
+
acceptJava(v, p) {
|
|
1783
|
+
return v.visitIdentifier(this, p);
|
|
1784
|
+
}
|
|
1785
|
+
};
|
|
1786
|
+
exports.Identifier = Identifier;
|
|
1787
|
+
exports.Identifier = Identifier = Identifier_1 = __decorate([
|
|
1788
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Identifier")
|
|
1789
|
+
], Identifier);
|
|
1790
|
+
let If = If_1 = class If extends (0, support_types_1.JMixin)(Object) {
|
|
1791
|
+
constructor(id, prefix, markers, ifCondition, thenPart, elsePart) {
|
|
1792
|
+
super();
|
|
1793
|
+
this._id = id;
|
|
1794
|
+
this._prefix = prefix;
|
|
1795
|
+
this._markers = markers;
|
|
1796
|
+
this._ifCondition = ifCondition;
|
|
1797
|
+
this._thenPart = thenPart;
|
|
1798
|
+
this._elsePart = elsePart;
|
|
1799
|
+
}
|
|
1800
|
+
get id() {
|
|
1801
|
+
return this._id;
|
|
1802
|
+
}
|
|
1803
|
+
withId(id) {
|
|
1804
|
+
return id === this._id ? this : new If_1(id, this._prefix, this._markers, this._ifCondition, this._thenPart, this._elsePart);
|
|
1805
|
+
}
|
|
1806
|
+
get prefix() {
|
|
1807
|
+
return this._prefix;
|
|
1808
|
+
}
|
|
1809
|
+
withPrefix(prefix) {
|
|
1810
|
+
return prefix === this._prefix ? this : new If_1(this._id, prefix, this._markers, this._ifCondition, this._thenPart, this._elsePart);
|
|
1811
|
+
}
|
|
1812
|
+
get markers() {
|
|
1813
|
+
return this._markers;
|
|
1814
|
+
}
|
|
1815
|
+
withMarkers(markers) {
|
|
1816
|
+
return markers === this._markers ? this : new If_1(this._id, this._prefix, markers, this._ifCondition, this._thenPart, this._elsePart);
|
|
1817
|
+
}
|
|
1818
|
+
get ifCondition() {
|
|
1819
|
+
return this._ifCondition;
|
|
1820
|
+
}
|
|
1821
|
+
withIfCondition(ifCondition) {
|
|
1822
|
+
return ifCondition === this._ifCondition ? this : new If_1(this._id, this._prefix, this._markers, ifCondition, this._thenPart, this._elsePart);
|
|
1823
|
+
}
|
|
1824
|
+
get thenPart() {
|
|
1825
|
+
return this._thenPart.element;
|
|
1826
|
+
}
|
|
1827
|
+
withThenPart(thenPart) {
|
|
1828
|
+
return this.padding.withThenPart(this._thenPart.withElement(thenPart));
|
|
1829
|
+
}
|
|
1830
|
+
get elsePart() {
|
|
1831
|
+
return this._elsePart;
|
|
1832
|
+
}
|
|
1833
|
+
withElsePart(elsePart) {
|
|
1834
|
+
return elsePart === this._elsePart ? this : new If_1(this._id, this._prefix, this._markers, this._ifCondition, this._thenPart, elsePart);
|
|
1835
|
+
}
|
|
1836
|
+
acceptJava(v, p) {
|
|
1837
|
+
return v.visitIf(this, p);
|
|
1838
|
+
}
|
|
1839
|
+
get padding() {
|
|
1840
|
+
const t = this;
|
|
1841
|
+
return new class {
|
|
1842
|
+
get thenPart() {
|
|
1843
|
+
return t._thenPart;
|
|
1844
|
+
}
|
|
1845
|
+
withThenPart(thenPart) {
|
|
1846
|
+
return t._thenPart === thenPart ? t : new If_1(t._id, t._prefix, t._markers, t._ifCondition, thenPart, t._elsePart);
|
|
1847
|
+
}
|
|
1848
|
+
};
|
|
1849
|
+
}
|
|
1850
|
+
};
|
|
1851
|
+
exports.If = If;
|
|
1852
|
+
exports.If = If = If_1 = __decorate([
|
|
1853
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$If")
|
|
1854
|
+
], If);
|
|
1855
|
+
(function (If) {
|
|
1856
|
+
let Else = class Else extends (0, support_types_1.JMixin)(Object) {
|
|
1857
|
+
constructor(id, prefix, markers, body) {
|
|
1858
|
+
super();
|
|
1859
|
+
this._id = id;
|
|
1860
|
+
this._prefix = prefix;
|
|
1861
|
+
this._markers = markers;
|
|
1862
|
+
this._body = body;
|
|
1863
|
+
}
|
|
1864
|
+
get id() {
|
|
1865
|
+
return this._id;
|
|
1866
|
+
}
|
|
1867
|
+
withId(id) {
|
|
1868
|
+
return id === this._id ? this : new If.Else(id, this._prefix, this._markers, this._body);
|
|
1869
|
+
}
|
|
1870
|
+
get prefix() {
|
|
1871
|
+
return this._prefix;
|
|
1872
|
+
}
|
|
1873
|
+
withPrefix(prefix) {
|
|
1874
|
+
return prefix === this._prefix ? this : new If.Else(this._id, prefix, this._markers, this._body);
|
|
1875
|
+
}
|
|
1876
|
+
get markers() {
|
|
1877
|
+
return this._markers;
|
|
1878
|
+
}
|
|
1879
|
+
withMarkers(markers) {
|
|
1880
|
+
return markers === this._markers ? this : new If.Else(this._id, this._prefix, markers, this._body);
|
|
1881
|
+
}
|
|
1882
|
+
get body() {
|
|
1883
|
+
return this._body.element;
|
|
1884
|
+
}
|
|
1885
|
+
withBody(body) {
|
|
1886
|
+
return this.padding.withBody(this._body.withElement(body));
|
|
1887
|
+
}
|
|
1888
|
+
acceptJava(v, p) {
|
|
1889
|
+
return v.visitElse(this, p);
|
|
1890
|
+
}
|
|
1891
|
+
get padding() {
|
|
1892
|
+
const t = this;
|
|
1893
|
+
return new class {
|
|
1894
|
+
get body() {
|
|
1895
|
+
return t._body;
|
|
1896
|
+
}
|
|
1897
|
+
withBody(body) {
|
|
1898
|
+
return t._body === body ? t : new If.Else(t._id, t._prefix, t._markers, body);
|
|
1899
|
+
}
|
|
1900
|
+
};
|
|
1901
|
+
}
|
|
1902
|
+
};
|
|
1903
|
+
Else = __decorate([
|
|
1904
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$If$Else")
|
|
1905
|
+
], Else);
|
|
1906
|
+
If.Else = Else;
|
|
1907
|
+
})(If || (exports.If = If = {}));
|
|
1908
|
+
let Import = Import_1 = class Import extends (0, support_types_1.JMixin)(Object) {
|
|
1909
|
+
constructor(id, prefix, markers, _static, qualid, alias) {
|
|
1910
|
+
super();
|
|
1911
|
+
this._id = id;
|
|
1912
|
+
this._prefix = prefix;
|
|
1913
|
+
this._markers = markers;
|
|
1914
|
+
this._static = _static;
|
|
1915
|
+
this._qualid = qualid;
|
|
1916
|
+
this._alias = alias;
|
|
1917
|
+
}
|
|
1918
|
+
get id() {
|
|
1919
|
+
return this._id;
|
|
1920
|
+
}
|
|
1921
|
+
withId(id) {
|
|
1922
|
+
return id === this._id ? this : new Import_1(id, this._prefix, this._markers, this._static, this._qualid, this._alias);
|
|
1923
|
+
}
|
|
1924
|
+
get prefix() {
|
|
1925
|
+
return this._prefix;
|
|
1926
|
+
}
|
|
1927
|
+
withPrefix(prefix) {
|
|
1928
|
+
return prefix === this._prefix ? this : new Import_1(this._id, prefix, this._markers, this._static, this._qualid, this._alias);
|
|
1929
|
+
}
|
|
1930
|
+
get markers() {
|
|
1931
|
+
return this._markers;
|
|
1932
|
+
}
|
|
1933
|
+
withMarkers(markers) {
|
|
1934
|
+
return markers === this._markers ? this : new Import_1(this._id, this._prefix, markers, this._static, this._qualid, this._alias);
|
|
1935
|
+
}
|
|
1936
|
+
get static() {
|
|
1937
|
+
return this._static.element;
|
|
1938
|
+
}
|
|
1939
|
+
withStatic(_static) {
|
|
1940
|
+
return this.padding.withStatic(this._static.withElement(_static));
|
|
1941
|
+
}
|
|
1942
|
+
get qualid() {
|
|
1943
|
+
return this._qualid;
|
|
1944
|
+
}
|
|
1945
|
+
withQualid(qualid) {
|
|
1946
|
+
return qualid === this._qualid ? this : new Import_1(this._id, this._prefix, this._markers, this._static, qualid, this._alias);
|
|
1947
|
+
}
|
|
1948
|
+
get alias() {
|
|
1949
|
+
return this._alias === null ? null : this._alias.element;
|
|
1950
|
+
}
|
|
1951
|
+
withAlias(alias) {
|
|
1952
|
+
return this.padding.withAlias(support_types_1.JLeftPadded.withElement(this._alias, alias));
|
|
1953
|
+
}
|
|
1954
|
+
acceptJava(v, p) {
|
|
1955
|
+
return v.visitImport(this, p);
|
|
1956
|
+
}
|
|
1957
|
+
get padding() {
|
|
1958
|
+
const t = this;
|
|
1959
|
+
return new class {
|
|
1960
|
+
get static() {
|
|
1961
|
+
return t._static;
|
|
1962
|
+
}
|
|
1963
|
+
withStatic(_static) {
|
|
1964
|
+
return t._static === _static ? t : new Import_1(t._id, t._prefix, t._markers, _static, t._qualid, t._alias);
|
|
1965
|
+
}
|
|
1966
|
+
get alias() {
|
|
1967
|
+
return t._alias;
|
|
1968
|
+
}
|
|
1969
|
+
withAlias(alias) {
|
|
1970
|
+
return t._alias === alias ? t : new Import_1(t._id, t._prefix, t._markers, t._static, t._qualid, alias);
|
|
1971
|
+
}
|
|
1972
|
+
};
|
|
1973
|
+
}
|
|
1974
|
+
};
|
|
1975
|
+
exports.Import = Import;
|
|
1976
|
+
exports.Import = Import = Import_1 = __decorate([
|
|
1977
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Import")
|
|
1978
|
+
], Import);
|
|
1979
|
+
let InstanceOf = InstanceOf_1 = class InstanceOf extends (0, support_types_1.JMixin)(Object) {
|
|
1980
|
+
constructor(id, prefix, markers, expression, clazz, pattern, _type) {
|
|
1981
|
+
super();
|
|
1982
|
+
this._id = id;
|
|
1983
|
+
this._prefix = prefix;
|
|
1984
|
+
this._markers = markers;
|
|
1985
|
+
this._expression = expression;
|
|
1986
|
+
this._clazz = clazz;
|
|
1987
|
+
this._pattern = pattern;
|
|
1988
|
+
this._type = _type;
|
|
1989
|
+
}
|
|
1990
|
+
get id() {
|
|
1991
|
+
return this._id;
|
|
1992
|
+
}
|
|
1993
|
+
withId(id) {
|
|
1994
|
+
return id === this._id ? this : new InstanceOf_1(id, this._prefix, this._markers, this._expression, this._clazz, this._pattern, this._type);
|
|
1995
|
+
}
|
|
1996
|
+
get prefix() {
|
|
1997
|
+
return this._prefix;
|
|
1998
|
+
}
|
|
1999
|
+
withPrefix(prefix) {
|
|
2000
|
+
return prefix === this._prefix ? this : new InstanceOf_1(this._id, prefix, this._markers, this._expression, this._clazz, this._pattern, this._type);
|
|
2001
|
+
}
|
|
2002
|
+
get markers() {
|
|
2003
|
+
return this._markers;
|
|
2004
|
+
}
|
|
2005
|
+
withMarkers(markers) {
|
|
2006
|
+
return markers === this._markers ? this : new InstanceOf_1(this._id, this._prefix, markers, this._expression, this._clazz, this._pattern, this._type);
|
|
2007
|
+
}
|
|
2008
|
+
get expression() {
|
|
2009
|
+
return this._expression.element;
|
|
2010
|
+
}
|
|
2011
|
+
withExpression(expression) {
|
|
2012
|
+
return this.padding.withExpression(this._expression.withElement(expression));
|
|
2013
|
+
}
|
|
2014
|
+
get clazz() {
|
|
2015
|
+
return this._clazz;
|
|
2016
|
+
}
|
|
2017
|
+
withClazz(clazz) {
|
|
2018
|
+
return clazz === this._clazz ? this : new InstanceOf_1(this._id, this._prefix, this._markers, this._expression, clazz, this._pattern, this._type);
|
|
2019
|
+
}
|
|
2020
|
+
get pattern() {
|
|
2021
|
+
return this._pattern;
|
|
2022
|
+
}
|
|
2023
|
+
withPattern(pattern) {
|
|
2024
|
+
return pattern === this._pattern ? this : new InstanceOf_1(this._id, this._prefix, this._markers, this._expression, this._clazz, pattern, this._type);
|
|
2025
|
+
}
|
|
2026
|
+
get type() {
|
|
2027
|
+
return this._type;
|
|
2028
|
+
}
|
|
2029
|
+
withType(_type) {
|
|
2030
|
+
return _type === this._type ? this : new InstanceOf_1(this._id, this._prefix, this._markers, this._expression, this._clazz, this._pattern, _type);
|
|
2031
|
+
}
|
|
2032
|
+
acceptJava(v, p) {
|
|
2033
|
+
return v.visitInstanceOf(this, p);
|
|
2034
|
+
}
|
|
2035
|
+
get padding() {
|
|
2036
|
+
const t = this;
|
|
2037
|
+
return new class {
|
|
2038
|
+
get expression() {
|
|
2039
|
+
return t._expression;
|
|
2040
|
+
}
|
|
2041
|
+
withExpression(expression) {
|
|
2042
|
+
return t._expression === expression ? t : new InstanceOf_1(t._id, t._prefix, t._markers, expression, t._clazz, t._pattern, t._type);
|
|
2043
|
+
}
|
|
2044
|
+
};
|
|
2045
|
+
}
|
|
2046
|
+
};
|
|
2047
|
+
exports.InstanceOf = InstanceOf;
|
|
2048
|
+
exports.InstanceOf = InstanceOf = InstanceOf_1 = __decorate([
|
|
2049
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$InstanceOf")
|
|
2050
|
+
], InstanceOf);
|
|
2051
|
+
let IntersectionType = IntersectionType_1 = class IntersectionType extends (0, support_types_1.JMixin)(Object) {
|
|
2052
|
+
constructor(id, prefix, markers, bounds) {
|
|
2053
|
+
super();
|
|
2054
|
+
this._id = id;
|
|
2055
|
+
this._prefix = prefix;
|
|
2056
|
+
this._markers = markers;
|
|
2057
|
+
this._bounds = bounds;
|
|
2058
|
+
}
|
|
2059
|
+
get id() {
|
|
2060
|
+
return this._id;
|
|
2061
|
+
}
|
|
2062
|
+
withId(id) {
|
|
2063
|
+
return id === this._id ? this : new IntersectionType_1(id, this._prefix, this._markers, this._bounds);
|
|
2064
|
+
}
|
|
2065
|
+
get prefix() {
|
|
2066
|
+
return this._prefix;
|
|
2067
|
+
}
|
|
2068
|
+
withPrefix(prefix) {
|
|
2069
|
+
return prefix === this._prefix ? this : new IntersectionType_1(this._id, prefix, this._markers, this._bounds);
|
|
2070
|
+
}
|
|
2071
|
+
get markers() {
|
|
2072
|
+
return this._markers;
|
|
2073
|
+
}
|
|
2074
|
+
withMarkers(markers) {
|
|
2075
|
+
return markers === this._markers ? this : new IntersectionType_1(this._id, this._prefix, markers, this._bounds);
|
|
2076
|
+
}
|
|
2077
|
+
get bounds() {
|
|
2078
|
+
return this._bounds.elements;
|
|
2079
|
+
}
|
|
2080
|
+
withBounds(bounds) {
|
|
2081
|
+
return this.padding.withBounds(support_types_1.JContainer.withElements(this._bounds, bounds));
|
|
2082
|
+
}
|
|
2083
|
+
acceptJava(v, p) {
|
|
2084
|
+
return v.visitIntersectionType(this, p);
|
|
2085
|
+
}
|
|
2086
|
+
get type() {
|
|
2087
|
+
return extensions.getJavaType(this);
|
|
2088
|
+
}
|
|
2089
|
+
withType(type) {
|
|
2090
|
+
return extensions.withJavaType(this, type);
|
|
2091
|
+
}
|
|
2092
|
+
get padding() {
|
|
2093
|
+
const t = this;
|
|
2094
|
+
return new class {
|
|
2095
|
+
get bounds() {
|
|
2096
|
+
return t._bounds;
|
|
2097
|
+
}
|
|
2098
|
+
withBounds(bounds) {
|
|
2099
|
+
return t._bounds === bounds ? t : new IntersectionType_1(t._id, t._prefix, t._markers, bounds);
|
|
2100
|
+
}
|
|
2101
|
+
};
|
|
2102
|
+
}
|
|
2103
|
+
};
|
|
2104
|
+
exports.IntersectionType = IntersectionType;
|
|
2105
|
+
exports.IntersectionType = IntersectionType = IntersectionType_1 = __decorate([
|
|
2106
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$IntersectionType")
|
|
2107
|
+
], IntersectionType);
|
|
2108
|
+
let Label = Label_1 = class Label extends (0, support_types_1.JMixin)(Object) {
|
|
2109
|
+
constructor(id, prefix, markers, label, statement) {
|
|
2110
|
+
super();
|
|
2111
|
+
this._id = id;
|
|
2112
|
+
this._prefix = prefix;
|
|
2113
|
+
this._markers = markers;
|
|
2114
|
+
this._label = label;
|
|
2115
|
+
this._statement = statement;
|
|
2116
|
+
}
|
|
2117
|
+
get id() {
|
|
2118
|
+
return this._id;
|
|
2119
|
+
}
|
|
2120
|
+
withId(id) {
|
|
2121
|
+
return id === this._id ? this : new Label_1(id, this._prefix, this._markers, this._label, this._statement);
|
|
2122
|
+
}
|
|
2123
|
+
get prefix() {
|
|
2124
|
+
return this._prefix;
|
|
2125
|
+
}
|
|
2126
|
+
withPrefix(prefix) {
|
|
2127
|
+
return prefix === this._prefix ? this : new Label_1(this._id, prefix, this._markers, this._label, this._statement);
|
|
2128
|
+
}
|
|
2129
|
+
get markers() {
|
|
2130
|
+
return this._markers;
|
|
2131
|
+
}
|
|
2132
|
+
withMarkers(markers) {
|
|
2133
|
+
return markers === this._markers ? this : new Label_1(this._id, this._prefix, markers, this._label, this._statement);
|
|
2134
|
+
}
|
|
2135
|
+
get label() {
|
|
2136
|
+
return this._label.element;
|
|
2137
|
+
}
|
|
2138
|
+
withLabel(label) {
|
|
2139
|
+
return this.padding.withLabel(this._label.withElement(label));
|
|
2140
|
+
}
|
|
2141
|
+
get statement() {
|
|
2142
|
+
return this._statement;
|
|
2143
|
+
}
|
|
2144
|
+
withStatement(statement) {
|
|
2145
|
+
return statement === this._statement ? this : new Label_1(this._id, this._prefix, this._markers, this._label, statement);
|
|
2146
|
+
}
|
|
2147
|
+
acceptJava(v, p) {
|
|
2148
|
+
return v.visitLabel(this, p);
|
|
2149
|
+
}
|
|
2150
|
+
get padding() {
|
|
2151
|
+
const t = this;
|
|
2152
|
+
return new class {
|
|
2153
|
+
get label() {
|
|
2154
|
+
return t._label;
|
|
2155
|
+
}
|
|
2156
|
+
withLabel(label) {
|
|
2157
|
+
return t._label === label ? t : new Label_1(t._id, t._prefix, t._markers, label, t._statement);
|
|
2158
|
+
}
|
|
2159
|
+
};
|
|
2160
|
+
}
|
|
2161
|
+
};
|
|
2162
|
+
exports.Label = Label;
|
|
2163
|
+
exports.Label = Label = Label_1 = __decorate([
|
|
2164
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Label")
|
|
2165
|
+
], Label);
|
|
2166
|
+
let Lambda = Lambda_1 = class Lambda extends (0, support_types_1.JMixin)(Object) {
|
|
2167
|
+
constructor(id, prefix, markers, parameters, arrow, body, _type) {
|
|
2168
|
+
super();
|
|
2169
|
+
this._id = id;
|
|
2170
|
+
this._prefix = prefix;
|
|
2171
|
+
this._markers = markers;
|
|
2172
|
+
this._parameters = parameters;
|
|
2173
|
+
this._arrow = arrow;
|
|
2174
|
+
this._body = body;
|
|
2175
|
+
this._type = _type;
|
|
2176
|
+
}
|
|
2177
|
+
get id() {
|
|
2178
|
+
return this._id;
|
|
2179
|
+
}
|
|
2180
|
+
withId(id) {
|
|
2181
|
+
return id === this._id ? this : new Lambda_1(id, this._prefix, this._markers, this._parameters, this._arrow, this._body, this._type);
|
|
2182
|
+
}
|
|
2183
|
+
get prefix() {
|
|
2184
|
+
return this._prefix;
|
|
2185
|
+
}
|
|
2186
|
+
withPrefix(prefix) {
|
|
2187
|
+
return prefix === this._prefix ? this : new Lambda_1(this._id, prefix, this._markers, this._parameters, this._arrow, this._body, this._type);
|
|
2188
|
+
}
|
|
2189
|
+
get markers() {
|
|
2190
|
+
return this._markers;
|
|
2191
|
+
}
|
|
2192
|
+
withMarkers(markers) {
|
|
2193
|
+
return markers === this._markers ? this : new Lambda_1(this._id, this._prefix, markers, this._parameters, this._arrow, this._body, this._type);
|
|
2194
|
+
}
|
|
2195
|
+
get parameters() {
|
|
2196
|
+
return this._parameters;
|
|
2197
|
+
}
|
|
2198
|
+
withParameters(parameters) {
|
|
2199
|
+
return parameters === this._parameters ? this : new Lambda_1(this._id, this._prefix, this._markers, parameters, this._arrow, this._body, this._type);
|
|
2200
|
+
}
|
|
2201
|
+
get arrow() {
|
|
2202
|
+
return this._arrow;
|
|
2203
|
+
}
|
|
2204
|
+
withArrow(arrow) {
|
|
2205
|
+
return arrow === this._arrow ? this : new Lambda_1(this._id, this._prefix, this._markers, this._parameters, arrow, this._body, this._type);
|
|
2206
|
+
}
|
|
2207
|
+
get body() {
|
|
2208
|
+
return this._body;
|
|
2209
|
+
}
|
|
2210
|
+
withBody(body) {
|
|
2211
|
+
return body === this._body ? this : new Lambda_1(this._id, this._prefix, this._markers, this._parameters, this._arrow, body, this._type);
|
|
2212
|
+
}
|
|
2213
|
+
get type() {
|
|
2214
|
+
return this._type;
|
|
2215
|
+
}
|
|
2216
|
+
withType(_type) {
|
|
2217
|
+
return _type === this._type ? this : new Lambda_1(this._id, this._prefix, this._markers, this._parameters, this._arrow, this._body, _type);
|
|
2218
|
+
}
|
|
2219
|
+
acceptJava(v, p) {
|
|
2220
|
+
return v.visitLambda(this, p);
|
|
2221
|
+
}
|
|
2222
|
+
};
|
|
2223
|
+
exports.Lambda = Lambda;
|
|
2224
|
+
exports.Lambda = Lambda = Lambda_1 = __decorate([
|
|
2225
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Lambda")
|
|
2226
|
+
], Lambda);
|
|
2227
|
+
(function (Lambda) {
|
|
2228
|
+
let Parameters = class Parameters extends (0, support_types_1.JMixin)(Object) {
|
|
2229
|
+
constructor(id, prefix, markers, parenthesized, parameters) {
|
|
2230
|
+
super();
|
|
2231
|
+
this._id = id;
|
|
2232
|
+
this._prefix = prefix;
|
|
2233
|
+
this._markers = markers;
|
|
2234
|
+
this._parenthesized = parenthesized;
|
|
2235
|
+
this._parameters = parameters;
|
|
2236
|
+
}
|
|
2237
|
+
get id() {
|
|
2238
|
+
return this._id;
|
|
2239
|
+
}
|
|
2240
|
+
withId(id) {
|
|
2241
|
+
return id === this._id ? this : new Lambda.Parameters(id, this._prefix, this._markers, this._parenthesized, this._parameters);
|
|
2242
|
+
}
|
|
2243
|
+
get prefix() {
|
|
2244
|
+
return this._prefix;
|
|
2245
|
+
}
|
|
2246
|
+
withPrefix(prefix) {
|
|
2247
|
+
return prefix === this._prefix ? this : new Lambda.Parameters(this._id, prefix, this._markers, this._parenthesized, this._parameters);
|
|
2248
|
+
}
|
|
2249
|
+
get markers() {
|
|
2250
|
+
return this._markers;
|
|
2251
|
+
}
|
|
2252
|
+
withMarkers(markers) {
|
|
2253
|
+
return markers === this._markers ? this : new Lambda.Parameters(this._id, this._prefix, markers, this._parenthesized, this._parameters);
|
|
2254
|
+
}
|
|
2255
|
+
get parenthesized() {
|
|
2256
|
+
return this._parenthesized;
|
|
2257
|
+
}
|
|
2258
|
+
withParenthesized(parenthesized) {
|
|
2259
|
+
return parenthesized === this._parenthesized ? this : new Lambda.Parameters(this._id, this._prefix, this._markers, parenthesized, this._parameters);
|
|
2260
|
+
}
|
|
2261
|
+
get parameters() {
|
|
2262
|
+
return support_types_1.JRightPadded.getElements(this._parameters);
|
|
2263
|
+
}
|
|
2264
|
+
withParameters(parameters) {
|
|
2265
|
+
return this.padding.withParameters(support_types_1.JRightPadded.withElements(this._parameters, parameters));
|
|
2266
|
+
}
|
|
2267
|
+
acceptJava(v, p) {
|
|
2268
|
+
return v.visitLambdaParameters(this, p);
|
|
2269
|
+
}
|
|
2270
|
+
get padding() {
|
|
2271
|
+
const t = this;
|
|
2272
|
+
return new class {
|
|
2273
|
+
get parameters() {
|
|
2274
|
+
return t._parameters;
|
|
2275
|
+
}
|
|
2276
|
+
withParameters(parameters) {
|
|
2277
|
+
return t._parameters === parameters ? t : new Lambda.Parameters(t._id, t._prefix, t._markers, t._parenthesized, parameters);
|
|
2278
|
+
}
|
|
2279
|
+
};
|
|
2280
|
+
}
|
|
2281
|
+
};
|
|
2282
|
+
Parameters = __decorate([
|
|
2283
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Lambda$Parameters")
|
|
2284
|
+
], Parameters);
|
|
2285
|
+
Lambda.Parameters = Parameters;
|
|
2286
|
+
})(Lambda || (exports.Lambda = Lambda = {}));
|
|
2287
|
+
let Literal = Literal_1 = class Literal extends (0, support_types_1.JMixin)(Object) {
|
|
2288
|
+
constructor(id, prefix, markers, value, valueSource, unicodeEscapes, _type) {
|
|
2289
|
+
super();
|
|
2290
|
+
this._id = id;
|
|
2291
|
+
this._prefix = prefix;
|
|
2292
|
+
this._markers = markers;
|
|
2293
|
+
this._value = value;
|
|
2294
|
+
this._valueSource = valueSource;
|
|
2295
|
+
this._unicodeEscapes = unicodeEscapes;
|
|
2296
|
+
this._type = _type;
|
|
2297
|
+
}
|
|
2298
|
+
get id() {
|
|
2299
|
+
return this._id;
|
|
2300
|
+
}
|
|
2301
|
+
withId(id) {
|
|
2302
|
+
return id === this._id ? this : new Literal_1(id, this._prefix, this._markers, this._value, this._valueSource, this._unicodeEscapes, this._type);
|
|
2303
|
+
}
|
|
2304
|
+
get prefix() {
|
|
2305
|
+
return this._prefix;
|
|
2306
|
+
}
|
|
2307
|
+
withPrefix(prefix) {
|
|
2308
|
+
return prefix === this._prefix ? this : new Literal_1(this._id, prefix, this._markers, this._value, this._valueSource, this._unicodeEscapes, this._type);
|
|
2309
|
+
}
|
|
2310
|
+
get markers() {
|
|
2311
|
+
return this._markers;
|
|
2312
|
+
}
|
|
2313
|
+
withMarkers(markers) {
|
|
2314
|
+
return markers === this._markers ? this : new Literal_1(this._id, this._prefix, markers, this._value, this._valueSource, this._unicodeEscapes, this._type);
|
|
2315
|
+
}
|
|
2316
|
+
get value() {
|
|
2317
|
+
return this._value;
|
|
2318
|
+
}
|
|
2319
|
+
withValue(value) {
|
|
2320
|
+
return value === this._value ? this : new Literal_1(this._id, this._prefix, this._markers, value, this._valueSource, this._unicodeEscapes, this._type);
|
|
2321
|
+
}
|
|
2322
|
+
get valueSource() {
|
|
2323
|
+
return this._valueSource;
|
|
2324
|
+
}
|
|
2325
|
+
withValueSource(valueSource) {
|
|
2326
|
+
return valueSource === this._valueSource ? this : new Literal_1(this._id, this._prefix, this._markers, this._value, valueSource, this._unicodeEscapes, this._type);
|
|
2327
|
+
}
|
|
2328
|
+
get unicodeEscapes() {
|
|
2329
|
+
return this._unicodeEscapes;
|
|
2330
|
+
}
|
|
2331
|
+
withUnicodeEscapes(unicodeEscapes) {
|
|
2332
|
+
return unicodeEscapes === this._unicodeEscapes ? this : new Literal_1(this._id, this._prefix, this._markers, this._value, this._valueSource, unicodeEscapes, this._type);
|
|
2333
|
+
}
|
|
2334
|
+
get type() {
|
|
2335
|
+
return this._type;
|
|
2336
|
+
}
|
|
2337
|
+
withType(_type) {
|
|
2338
|
+
return _type === this._type ? this : new Literal_1(this._id, this._prefix, this._markers, this._value, this._valueSource, this._unicodeEscapes, _type);
|
|
2339
|
+
}
|
|
2340
|
+
acceptJava(v, p) {
|
|
2341
|
+
return v.visitLiteral(this, p);
|
|
2342
|
+
}
|
|
2343
|
+
};
|
|
2344
|
+
exports.Literal = Literal;
|
|
2345
|
+
exports.Literal = Literal = Literal_1 = __decorate([
|
|
2346
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Literal")
|
|
2347
|
+
], Literal);
|
|
2348
|
+
(function (Literal) {
|
|
2349
|
+
class UnicodeEscape {
|
|
2350
|
+
constructor(valueSourceIndex, codePoint) {
|
|
2351
|
+
this._valueSourceIndex = valueSourceIndex;
|
|
2352
|
+
this._codePoint = codePoint;
|
|
2353
|
+
}
|
|
2354
|
+
get valueSourceIndex() {
|
|
2355
|
+
return this._valueSourceIndex;
|
|
2356
|
+
}
|
|
2357
|
+
withValueSourceIndex(valueSourceIndex) {
|
|
2358
|
+
return valueSourceIndex === this._valueSourceIndex ? this : new Literal.UnicodeEscape(valueSourceIndex, this._codePoint);
|
|
2359
|
+
}
|
|
2360
|
+
get codePoint() {
|
|
2361
|
+
return this._codePoint;
|
|
2362
|
+
}
|
|
2363
|
+
withCodePoint(codePoint) {
|
|
2364
|
+
return codePoint === this._codePoint ? this : new Literal.UnicodeEscape(this._valueSourceIndex, codePoint);
|
|
2365
|
+
}
|
|
2366
|
+
}
|
|
2367
|
+
Literal.UnicodeEscape = UnicodeEscape;
|
|
2368
|
+
})(Literal || (exports.Literal = Literal = {}));
|
|
2369
|
+
let MemberReference = MemberReference_1 = class MemberReference extends (0, support_types_1.JMixin)(Object) {
|
|
2370
|
+
constructor(id, prefix, markers, containing, typeParameters, reference, _type, methodType, variableType) {
|
|
2371
|
+
super();
|
|
2372
|
+
this._id = id;
|
|
2373
|
+
this._prefix = prefix;
|
|
2374
|
+
this._markers = markers;
|
|
2375
|
+
this._containing = containing;
|
|
2376
|
+
this._typeParameters = typeParameters;
|
|
2377
|
+
this._reference = reference;
|
|
2378
|
+
this._type = _type;
|
|
2379
|
+
this._methodType = methodType;
|
|
2380
|
+
this._variableType = variableType;
|
|
2381
|
+
}
|
|
2382
|
+
get id() {
|
|
2383
|
+
return this._id;
|
|
2384
|
+
}
|
|
2385
|
+
withId(id) {
|
|
2386
|
+
return id === this._id ? this : new MemberReference_1(id, this._prefix, this._markers, this._containing, this._typeParameters, this._reference, this._type, this._methodType, this._variableType);
|
|
2387
|
+
}
|
|
2388
|
+
get prefix() {
|
|
2389
|
+
return this._prefix;
|
|
2390
|
+
}
|
|
2391
|
+
withPrefix(prefix) {
|
|
2392
|
+
return prefix === this._prefix ? this : new MemberReference_1(this._id, prefix, this._markers, this._containing, this._typeParameters, this._reference, this._type, this._methodType, this._variableType);
|
|
2393
|
+
}
|
|
2394
|
+
get markers() {
|
|
2395
|
+
return this._markers;
|
|
2396
|
+
}
|
|
2397
|
+
withMarkers(markers) {
|
|
2398
|
+
return markers === this._markers ? this : new MemberReference_1(this._id, this._prefix, markers, this._containing, this._typeParameters, this._reference, this._type, this._methodType, this._variableType);
|
|
2399
|
+
}
|
|
2400
|
+
get containing() {
|
|
2401
|
+
return this._containing.element;
|
|
2402
|
+
}
|
|
2403
|
+
withContaining(containing) {
|
|
2404
|
+
return this.padding.withContaining(this._containing.withElement(containing));
|
|
2405
|
+
}
|
|
2406
|
+
get typeParameters() {
|
|
2407
|
+
return this._typeParameters === null ? null : this._typeParameters.elements;
|
|
2408
|
+
}
|
|
2409
|
+
withTypeParameters(typeParameters) {
|
|
2410
|
+
return this.padding.withTypeParameters(support_types_1.JContainer.withElementsNullable(this._typeParameters, typeParameters));
|
|
2411
|
+
}
|
|
2412
|
+
get reference() {
|
|
2413
|
+
return this._reference.element;
|
|
2414
|
+
}
|
|
2415
|
+
withReference(reference) {
|
|
2416
|
+
return this.padding.withReference(this._reference.withElement(reference));
|
|
2417
|
+
}
|
|
2418
|
+
get type() {
|
|
2419
|
+
return this._type;
|
|
2420
|
+
}
|
|
2421
|
+
withType(_type) {
|
|
2422
|
+
return _type === this._type ? this : new MemberReference_1(this._id, this._prefix, this._markers, this._containing, this._typeParameters, this._reference, _type, this._methodType, this._variableType);
|
|
2423
|
+
}
|
|
2424
|
+
get methodType() {
|
|
2425
|
+
return this._methodType;
|
|
2426
|
+
}
|
|
2427
|
+
withMethodType(methodType) {
|
|
2428
|
+
return methodType === this._methodType ? this : new MemberReference_1(this._id, this._prefix, this._markers, this._containing, this._typeParameters, this._reference, this._type, methodType, this._variableType);
|
|
2429
|
+
}
|
|
2430
|
+
get variableType() {
|
|
2431
|
+
return this._variableType;
|
|
2432
|
+
}
|
|
2433
|
+
withVariableType(variableType) {
|
|
2434
|
+
return variableType === this._variableType ? this : new MemberReference_1(this._id, this._prefix, this._markers, this._containing, this._typeParameters, this._reference, this._type, this._methodType, variableType);
|
|
2435
|
+
}
|
|
2436
|
+
acceptJava(v, p) {
|
|
2437
|
+
return v.visitMemberReference(this, p);
|
|
2438
|
+
}
|
|
2439
|
+
get padding() {
|
|
2440
|
+
const t = this;
|
|
2441
|
+
return new class {
|
|
2442
|
+
get containing() {
|
|
2443
|
+
return t._containing;
|
|
2444
|
+
}
|
|
2445
|
+
withContaining(containing) {
|
|
2446
|
+
return t._containing === containing ? t : new MemberReference_1(t._id, t._prefix, t._markers, containing, t._typeParameters, t._reference, t._type, t._methodType, t._variableType);
|
|
2447
|
+
}
|
|
2448
|
+
get typeParameters() {
|
|
2449
|
+
return t._typeParameters;
|
|
2450
|
+
}
|
|
2451
|
+
withTypeParameters(typeParameters) {
|
|
2452
|
+
return t._typeParameters === typeParameters ? t : new MemberReference_1(t._id, t._prefix, t._markers, t._containing, typeParameters, t._reference, t._type, t._methodType, t._variableType);
|
|
2453
|
+
}
|
|
2454
|
+
get reference() {
|
|
2455
|
+
return t._reference;
|
|
2456
|
+
}
|
|
2457
|
+
withReference(reference) {
|
|
2458
|
+
return t._reference === reference ? t : new MemberReference_1(t._id, t._prefix, t._markers, t._containing, t._typeParameters, reference, t._type, t._methodType, t._variableType);
|
|
2459
|
+
}
|
|
2460
|
+
};
|
|
2461
|
+
}
|
|
2462
|
+
};
|
|
2463
|
+
exports.MemberReference = MemberReference;
|
|
2464
|
+
exports.MemberReference = MemberReference = MemberReference_1 = __decorate([
|
|
2465
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$MemberReference")
|
|
2466
|
+
], MemberReference);
|
|
2467
|
+
let MethodDeclaration = MethodDeclaration_1 = class MethodDeclaration extends (0, support_types_1.JMixin)(Object) {
|
|
2468
|
+
constructor(id, prefix, markers, leadingAnnotations, modifiers, typeParameters, returnTypeExpression, name, parameters, throws, body, defaultValue, methodType) {
|
|
2469
|
+
super();
|
|
2470
|
+
this._id = id;
|
|
2471
|
+
this._prefix = prefix;
|
|
2472
|
+
this._markers = markers;
|
|
2473
|
+
this._leadingAnnotations = leadingAnnotations;
|
|
2474
|
+
this._modifiers = modifiers;
|
|
2475
|
+
this._typeParameters = typeParameters;
|
|
2476
|
+
this._returnTypeExpression = returnTypeExpression;
|
|
2477
|
+
this._name = name;
|
|
2478
|
+
this._parameters = parameters;
|
|
2479
|
+
this._throws = throws;
|
|
2480
|
+
this._body = body;
|
|
2481
|
+
this._defaultValue = defaultValue;
|
|
2482
|
+
this._methodType = methodType;
|
|
2483
|
+
}
|
|
2484
|
+
get id() {
|
|
2485
|
+
return this._id;
|
|
2486
|
+
}
|
|
2487
|
+
withId(id) {
|
|
2488
|
+
return id === this._id ? this : new MethodDeclaration_1(id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._typeParameters, this._returnTypeExpression, this._name, this._parameters, this._throws, this._body, this._defaultValue, this._methodType);
|
|
2489
|
+
}
|
|
2490
|
+
get prefix() {
|
|
2491
|
+
return this._prefix;
|
|
2492
|
+
}
|
|
2493
|
+
withPrefix(prefix) {
|
|
2494
|
+
return prefix === this._prefix ? this : new MethodDeclaration_1(this._id, prefix, this._markers, this._leadingAnnotations, this._modifiers, this._typeParameters, this._returnTypeExpression, this._name, this._parameters, this._throws, this._body, this._defaultValue, this._methodType);
|
|
2495
|
+
}
|
|
2496
|
+
get markers() {
|
|
2497
|
+
return this._markers;
|
|
2498
|
+
}
|
|
2499
|
+
withMarkers(markers) {
|
|
2500
|
+
return markers === this._markers ? this : new MethodDeclaration_1(this._id, this._prefix, markers, this._leadingAnnotations, this._modifiers, this._typeParameters, this._returnTypeExpression, this._name, this._parameters, this._throws, this._body, this._defaultValue, this._methodType);
|
|
2501
|
+
}
|
|
2502
|
+
get leadingAnnotations() {
|
|
2503
|
+
return this._leadingAnnotations;
|
|
2504
|
+
}
|
|
2505
|
+
withLeadingAnnotations(leadingAnnotations) {
|
|
2506
|
+
return leadingAnnotations === this._leadingAnnotations ? this : new MethodDeclaration_1(this._id, this._prefix, this._markers, leadingAnnotations, this._modifiers, this._typeParameters, this._returnTypeExpression, this._name, this._parameters, this._throws, this._body, this._defaultValue, this._methodType);
|
|
2507
|
+
}
|
|
2508
|
+
get modifiers() {
|
|
2509
|
+
return this._modifiers;
|
|
2510
|
+
}
|
|
2511
|
+
withModifiers(modifiers) {
|
|
2512
|
+
return modifiers === this._modifiers ? this : new MethodDeclaration_1(this._id, this._prefix, this._markers, this._leadingAnnotations, modifiers, this._typeParameters, this._returnTypeExpression, this._name, this._parameters, this._throws, this._body, this._defaultValue, this._methodType);
|
|
2513
|
+
}
|
|
2514
|
+
get returnTypeExpression() {
|
|
2515
|
+
return this._returnTypeExpression;
|
|
2516
|
+
}
|
|
2517
|
+
withReturnTypeExpression(returnTypeExpression) {
|
|
2518
|
+
return returnTypeExpression === this._returnTypeExpression ? this : new MethodDeclaration_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._typeParameters, returnTypeExpression, this._name, this._parameters, this._throws, this._body, this._defaultValue, this._methodType);
|
|
2519
|
+
}
|
|
2520
|
+
get parameters() {
|
|
2521
|
+
return this._parameters.elements;
|
|
2522
|
+
}
|
|
2523
|
+
withParameters(parameters) {
|
|
2524
|
+
return this.padding.withParameters(support_types_1.JContainer.withElements(this._parameters, parameters));
|
|
2525
|
+
}
|
|
2526
|
+
get throws() {
|
|
2527
|
+
return this._throws === null ? null : this._throws.elements;
|
|
2528
|
+
}
|
|
2529
|
+
withThrows(throws) {
|
|
2530
|
+
return this.padding.withThrows(support_types_1.JContainer.withElementsNullable(this._throws, throws));
|
|
2531
|
+
}
|
|
2532
|
+
get body() {
|
|
2533
|
+
return this._body;
|
|
2534
|
+
}
|
|
2535
|
+
withBody(body) {
|
|
2536
|
+
return body === this._body ? this : new MethodDeclaration_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._typeParameters, this._returnTypeExpression, this._name, this._parameters, this._throws, body, this._defaultValue, this._methodType);
|
|
2537
|
+
}
|
|
2538
|
+
get defaultValue() {
|
|
2539
|
+
return this._defaultValue === null ? null : this._defaultValue.element;
|
|
2540
|
+
}
|
|
2541
|
+
withDefaultValue(defaultValue) {
|
|
2542
|
+
return this.padding.withDefaultValue(support_types_1.JLeftPadded.withElement(this._defaultValue, defaultValue));
|
|
2543
|
+
}
|
|
2544
|
+
get methodType() {
|
|
2545
|
+
return this._methodType;
|
|
2546
|
+
}
|
|
2547
|
+
withMethodType(methodType) {
|
|
2548
|
+
return methodType === this._methodType ? this : new MethodDeclaration_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._typeParameters, this._returnTypeExpression, this._name, this._parameters, this._throws, this._body, this._defaultValue, methodType);
|
|
2549
|
+
}
|
|
2550
|
+
acceptJava(v, p) {
|
|
2551
|
+
return v.visitMethodDeclaration(this, p);
|
|
2552
|
+
}
|
|
2553
|
+
get type() {
|
|
2554
|
+
return extensions.getJavaType(this);
|
|
2555
|
+
}
|
|
2556
|
+
withType(type) {
|
|
2557
|
+
return extensions.withJavaType(this, type);
|
|
2558
|
+
}
|
|
2559
|
+
get padding() {
|
|
2560
|
+
const t = this;
|
|
2561
|
+
return new class {
|
|
2562
|
+
get typeParameters() {
|
|
2563
|
+
return t._typeParameters;
|
|
2564
|
+
}
|
|
2565
|
+
withTypeParameters(typeParameters) {
|
|
2566
|
+
return t._typeParameters === typeParameters ? t : new MethodDeclaration_1(t._id, t._prefix, t._markers, t._leadingAnnotations, t._modifiers, typeParameters, t._returnTypeExpression, t._name, t._parameters, t._throws, t._body, t._defaultValue, t._methodType);
|
|
2567
|
+
}
|
|
2568
|
+
get name() {
|
|
2569
|
+
return t._name;
|
|
2570
|
+
}
|
|
2571
|
+
withName(name) {
|
|
2572
|
+
return t._name === name ? t : new MethodDeclaration_1(t._id, t._prefix, t._markers, t._leadingAnnotations, t._modifiers, t._typeParameters, t._returnTypeExpression, name, t._parameters, t._throws, t._body, t._defaultValue, t._methodType);
|
|
2573
|
+
}
|
|
2574
|
+
get parameters() {
|
|
2575
|
+
return t._parameters;
|
|
2576
|
+
}
|
|
2577
|
+
withParameters(parameters) {
|
|
2578
|
+
return t._parameters === parameters ? t : new MethodDeclaration_1(t._id, t._prefix, t._markers, t._leadingAnnotations, t._modifiers, t._typeParameters, t._returnTypeExpression, t._name, parameters, t._throws, t._body, t._defaultValue, t._methodType);
|
|
2579
|
+
}
|
|
2580
|
+
get throws() {
|
|
2581
|
+
return t._throws;
|
|
2582
|
+
}
|
|
2583
|
+
withThrows(throws) {
|
|
2584
|
+
return t._throws === throws ? t : new MethodDeclaration_1(t._id, t._prefix, t._markers, t._leadingAnnotations, t._modifiers, t._typeParameters, t._returnTypeExpression, t._name, t._parameters, throws, t._body, t._defaultValue, t._methodType);
|
|
2585
|
+
}
|
|
2586
|
+
get defaultValue() {
|
|
2587
|
+
return t._defaultValue;
|
|
2588
|
+
}
|
|
2589
|
+
withDefaultValue(defaultValue) {
|
|
2590
|
+
return t._defaultValue === defaultValue ? t : new MethodDeclaration_1(t._id, t._prefix, t._markers, t._leadingAnnotations, t._modifiers, t._typeParameters, t._returnTypeExpression, t._name, t._parameters, t._throws, t._body, defaultValue, t._methodType);
|
|
2591
|
+
}
|
|
2592
|
+
};
|
|
2593
|
+
}
|
|
2594
|
+
get annotations() {
|
|
2595
|
+
const t = this;
|
|
2596
|
+
return new class {
|
|
2597
|
+
get typeParameters() {
|
|
2598
|
+
return t._typeParameters;
|
|
2599
|
+
}
|
|
2600
|
+
withTypeParameters(typeParameters) {
|
|
2601
|
+
return t._typeParameters === typeParameters ? t : new MethodDeclaration_1(t._id, t._prefix, t._markers, t._leadingAnnotations, t._modifiers, typeParameters, t._returnTypeExpression, t._name, t._parameters, t._throws, t._body, t._defaultValue, t._methodType);
|
|
2602
|
+
}
|
|
2603
|
+
get name() {
|
|
2604
|
+
return t._name;
|
|
2605
|
+
}
|
|
2606
|
+
withName(name) {
|
|
2607
|
+
return t._name === name ? t : new MethodDeclaration_1(t._id, t._prefix, t._markers, t._leadingAnnotations, t._modifiers, t._typeParameters, t._returnTypeExpression, name, t._parameters, t._throws, t._body, t._defaultValue, t._methodType);
|
|
2608
|
+
}
|
|
2609
|
+
get parameters() {
|
|
2610
|
+
return t._parameters;
|
|
2611
|
+
}
|
|
2612
|
+
withParameters(parameters) {
|
|
2613
|
+
return t._parameters === parameters ? t : new MethodDeclaration_1(t._id, t._prefix, t._markers, t._leadingAnnotations, t._modifiers, t._typeParameters, t._returnTypeExpression, t._name, parameters, t._throws, t._body, t._defaultValue, t._methodType);
|
|
2614
|
+
}
|
|
2615
|
+
get throws() {
|
|
2616
|
+
return t._throws;
|
|
2617
|
+
}
|
|
2618
|
+
withThrows(throws) {
|
|
2619
|
+
return t._throws === throws ? t : new MethodDeclaration_1(t._id, t._prefix, t._markers, t._leadingAnnotations, t._modifiers, t._typeParameters, t._returnTypeExpression, t._name, t._parameters, throws, t._body, t._defaultValue, t._methodType);
|
|
2620
|
+
}
|
|
2621
|
+
get defaultValue() {
|
|
2622
|
+
return t._defaultValue;
|
|
2623
|
+
}
|
|
2624
|
+
withDefaultValue(defaultValue) {
|
|
2625
|
+
return t._defaultValue === defaultValue ? t : new MethodDeclaration_1(t._id, t._prefix, t._markers, t._leadingAnnotations, t._modifiers, t._typeParameters, t._returnTypeExpression, t._name, t._parameters, t._throws, t._body, defaultValue, t._methodType);
|
|
2626
|
+
}
|
|
2627
|
+
};
|
|
2628
|
+
}
|
|
2629
|
+
};
|
|
2630
|
+
exports.MethodDeclaration = MethodDeclaration;
|
|
2631
|
+
exports.MethodDeclaration = MethodDeclaration = MethodDeclaration_1 = __decorate([
|
|
2632
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$MethodDeclaration")
|
|
2633
|
+
], MethodDeclaration);
|
|
2634
|
+
(function (MethodDeclaration) {
|
|
2635
|
+
class IdentifierWithAnnotations {
|
|
2636
|
+
constructor(identifier, annotations) {
|
|
2637
|
+
this._identifier = identifier;
|
|
2638
|
+
this._annotations = annotations;
|
|
2639
|
+
}
|
|
2640
|
+
get identifier() {
|
|
2641
|
+
return this._identifier;
|
|
2642
|
+
}
|
|
2643
|
+
withIdentifier(identifier) {
|
|
2644
|
+
return identifier === this._identifier ? this : new MethodDeclaration.IdentifierWithAnnotations(identifier, this._annotations);
|
|
2645
|
+
}
|
|
2646
|
+
get annotations() {
|
|
2647
|
+
return this._annotations;
|
|
2648
|
+
}
|
|
2649
|
+
withAnnotations(annotations) {
|
|
2650
|
+
return annotations === this._annotations ? this : new MethodDeclaration.IdentifierWithAnnotations(this._identifier, annotations);
|
|
2651
|
+
}
|
|
2652
|
+
}
|
|
2653
|
+
MethodDeclaration.IdentifierWithAnnotations = IdentifierWithAnnotations;
|
|
2654
|
+
})(MethodDeclaration || (exports.MethodDeclaration = MethodDeclaration = {}));
|
|
2655
|
+
let MethodInvocation = MethodInvocation_1 = class MethodInvocation extends (0, support_types_1.JMixin)(Object) {
|
|
2656
|
+
constructor(id, prefix, markers, select, typeParameters, name, _arguments, methodType) {
|
|
2657
|
+
super();
|
|
2658
|
+
this._id = id;
|
|
2659
|
+
this._prefix = prefix;
|
|
2660
|
+
this._markers = markers;
|
|
2661
|
+
this._select = select;
|
|
2662
|
+
this._typeParameters = typeParameters;
|
|
2663
|
+
this._name = name;
|
|
2664
|
+
this._arguments = _arguments;
|
|
2665
|
+
this._methodType = methodType;
|
|
2666
|
+
}
|
|
2667
|
+
get id() {
|
|
2668
|
+
return this._id;
|
|
2669
|
+
}
|
|
2670
|
+
withId(id) {
|
|
2671
|
+
return id === this._id ? this : new MethodInvocation_1(id, this._prefix, this._markers, this._select, this._typeParameters, this._name, this._arguments, this._methodType);
|
|
2672
|
+
}
|
|
2673
|
+
get prefix() {
|
|
2674
|
+
return this._prefix;
|
|
2675
|
+
}
|
|
2676
|
+
withPrefix(prefix) {
|
|
2677
|
+
return prefix === this._prefix ? this : new MethodInvocation_1(this._id, prefix, this._markers, this._select, this._typeParameters, this._name, this._arguments, this._methodType);
|
|
2678
|
+
}
|
|
2679
|
+
get markers() {
|
|
2680
|
+
return this._markers;
|
|
2681
|
+
}
|
|
2682
|
+
withMarkers(markers) {
|
|
2683
|
+
return markers === this._markers ? this : new MethodInvocation_1(this._id, this._prefix, markers, this._select, this._typeParameters, this._name, this._arguments, this._methodType);
|
|
2684
|
+
}
|
|
2685
|
+
get select() {
|
|
2686
|
+
return this._select === null ? null : this._select.element;
|
|
2687
|
+
}
|
|
2688
|
+
withSelect(select) {
|
|
2689
|
+
return this.padding.withSelect(support_types_1.JRightPadded.withElement(this._select, select));
|
|
2690
|
+
}
|
|
2691
|
+
get typeParameters() {
|
|
2692
|
+
return this._typeParameters === null ? null : this._typeParameters.elements;
|
|
2693
|
+
}
|
|
2694
|
+
withTypeParameters(typeParameters) {
|
|
2695
|
+
return this.padding.withTypeParameters(support_types_1.JContainer.withElementsNullable(this._typeParameters, typeParameters));
|
|
2696
|
+
}
|
|
2697
|
+
get name() {
|
|
2698
|
+
return this._name;
|
|
2699
|
+
}
|
|
2700
|
+
withName(name) {
|
|
2701
|
+
return extensions.withName(this, name);
|
|
2702
|
+
}
|
|
2703
|
+
get arguments() {
|
|
2704
|
+
return this._arguments.elements;
|
|
2705
|
+
}
|
|
2706
|
+
withArguments(_arguments) {
|
|
2707
|
+
return this.padding.withArguments(support_types_1.JContainer.withElements(this._arguments, _arguments));
|
|
2708
|
+
}
|
|
2709
|
+
get methodType() {
|
|
2710
|
+
return this._methodType;
|
|
2711
|
+
}
|
|
2712
|
+
withMethodType(methodType) {
|
|
2713
|
+
return methodType === this._methodType ? this : new MethodInvocation_1(this._id, this._prefix, this._markers, this._select, this._typeParameters, this._name, this._arguments, methodType);
|
|
2714
|
+
}
|
|
2715
|
+
acceptJava(v, p) {
|
|
2716
|
+
return v.visitMethodInvocation(this, p);
|
|
2717
|
+
}
|
|
2718
|
+
get type() {
|
|
2719
|
+
return extensions.getJavaType(this);
|
|
2720
|
+
}
|
|
2721
|
+
withType(type) {
|
|
2722
|
+
return extensions.withJavaType(this, type);
|
|
2723
|
+
}
|
|
2724
|
+
get padding() {
|
|
2725
|
+
const t = this;
|
|
2726
|
+
return new class {
|
|
2727
|
+
get select() {
|
|
2728
|
+
return t._select;
|
|
2729
|
+
}
|
|
2730
|
+
withSelect(select) {
|
|
2731
|
+
return t._select === select ? t : new MethodInvocation_1(t._id, t._prefix, t._markers, select, t._typeParameters, t._name, t._arguments, t._methodType);
|
|
2732
|
+
}
|
|
2733
|
+
get typeParameters() {
|
|
2734
|
+
return t._typeParameters;
|
|
2735
|
+
}
|
|
2736
|
+
withTypeParameters(typeParameters) {
|
|
2737
|
+
return t._typeParameters === typeParameters ? t : new MethodInvocation_1(t._id, t._prefix, t._markers, t._select, typeParameters, t._name, t._arguments, t._methodType);
|
|
2738
|
+
}
|
|
2739
|
+
get arguments() {
|
|
2740
|
+
return t._arguments;
|
|
2741
|
+
}
|
|
2742
|
+
withArguments(_arguments) {
|
|
2743
|
+
return t._arguments === _arguments ? t : new MethodInvocation_1(t._id, t._prefix, t._markers, t._select, t._typeParameters, t._name, _arguments, t._methodType);
|
|
2744
|
+
}
|
|
2745
|
+
};
|
|
2746
|
+
}
|
|
2747
|
+
};
|
|
2748
|
+
exports.MethodInvocation = MethodInvocation;
|
|
2749
|
+
exports.MethodInvocation = MethodInvocation = MethodInvocation_1 = __decorate([
|
|
2750
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$MethodInvocation")
|
|
2751
|
+
], MethodInvocation);
|
|
2752
|
+
let Modifier = Modifier_1 = class Modifier extends (0, support_types_1.JMixin)(Object) {
|
|
2753
|
+
constructor(id, prefix, markers, keyword, _type, annotations) {
|
|
2754
|
+
super();
|
|
2755
|
+
this._id = id;
|
|
2756
|
+
this._prefix = prefix;
|
|
2757
|
+
this._markers = markers;
|
|
2758
|
+
this._keyword = keyword;
|
|
2759
|
+
this._type = _type;
|
|
2760
|
+
this._annotations = annotations;
|
|
2761
|
+
}
|
|
2762
|
+
get id() {
|
|
2763
|
+
return this._id;
|
|
2764
|
+
}
|
|
2765
|
+
withId(id) {
|
|
2766
|
+
return id === this._id ? this : new Modifier_1(id, this._prefix, this._markers, this._keyword, this._type, this._annotations);
|
|
2767
|
+
}
|
|
2768
|
+
get prefix() {
|
|
2769
|
+
return this._prefix;
|
|
2770
|
+
}
|
|
2771
|
+
withPrefix(prefix) {
|
|
2772
|
+
return prefix === this._prefix ? this : new Modifier_1(this._id, prefix, this._markers, this._keyword, this._type, this._annotations);
|
|
2773
|
+
}
|
|
2774
|
+
get markers() {
|
|
2775
|
+
return this._markers;
|
|
2776
|
+
}
|
|
2777
|
+
withMarkers(markers) {
|
|
2778
|
+
return markers === this._markers ? this : new Modifier_1(this._id, this._prefix, markers, this._keyword, this._type, this._annotations);
|
|
2779
|
+
}
|
|
2780
|
+
get keyword() {
|
|
2781
|
+
return this._keyword;
|
|
2782
|
+
}
|
|
2783
|
+
withKeyword(keyword) {
|
|
2784
|
+
return keyword === this._keyword ? this : new Modifier_1(this._id, this._prefix, this._markers, keyword, this._type, this._annotations);
|
|
2785
|
+
}
|
|
2786
|
+
get type() {
|
|
2787
|
+
return this._type;
|
|
2788
|
+
}
|
|
2789
|
+
withType(_type) {
|
|
2790
|
+
return _type === this._type ? this : new Modifier_1(this._id, this._prefix, this._markers, this._keyword, _type, this._annotations);
|
|
2791
|
+
}
|
|
2792
|
+
get annotations() {
|
|
2793
|
+
return this._annotations;
|
|
2794
|
+
}
|
|
2795
|
+
withAnnotations(annotations) {
|
|
2796
|
+
return annotations === this._annotations ? this : new Modifier_1(this._id, this._prefix, this._markers, this._keyword, this._type, annotations);
|
|
2797
|
+
}
|
|
2798
|
+
acceptJava(v, p) {
|
|
2799
|
+
return v.visitModifier(this, p);
|
|
2800
|
+
}
|
|
2801
|
+
};
|
|
2802
|
+
exports.Modifier = Modifier;
|
|
2803
|
+
exports.Modifier = Modifier = Modifier_1 = __decorate([
|
|
2804
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Modifier")
|
|
2805
|
+
], Modifier);
|
|
2806
|
+
(function (Modifier) {
|
|
2807
|
+
let Type;
|
|
2808
|
+
(function (Type) {
|
|
2809
|
+
Type[Type["Default"] = 0] = "Default";
|
|
2810
|
+
Type[Type["Public"] = 1] = "Public";
|
|
2811
|
+
Type[Type["Protected"] = 2] = "Protected";
|
|
2812
|
+
Type[Type["Private"] = 3] = "Private";
|
|
2813
|
+
Type[Type["Abstract"] = 4] = "Abstract";
|
|
2814
|
+
Type[Type["Static"] = 5] = "Static";
|
|
2815
|
+
Type[Type["Final"] = 6] = "Final";
|
|
2816
|
+
Type[Type["Sealed"] = 7] = "Sealed";
|
|
2817
|
+
Type[Type["NonSealed"] = 8] = "NonSealed";
|
|
2818
|
+
Type[Type["Transient"] = 9] = "Transient";
|
|
2819
|
+
Type[Type["Volatile"] = 10] = "Volatile";
|
|
2820
|
+
Type[Type["Synchronized"] = 11] = "Synchronized";
|
|
2821
|
+
Type[Type["Native"] = 12] = "Native";
|
|
2822
|
+
Type[Type["Strictfp"] = 13] = "Strictfp";
|
|
2823
|
+
Type[Type["Async"] = 14] = "Async";
|
|
2824
|
+
Type[Type["Reified"] = 15] = "Reified";
|
|
2825
|
+
Type[Type["Inline"] = 16] = "Inline";
|
|
2826
|
+
Type[Type["LanguageExtension"] = 17] = "LanguageExtension";
|
|
2827
|
+
})(Type = Modifier.Type || (Modifier.Type = {}));
|
|
2828
|
+
})(Modifier || (exports.Modifier = Modifier = {}));
|
|
2829
|
+
let MultiCatch = MultiCatch_1 = class MultiCatch extends (0, support_types_1.JMixin)(Object) {
|
|
2830
|
+
constructor(id, prefix, markers, alternatives) {
|
|
2831
|
+
super();
|
|
2832
|
+
this._id = id;
|
|
2833
|
+
this._prefix = prefix;
|
|
2834
|
+
this._markers = markers;
|
|
2835
|
+
this._alternatives = alternatives;
|
|
2836
|
+
}
|
|
2837
|
+
get id() {
|
|
2838
|
+
return this._id;
|
|
2839
|
+
}
|
|
2840
|
+
withId(id) {
|
|
2841
|
+
return id === this._id ? this : new MultiCatch_1(id, this._prefix, this._markers, this._alternatives);
|
|
2842
|
+
}
|
|
2843
|
+
get prefix() {
|
|
2844
|
+
return this._prefix;
|
|
2845
|
+
}
|
|
2846
|
+
withPrefix(prefix) {
|
|
2847
|
+
return prefix === this._prefix ? this : new MultiCatch_1(this._id, prefix, this._markers, this._alternatives);
|
|
2848
|
+
}
|
|
2849
|
+
get markers() {
|
|
2850
|
+
return this._markers;
|
|
2851
|
+
}
|
|
2852
|
+
withMarkers(markers) {
|
|
2853
|
+
return markers === this._markers ? this : new MultiCatch_1(this._id, this._prefix, markers, this._alternatives);
|
|
2854
|
+
}
|
|
2855
|
+
get alternatives() {
|
|
2856
|
+
return support_types_1.JRightPadded.getElements(this._alternatives);
|
|
2857
|
+
}
|
|
2858
|
+
withAlternatives(alternatives) {
|
|
2859
|
+
return this.padding.withAlternatives(support_types_1.JRightPadded.withElements(this._alternatives, alternatives));
|
|
2860
|
+
}
|
|
2861
|
+
acceptJava(v, p) {
|
|
2862
|
+
return v.visitMultiCatch(this, p);
|
|
2863
|
+
}
|
|
2864
|
+
get type() {
|
|
2865
|
+
return extensions.getJavaType(this);
|
|
2866
|
+
}
|
|
2867
|
+
withType(type) {
|
|
2868
|
+
return extensions.withJavaType(this, type);
|
|
2869
|
+
}
|
|
2870
|
+
get padding() {
|
|
2871
|
+
const t = this;
|
|
2872
|
+
return new class {
|
|
2873
|
+
get alternatives() {
|
|
2874
|
+
return t._alternatives;
|
|
2875
|
+
}
|
|
2876
|
+
withAlternatives(alternatives) {
|
|
2877
|
+
return t._alternatives === alternatives ? t : new MultiCatch_1(t._id, t._prefix, t._markers, alternatives);
|
|
2878
|
+
}
|
|
2879
|
+
};
|
|
2880
|
+
}
|
|
2881
|
+
};
|
|
2882
|
+
exports.MultiCatch = MultiCatch;
|
|
2883
|
+
exports.MultiCatch = MultiCatch = MultiCatch_1 = __decorate([
|
|
2884
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$MultiCatch")
|
|
2885
|
+
], MultiCatch);
|
|
2886
|
+
let NewArray = NewArray_1 = class NewArray extends (0, support_types_1.JMixin)(Object) {
|
|
2887
|
+
constructor(id, prefix, markers, typeExpression, dimensions, initializer, _type) {
|
|
2888
|
+
super();
|
|
2889
|
+
this._id = id;
|
|
2890
|
+
this._prefix = prefix;
|
|
2891
|
+
this._markers = markers;
|
|
2892
|
+
this._typeExpression = typeExpression;
|
|
2893
|
+
this._dimensions = dimensions;
|
|
2894
|
+
this._initializer = initializer;
|
|
2895
|
+
this._type = _type;
|
|
2896
|
+
}
|
|
2897
|
+
get id() {
|
|
2898
|
+
return this._id;
|
|
2899
|
+
}
|
|
2900
|
+
withId(id) {
|
|
2901
|
+
return id === this._id ? this : new NewArray_1(id, this._prefix, this._markers, this._typeExpression, this._dimensions, this._initializer, this._type);
|
|
2902
|
+
}
|
|
2903
|
+
get prefix() {
|
|
2904
|
+
return this._prefix;
|
|
2905
|
+
}
|
|
2906
|
+
withPrefix(prefix) {
|
|
2907
|
+
return prefix === this._prefix ? this : new NewArray_1(this._id, prefix, this._markers, this._typeExpression, this._dimensions, this._initializer, this._type);
|
|
2908
|
+
}
|
|
2909
|
+
get markers() {
|
|
2910
|
+
return this._markers;
|
|
2911
|
+
}
|
|
2912
|
+
withMarkers(markers) {
|
|
2913
|
+
return markers === this._markers ? this : new NewArray_1(this._id, this._prefix, markers, this._typeExpression, this._dimensions, this._initializer, this._type);
|
|
2914
|
+
}
|
|
2915
|
+
get typeExpression() {
|
|
2916
|
+
return this._typeExpression;
|
|
2917
|
+
}
|
|
2918
|
+
withTypeExpression(typeExpression) {
|
|
2919
|
+
return typeExpression === this._typeExpression ? this : new NewArray_1(this._id, this._prefix, this._markers, typeExpression, this._dimensions, this._initializer, this._type);
|
|
2920
|
+
}
|
|
2921
|
+
get dimensions() {
|
|
2922
|
+
return this._dimensions;
|
|
2923
|
+
}
|
|
2924
|
+
withDimensions(dimensions) {
|
|
2925
|
+
return dimensions === this._dimensions ? this : new NewArray_1(this._id, this._prefix, this._markers, this._typeExpression, dimensions, this._initializer, this._type);
|
|
2926
|
+
}
|
|
2927
|
+
get initializer() {
|
|
2928
|
+
return this._initializer === null ? null : this._initializer.elements;
|
|
2929
|
+
}
|
|
2930
|
+
withInitializer(initializer) {
|
|
2931
|
+
return this.padding.withInitializer(support_types_1.JContainer.withElementsNullable(this._initializer, initializer));
|
|
2932
|
+
}
|
|
2933
|
+
get type() {
|
|
2934
|
+
return this._type;
|
|
2935
|
+
}
|
|
2936
|
+
withType(_type) {
|
|
2937
|
+
return _type === this._type ? this : new NewArray_1(this._id, this._prefix, this._markers, this._typeExpression, this._dimensions, this._initializer, _type);
|
|
2938
|
+
}
|
|
2939
|
+
acceptJava(v, p) {
|
|
2940
|
+
return v.visitNewArray(this, p);
|
|
2941
|
+
}
|
|
2942
|
+
get padding() {
|
|
2943
|
+
const t = this;
|
|
2944
|
+
return new class {
|
|
2945
|
+
get initializer() {
|
|
2946
|
+
return t._initializer;
|
|
2947
|
+
}
|
|
2948
|
+
withInitializer(initializer) {
|
|
2949
|
+
return t._initializer === initializer ? t : new NewArray_1(t._id, t._prefix, t._markers, t._typeExpression, t._dimensions, initializer, t._type);
|
|
2950
|
+
}
|
|
2951
|
+
};
|
|
2952
|
+
}
|
|
2953
|
+
};
|
|
2954
|
+
exports.NewArray = NewArray;
|
|
2955
|
+
exports.NewArray = NewArray = NewArray_1 = __decorate([
|
|
2956
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$NewArray")
|
|
2957
|
+
], NewArray);
|
|
2958
|
+
let ArrayDimension = ArrayDimension_1 = class ArrayDimension extends (0, support_types_1.JMixin)(Object) {
|
|
2959
|
+
constructor(id, prefix, markers, index) {
|
|
2960
|
+
super();
|
|
2961
|
+
this._id = id;
|
|
2962
|
+
this._prefix = prefix;
|
|
2963
|
+
this._markers = markers;
|
|
2964
|
+
this._index = index;
|
|
2965
|
+
}
|
|
2966
|
+
get id() {
|
|
2967
|
+
return this._id;
|
|
2968
|
+
}
|
|
2969
|
+
withId(id) {
|
|
2970
|
+
return id === this._id ? this : new ArrayDimension_1(id, this._prefix, this._markers, this._index);
|
|
2971
|
+
}
|
|
2972
|
+
get prefix() {
|
|
2973
|
+
return this._prefix;
|
|
2974
|
+
}
|
|
2975
|
+
withPrefix(prefix) {
|
|
2976
|
+
return prefix === this._prefix ? this : new ArrayDimension_1(this._id, prefix, this._markers, this._index);
|
|
2977
|
+
}
|
|
2978
|
+
get markers() {
|
|
2979
|
+
return this._markers;
|
|
2980
|
+
}
|
|
2981
|
+
withMarkers(markers) {
|
|
2982
|
+
return markers === this._markers ? this : new ArrayDimension_1(this._id, this._prefix, markers, this._index);
|
|
2983
|
+
}
|
|
2984
|
+
get index() {
|
|
2985
|
+
return this._index.element;
|
|
2986
|
+
}
|
|
2987
|
+
withIndex(index) {
|
|
2988
|
+
return this.padding.withIndex(this._index.withElement(index));
|
|
2989
|
+
}
|
|
2990
|
+
acceptJava(v, p) {
|
|
2991
|
+
return v.visitArrayDimension(this, p);
|
|
2992
|
+
}
|
|
2993
|
+
get padding() {
|
|
2994
|
+
const t = this;
|
|
2995
|
+
return new class {
|
|
2996
|
+
get index() {
|
|
2997
|
+
return t._index;
|
|
2998
|
+
}
|
|
2999
|
+
withIndex(index) {
|
|
3000
|
+
return t._index === index ? t : new ArrayDimension_1(t._id, t._prefix, t._markers, index);
|
|
3001
|
+
}
|
|
3002
|
+
};
|
|
3003
|
+
}
|
|
3004
|
+
};
|
|
3005
|
+
exports.ArrayDimension = ArrayDimension;
|
|
3006
|
+
exports.ArrayDimension = ArrayDimension = ArrayDimension_1 = __decorate([
|
|
3007
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$ArrayDimension")
|
|
3008
|
+
], ArrayDimension);
|
|
3009
|
+
let NewClass = NewClass_1 = class NewClass extends (0, support_types_1.JMixin)(Object) {
|
|
3010
|
+
constructor(id, prefix, markers, enclosing, _new, clazz, _arguments, body, constructorType) {
|
|
3011
|
+
super();
|
|
3012
|
+
this._id = id;
|
|
3013
|
+
this._prefix = prefix;
|
|
3014
|
+
this._markers = markers;
|
|
3015
|
+
this._enclosing = enclosing;
|
|
3016
|
+
this._new = _new;
|
|
3017
|
+
this._clazz = clazz;
|
|
3018
|
+
this._arguments = _arguments;
|
|
3019
|
+
this._body = body;
|
|
3020
|
+
this._constructorType = constructorType;
|
|
3021
|
+
}
|
|
3022
|
+
get id() {
|
|
3023
|
+
return this._id;
|
|
3024
|
+
}
|
|
3025
|
+
withId(id) {
|
|
3026
|
+
return id === this._id ? this : new NewClass_1(id, this._prefix, this._markers, this._enclosing, this._new, this._clazz, this._arguments, this._body, this._constructorType);
|
|
3027
|
+
}
|
|
3028
|
+
get prefix() {
|
|
3029
|
+
return this._prefix;
|
|
3030
|
+
}
|
|
3031
|
+
withPrefix(prefix) {
|
|
3032
|
+
return prefix === this._prefix ? this : new NewClass_1(this._id, prefix, this._markers, this._enclosing, this._new, this._clazz, this._arguments, this._body, this._constructorType);
|
|
3033
|
+
}
|
|
3034
|
+
get markers() {
|
|
3035
|
+
return this._markers;
|
|
3036
|
+
}
|
|
3037
|
+
withMarkers(markers) {
|
|
3038
|
+
return markers === this._markers ? this : new NewClass_1(this._id, this._prefix, markers, this._enclosing, this._new, this._clazz, this._arguments, this._body, this._constructorType);
|
|
3039
|
+
}
|
|
3040
|
+
get enclosing() {
|
|
3041
|
+
return this._enclosing === null ? null : this._enclosing.element;
|
|
3042
|
+
}
|
|
3043
|
+
withEnclosing(enclosing) {
|
|
3044
|
+
return this.padding.withEnclosing(support_types_1.JRightPadded.withElement(this._enclosing, enclosing));
|
|
3045
|
+
}
|
|
3046
|
+
get new() {
|
|
3047
|
+
return this._new;
|
|
3048
|
+
}
|
|
3049
|
+
withNew(_new) {
|
|
3050
|
+
return _new === this._new ? this : new NewClass_1(this._id, this._prefix, this._markers, this._enclosing, _new, this._clazz, this._arguments, this._body, this._constructorType);
|
|
3051
|
+
}
|
|
3052
|
+
get clazz() {
|
|
3053
|
+
return this._clazz;
|
|
3054
|
+
}
|
|
3055
|
+
withClazz(clazz) {
|
|
3056
|
+
return clazz === this._clazz ? this : new NewClass_1(this._id, this._prefix, this._markers, this._enclosing, this._new, clazz, this._arguments, this._body, this._constructorType);
|
|
3057
|
+
}
|
|
3058
|
+
get arguments() {
|
|
3059
|
+
return this._arguments.elements;
|
|
3060
|
+
}
|
|
3061
|
+
withArguments(_arguments) {
|
|
3062
|
+
return this.padding.withArguments(support_types_1.JContainer.withElements(this._arguments, _arguments));
|
|
3063
|
+
}
|
|
3064
|
+
get body() {
|
|
3065
|
+
return this._body;
|
|
3066
|
+
}
|
|
3067
|
+
withBody(body) {
|
|
3068
|
+
return body === this._body ? this : new NewClass_1(this._id, this._prefix, this._markers, this._enclosing, this._new, this._clazz, this._arguments, body, this._constructorType);
|
|
3069
|
+
}
|
|
3070
|
+
get constructorType() {
|
|
3071
|
+
return this._constructorType;
|
|
3072
|
+
}
|
|
3073
|
+
withConstructorType(constructorType) {
|
|
3074
|
+
return constructorType === this._constructorType ? this : new NewClass_1(this._id, this._prefix, this._markers, this._enclosing, this._new, this._clazz, this._arguments, this._body, constructorType);
|
|
3075
|
+
}
|
|
3076
|
+
acceptJava(v, p) {
|
|
3077
|
+
return v.visitNewClass(this, p);
|
|
3078
|
+
}
|
|
3079
|
+
get type() {
|
|
3080
|
+
return extensions.getJavaType(this);
|
|
3081
|
+
}
|
|
3082
|
+
withType(type) {
|
|
3083
|
+
return extensions.withJavaType(this, type);
|
|
3084
|
+
}
|
|
3085
|
+
get padding() {
|
|
3086
|
+
const t = this;
|
|
3087
|
+
return new class {
|
|
3088
|
+
get enclosing() {
|
|
3089
|
+
return t._enclosing;
|
|
3090
|
+
}
|
|
3091
|
+
withEnclosing(enclosing) {
|
|
3092
|
+
return t._enclosing === enclosing ? t : new NewClass_1(t._id, t._prefix, t._markers, enclosing, t._new, t._clazz, t._arguments, t._body, t._constructorType);
|
|
3093
|
+
}
|
|
3094
|
+
get arguments() {
|
|
3095
|
+
return t._arguments;
|
|
3096
|
+
}
|
|
3097
|
+
withArguments(_arguments) {
|
|
3098
|
+
return t._arguments === _arguments ? t : new NewClass_1(t._id, t._prefix, t._markers, t._enclosing, t._new, t._clazz, _arguments, t._body, t._constructorType);
|
|
3099
|
+
}
|
|
3100
|
+
};
|
|
3101
|
+
}
|
|
3102
|
+
};
|
|
3103
|
+
exports.NewClass = NewClass;
|
|
3104
|
+
exports.NewClass = NewClass = NewClass_1 = __decorate([
|
|
3105
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$NewClass")
|
|
3106
|
+
], NewClass);
|
|
3107
|
+
let NullableType = NullableType_1 = class NullableType extends (0, support_types_1.JMixin)(Object) {
|
|
3108
|
+
constructor(id, prefix, markers, annotations, typeTree) {
|
|
3109
|
+
super();
|
|
3110
|
+
this._id = id;
|
|
3111
|
+
this._prefix = prefix;
|
|
3112
|
+
this._markers = markers;
|
|
3113
|
+
this._annotations = annotations;
|
|
3114
|
+
this._typeTree = typeTree;
|
|
3115
|
+
}
|
|
3116
|
+
get id() {
|
|
3117
|
+
return this._id;
|
|
3118
|
+
}
|
|
3119
|
+
withId(id) {
|
|
3120
|
+
return id === this._id ? this : new NullableType_1(id, this._prefix, this._markers, this._annotations, this._typeTree);
|
|
3121
|
+
}
|
|
3122
|
+
get prefix() {
|
|
3123
|
+
return this._prefix;
|
|
3124
|
+
}
|
|
3125
|
+
withPrefix(prefix) {
|
|
3126
|
+
return prefix === this._prefix ? this : new NullableType_1(this._id, prefix, this._markers, this._annotations, this._typeTree);
|
|
3127
|
+
}
|
|
3128
|
+
get markers() {
|
|
3129
|
+
return this._markers;
|
|
3130
|
+
}
|
|
3131
|
+
withMarkers(markers) {
|
|
3132
|
+
return markers === this._markers ? this : new NullableType_1(this._id, this._prefix, markers, this._annotations, this._typeTree);
|
|
3133
|
+
}
|
|
3134
|
+
get annotations() {
|
|
3135
|
+
return this._annotations;
|
|
3136
|
+
}
|
|
3137
|
+
withAnnotations(annotations) {
|
|
3138
|
+
return annotations === this._annotations ? this : new NullableType_1(this._id, this._prefix, this._markers, annotations, this._typeTree);
|
|
3139
|
+
}
|
|
3140
|
+
get typeTree() {
|
|
3141
|
+
return this._typeTree.element;
|
|
3142
|
+
}
|
|
3143
|
+
withTypeTree(typeTree) {
|
|
3144
|
+
return this.padding.withTypeTree(this._typeTree.withElement(typeTree));
|
|
3145
|
+
}
|
|
3146
|
+
acceptJava(v, p) {
|
|
3147
|
+
return v.visitNullableType(this, p);
|
|
3148
|
+
}
|
|
3149
|
+
get type() {
|
|
3150
|
+
return extensions.getJavaType(this);
|
|
3151
|
+
}
|
|
3152
|
+
withType(type) {
|
|
3153
|
+
return extensions.withJavaType(this, type);
|
|
3154
|
+
}
|
|
3155
|
+
get padding() {
|
|
3156
|
+
const t = this;
|
|
3157
|
+
return new class {
|
|
3158
|
+
get typeTree() {
|
|
3159
|
+
return t._typeTree;
|
|
3160
|
+
}
|
|
3161
|
+
withTypeTree(typeTree) {
|
|
3162
|
+
return t._typeTree === typeTree ? t : new NullableType_1(t._id, t._prefix, t._markers, t._annotations, typeTree);
|
|
3163
|
+
}
|
|
3164
|
+
};
|
|
3165
|
+
}
|
|
3166
|
+
};
|
|
3167
|
+
exports.NullableType = NullableType;
|
|
3168
|
+
exports.NullableType = NullableType = NullableType_1 = __decorate([
|
|
3169
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$NullableType")
|
|
3170
|
+
], NullableType);
|
|
3171
|
+
let Package = Package_1 = class Package extends (0, support_types_1.JMixin)(Object) {
|
|
3172
|
+
constructor(id, prefix, markers, expression, annotations) {
|
|
3173
|
+
super();
|
|
3174
|
+
this._id = id;
|
|
3175
|
+
this._prefix = prefix;
|
|
3176
|
+
this._markers = markers;
|
|
3177
|
+
this._expression = expression;
|
|
3178
|
+
this._annotations = annotations;
|
|
3179
|
+
}
|
|
3180
|
+
get id() {
|
|
3181
|
+
return this._id;
|
|
3182
|
+
}
|
|
3183
|
+
withId(id) {
|
|
3184
|
+
return id === this._id ? this : new Package_1(id, this._prefix, this._markers, this._expression, this._annotations);
|
|
3185
|
+
}
|
|
3186
|
+
get prefix() {
|
|
3187
|
+
return this._prefix;
|
|
3188
|
+
}
|
|
3189
|
+
withPrefix(prefix) {
|
|
3190
|
+
return prefix === this._prefix ? this : new Package_1(this._id, prefix, this._markers, this._expression, this._annotations);
|
|
3191
|
+
}
|
|
3192
|
+
get markers() {
|
|
3193
|
+
return this._markers;
|
|
3194
|
+
}
|
|
3195
|
+
withMarkers(markers) {
|
|
3196
|
+
return markers === this._markers ? this : new Package_1(this._id, this._prefix, markers, this._expression, this._annotations);
|
|
3197
|
+
}
|
|
3198
|
+
get expression() {
|
|
3199
|
+
return this._expression;
|
|
3200
|
+
}
|
|
3201
|
+
withExpression(expression) {
|
|
3202
|
+
return expression === this._expression ? this : new Package_1(this._id, this._prefix, this._markers, expression, this._annotations);
|
|
3203
|
+
}
|
|
3204
|
+
get annotations() {
|
|
3205
|
+
return this._annotations;
|
|
3206
|
+
}
|
|
3207
|
+
withAnnotations(annotations) {
|
|
3208
|
+
return annotations === this._annotations ? this : new Package_1(this._id, this._prefix, this._markers, this._expression, annotations);
|
|
3209
|
+
}
|
|
3210
|
+
acceptJava(v, p) {
|
|
3211
|
+
return v.visitPackage(this, p);
|
|
3212
|
+
}
|
|
3213
|
+
};
|
|
3214
|
+
exports.Package = Package;
|
|
3215
|
+
exports.Package = Package = Package_1 = __decorate([
|
|
3216
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Package")
|
|
3217
|
+
], Package);
|
|
3218
|
+
let ParameterizedType = ParameterizedType_1 = class ParameterizedType extends (0, support_types_1.JMixin)(Object) {
|
|
3219
|
+
constructor(id, prefix, markers, clazz, typeParameters, _type) {
|
|
3220
|
+
super();
|
|
3221
|
+
this._id = id;
|
|
3222
|
+
this._prefix = prefix;
|
|
3223
|
+
this._markers = markers;
|
|
3224
|
+
this._clazz = clazz;
|
|
3225
|
+
this._typeParameters = typeParameters;
|
|
3226
|
+
this._type = _type;
|
|
3227
|
+
}
|
|
3228
|
+
get id() {
|
|
3229
|
+
return this._id;
|
|
3230
|
+
}
|
|
3231
|
+
withId(id) {
|
|
3232
|
+
return id === this._id ? this : new ParameterizedType_1(id, this._prefix, this._markers, this._clazz, this._typeParameters, this._type);
|
|
3233
|
+
}
|
|
3234
|
+
get prefix() {
|
|
3235
|
+
return this._prefix;
|
|
3236
|
+
}
|
|
3237
|
+
withPrefix(prefix) {
|
|
3238
|
+
return prefix === this._prefix ? this : new ParameterizedType_1(this._id, prefix, this._markers, this._clazz, this._typeParameters, this._type);
|
|
3239
|
+
}
|
|
3240
|
+
get markers() {
|
|
3241
|
+
return this._markers;
|
|
3242
|
+
}
|
|
3243
|
+
withMarkers(markers) {
|
|
3244
|
+
return markers === this._markers ? this : new ParameterizedType_1(this._id, this._prefix, markers, this._clazz, this._typeParameters, this._type);
|
|
3245
|
+
}
|
|
3246
|
+
get clazz() {
|
|
3247
|
+
return this._clazz;
|
|
3248
|
+
}
|
|
3249
|
+
withClazz(clazz) {
|
|
3250
|
+
return clazz === this._clazz ? this : new ParameterizedType_1(this._id, this._prefix, this._markers, clazz, this._typeParameters, this._type);
|
|
3251
|
+
}
|
|
3252
|
+
get typeParameters() {
|
|
3253
|
+
return this._typeParameters === null ? null : this._typeParameters.elements;
|
|
3254
|
+
}
|
|
3255
|
+
withTypeParameters(typeParameters) {
|
|
3256
|
+
return this.padding.withTypeParameters(support_types_1.JContainer.withElementsNullable(this._typeParameters, typeParameters));
|
|
3257
|
+
}
|
|
3258
|
+
get type() {
|
|
3259
|
+
return this._type;
|
|
3260
|
+
}
|
|
3261
|
+
withType(_type) {
|
|
3262
|
+
return _type === this._type ? this : new ParameterizedType_1(this._id, this._prefix, this._markers, this._clazz, this._typeParameters, _type);
|
|
3263
|
+
}
|
|
3264
|
+
acceptJava(v, p) {
|
|
3265
|
+
return v.visitParameterizedType(this, p);
|
|
3266
|
+
}
|
|
3267
|
+
get padding() {
|
|
3268
|
+
const t = this;
|
|
3269
|
+
return new class {
|
|
3270
|
+
get typeParameters() {
|
|
3271
|
+
return t._typeParameters;
|
|
3272
|
+
}
|
|
3273
|
+
withTypeParameters(typeParameters) {
|
|
3274
|
+
return t._typeParameters === typeParameters ? t : new ParameterizedType_1(t._id, t._prefix, t._markers, t._clazz, typeParameters, t._type);
|
|
3275
|
+
}
|
|
3276
|
+
};
|
|
3277
|
+
}
|
|
3278
|
+
};
|
|
3279
|
+
exports.ParameterizedType = ParameterizedType;
|
|
3280
|
+
exports.ParameterizedType = ParameterizedType = ParameterizedType_1 = __decorate([
|
|
3281
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$ParameterizedType")
|
|
3282
|
+
], ParameterizedType);
|
|
3283
|
+
let Parentheses = Parentheses_1 = class Parentheses extends (0, support_types_1.JMixin)(Object) {
|
|
3284
|
+
constructor(id, prefix, markers, tree) {
|
|
3285
|
+
super();
|
|
3286
|
+
this._id = id;
|
|
3287
|
+
this._prefix = prefix;
|
|
3288
|
+
this._markers = markers;
|
|
3289
|
+
this._tree = tree;
|
|
3290
|
+
}
|
|
3291
|
+
get id() {
|
|
3292
|
+
return this._id;
|
|
3293
|
+
}
|
|
3294
|
+
withId(id) {
|
|
3295
|
+
return id === this._id ? this : new Parentheses_1(id, this._prefix, this._markers, this._tree);
|
|
3296
|
+
}
|
|
3297
|
+
get prefix() {
|
|
3298
|
+
return this._prefix;
|
|
3299
|
+
}
|
|
3300
|
+
withPrefix(prefix) {
|
|
3301
|
+
return prefix === this._prefix ? this : new Parentheses_1(this._id, prefix, this._markers, this._tree);
|
|
3302
|
+
}
|
|
3303
|
+
get markers() {
|
|
3304
|
+
return this._markers;
|
|
3305
|
+
}
|
|
3306
|
+
withMarkers(markers) {
|
|
3307
|
+
return markers === this._markers ? this : new Parentheses_1(this._id, this._prefix, markers, this._tree);
|
|
3308
|
+
}
|
|
3309
|
+
get tree() {
|
|
3310
|
+
return this._tree.element;
|
|
3311
|
+
}
|
|
3312
|
+
withTree(tree) {
|
|
3313
|
+
return this.padding.withTree(this._tree.withElement(tree));
|
|
3314
|
+
}
|
|
3315
|
+
acceptJava(v, p) {
|
|
3316
|
+
return v.visitParentheses(this, p);
|
|
3317
|
+
}
|
|
3318
|
+
get type() {
|
|
3319
|
+
return extensions.getJavaType(this);
|
|
3320
|
+
}
|
|
3321
|
+
withType(type) {
|
|
3322
|
+
return extensions.withJavaType(this, type);
|
|
3323
|
+
}
|
|
3324
|
+
get padding() {
|
|
3325
|
+
const t = this;
|
|
3326
|
+
return new class {
|
|
3327
|
+
get tree() {
|
|
3328
|
+
return t._tree;
|
|
3329
|
+
}
|
|
3330
|
+
withTree(tree) {
|
|
3331
|
+
return t._tree === tree ? t : new Parentheses_1(t._id, t._prefix, t._markers, tree);
|
|
3332
|
+
}
|
|
3333
|
+
};
|
|
3334
|
+
}
|
|
3335
|
+
};
|
|
3336
|
+
exports.Parentheses = Parentheses;
|
|
3337
|
+
exports.Parentheses = Parentheses = Parentheses_1 = __decorate([
|
|
3338
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Parentheses")
|
|
3339
|
+
], Parentheses);
|
|
3340
|
+
let ControlParentheses = ControlParentheses_1 = class ControlParentheses extends (0, support_types_1.JMixin)(Object) {
|
|
3341
|
+
constructor(id, prefix, markers, tree) {
|
|
3342
|
+
super();
|
|
3343
|
+
this._id = id;
|
|
3344
|
+
this._prefix = prefix;
|
|
3345
|
+
this._markers = markers;
|
|
3346
|
+
this._tree = tree;
|
|
3347
|
+
}
|
|
3348
|
+
get id() {
|
|
3349
|
+
return this._id;
|
|
3350
|
+
}
|
|
3351
|
+
withId(id) {
|
|
3352
|
+
return id === this._id ? this : new ControlParentheses_1(id, this._prefix, this._markers, this._tree);
|
|
3353
|
+
}
|
|
3354
|
+
get prefix() {
|
|
3355
|
+
return this._prefix;
|
|
3356
|
+
}
|
|
3357
|
+
withPrefix(prefix) {
|
|
3358
|
+
return prefix === this._prefix ? this : new ControlParentheses_1(this._id, prefix, this._markers, this._tree);
|
|
3359
|
+
}
|
|
3360
|
+
get markers() {
|
|
3361
|
+
return this._markers;
|
|
3362
|
+
}
|
|
3363
|
+
withMarkers(markers) {
|
|
3364
|
+
return markers === this._markers ? this : new ControlParentheses_1(this._id, this._prefix, markers, this._tree);
|
|
3365
|
+
}
|
|
3366
|
+
get tree() {
|
|
3367
|
+
return this._tree.element;
|
|
3368
|
+
}
|
|
3369
|
+
withTree(tree) {
|
|
3370
|
+
return this.padding.withTree(this._tree.withElement(tree));
|
|
3371
|
+
}
|
|
3372
|
+
acceptJava(v, p) {
|
|
3373
|
+
return v.visitControlParentheses(this, p);
|
|
3374
|
+
}
|
|
3375
|
+
get type() {
|
|
3376
|
+
return extensions.getJavaType(this);
|
|
3377
|
+
}
|
|
3378
|
+
withType(type) {
|
|
3379
|
+
return extensions.withJavaType(this, type);
|
|
3380
|
+
}
|
|
3381
|
+
get padding() {
|
|
3382
|
+
const t = this;
|
|
3383
|
+
return new class {
|
|
3384
|
+
get tree() {
|
|
3385
|
+
return t._tree;
|
|
3386
|
+
}
|
|
3387
|
+
withTree(tree) {
|
|
3388
|
+
return t._tree === tree ? t : new ControlParentheses_1(t._id, t._prefix, t._markers, tree);
|
|
3389
|
+
}
|
|
3390
|
+
};
|
|
3391
|
+
}
|
|
3392
|
+
};
|
|
3393
|
+
exports.ControlParentheses = ControlParentheses;
|
|
3394
|
+
exports.ControlParentheses = ControlParentheses = ControlParentheses_1 = __decorate([
|
|
3395
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$ControlParentheses")
|
|
3396
|
+
], ControlParentheses);
|
|
3397
|
+
let Primitive = Primitive_1 = class Primitive extends (0, support_types_1.JMixin)(Object) {
|
|
3398
|
+
constructor(id, prefix, markers, _type) {
|
|
3399
|
+
super();
|
|
3400
|
+
this._id = id;
|
|
3401
|
+
this._prefix = prefix;
|
|
3402
|
+
this._markers = markers;
|
|
3403
|
+
this._type = _type;
|
|
3404
|
+
}
|
|
3405
|
+
get id() {
|
|
3406
|
+
return this._id;
|
|
3407
|
+
}
|
|
3408
|
+
withId(id) {
|
|
3409
|
+
return id === this._id ? this : new Primitive_1(id, this._prefix, this._markers, this._type);
|
|
3410
|
+
}
|
|
3411
|
+
get prefix() {
|
|
3412
|
+
return this._prefix;
|
|
3413
|
+
}
|
|
3414
|
+
withPrefix(prefix) {
|
|
3415
|
+
return prefix === this._prefix ? this : new Primitive_1(this._id, prefix, this._markers, this._type);
|
|
3416
|
+
}
|
|
3417
|
+
get markers() {
|
|
3418
|
+
return this._markers;
|
|
3419
|
+
}
|
|
3420
|
+
withMarkers(markers) {
|
|
3421
|
+
return markers === this._markers ? this : new Primitive_1(this._id, this._prefix, markers, this._type);
|
|
3422
|
+
}
|
|
3423
|
+
get type() {
|
|
3424
|
+
return this._type;
|
|
3425
|
+
}
|
|
3426
|
+
withType(_type) {
|
|
3427
|
+
return _type === this._type ? this : new Primitive_1(this._id, this._prefix, this._markers, _type);
|
|
3428
|
+
}
|
|
3429
|
+
acceptJava(v, p) {
|
|
3430
|
+
return v.visitPrimitive(this, p);
|
|
3431
|
+
}
|
|
3432
|
+
};
|
|
3433
|
+
exports.Primitive = Primitive;
|
|
3434
|
+
exports.Primitive = Primitive = Primitive_1 = __decorate([
|
|
3435
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Primitive")
|
|
3436
|
+
], Primitive);
|
|
3437
|
+
let Return = Return_1 = class Return extends (0, support_types_1.JMixin)(Object) {
|
|
3438
|
+
constructor(id, prefix, markers, expression) {
|
|
3439
|
+
super();
|
|
3440
|
+
this._id = id;
|
|
3441
|
+
this._prefix = prefix;
|
|
3442
|
+
this._markers = markers;
|
|
3443
|
+
this._expression = expression;
|
|
3444
|
+
}
|
|
3445
|
+
get id() {
|
|
3446
|
+
return this._id;
|
|
3447
|
+
}
|
|
3448
|
+
withId(id) {
|
|
3449
|
+
return id === this._id ? this : new Return_1(id, this._prefix, this._markers, this._expression);
|
|
3450
|
+
}
|
|
3451
|
+
get prefix() {
|
|
3452
|
+
return this._prefix;
|
|
3453
|
+
}
|
|
3454
|
+
withPrefix(prefix) {
|
|
3455
|
+
return prefix === this._prefix ? this : new Return_1(this._id, prefix, this._markers, this._expression);
|
|
3456
|
+
}
|
|
3457
|
+
get markers() {
|
|
3458
|
+
return this._markers;
|
|
3459
|
+
}
|
|
3460
|
+
withMarkers(markers) {
|
|
3461
|
+
return markers === this._markers ? this : new Return_1(this._id, this._prefix, markers, this._expression);
|
|
3462
|
+
}
|
|
3463
|
+
get expression() {
|
|
3464
|
+
return this._expression;
|
|
3465
|
+
}
|
|
3466
|
+
withExpression(expression) {
|
|
3467
|
+
return expression === this._expression ? this : new Return_1(this._id, this._prefix, this._markers, expression);
|
|
3468
|
+
}
|
|
3469
|
+
acceptJava(v, p) {
|
|
3470
|
+
return v.visitReturn(this, p);
|
|
3471
|
+
}
|
|
3472
|
+
};
|
|
3473
|
+
exports.Return = Return;
|
|
3474
|
+
exports.Return = Return = Return_1 = __decorate([
|
|
3475
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Return")
|
|
3476
|
+
], Return);
|
|
3477
|
+
let Switch = Switch_1 = class Switch extends (0, support_types_1.JMixin)(Object) {
|
|
3478
|
+
constructor(id, prefix, markers, selector, cases) {
|
|
3479
|
+
super();
|
|
3480
|
+
this._id = id;
|
|
3481
|
+
this._prefix = prefix;
|
|
3482
|
+
this._markers = markers;
|
|
3483
|
+
this._selector = selector;
|
|
3484
|
+
this._cases = cases;
|
|
3485
|
+
}
|
|
3486
|
+
get id() {
|
|
3487
|
+
return this._id;
|
|
3488
|
+
}
|
|
3489
|
+
withId(id) {
|
|
3490
|
+
return id === this._id ? this : new Switch_1(id, this._prefix, this._markers, this._selector, this._cases);
|
|
3491
|
+
}
|
|
3492
|
+
get prefix() {
|
|
3493
|
+
return this._prefix;
|
|
3494
|
+
}
|
|
3495
|
+
withPrefix(prefix) {
|
|
3496
|
+
return prefix === this._prefix ? this : new Switch_1(this._id, prefix, this._markers, this._selector, this._cases);
|
|
3497
|
+
}
|
|
3498
|
+
get markers() {
|
|
3499
|
+
return this._markers;
|
|
3500
|
+
}
|
|
3501
|
+
withMarkers(markers) {
|
|
3502
|
+
return markers === this._markers ? this : new Switch_1(this._id, this._prefix, markers, this._selector, this._cases);
|
|
3503
|
+
}
|
|
3504
|
+
get selector() {
|
|
3505
|
+
return this._selector;
|
|
3506
|
+
}
|
|
3507
|
+
withSelector(selector) {
|
|
3508
|
+
return selector === this._selector ? this : new Switch_1(this._id, this._prefix, this._markers, selector, this._cases);
|
|
3509
|
+
}
|
|
3510
|
+
get cases() {
|
|
3511
|
+
return this._cases;
|
|
3512
|
+
}
|
|
3513
|
+
withCases(cases) {
|
|
3514
|
+
return cases === this._cases ? this : new Switch_1(this._id, this._prefix, this._markers, this._selector, cases);
|
|
3515
|
+
}
|
|
3516
|
+
acceptJava(v, p) {
|
|
3517
|
+
return v.visitSwitch(this, p);
|
|
3518
|
+
}
|
|
3519
|
+
};
|
|
3520
|
+
exports.Switch = Switch;
|
|
3521
|
+
exports.Switch = Switch = Switch_1 = __decorate([
|
|
3522
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Switch")
|
|
3523
|
+
], Switch);
|
|
3524
|
+
let SwitchExpression = SwitchExpression_1 = class SwitchExpression extends (0, support_types_1.JMixin)(Object) {
|
|
3525
|
+
constructor(id, prefix, markers, selector, cases) {
|
|
3526
|
+
super();
|
|
3527
|
+
this._id = id;
|
|
3528
|
+
this._prefix = prefix;
|
|
3529
|
+
this._markers = markers;
|
|
3530
|
+
this._selector = selector;
|
|
3531
|
+
this._cases = cases;
|
|
3532
|
+
}
|
|
3533
|
+
get id() {
|
|
3534
|
+
return this._id;
|
|
3535
|
+
}
|
|
3536
|
+
withId(id) {
|
|
3537
|
+
return id === this._id ? this : new SwitchExpression_1(id, this._prefix, this._markers, this._selector, this._cases);
|
|
3538
|
+
}
|
|
3539
|
+
get prefix() {
|
|
3540
|
+
return this._prefix;
|
|
3541
|
+
}
|
|
3542
|
+
withPrefix(prefix) {
|
|
3543
|
+
return prefix === this._prefix ? this : new SwitchExpression_1(this._id, prefix, this._markers, this._selector, this._cases);
|
|
3544
|
+
}
|
|
3545
|
+
get markers() {
|
|
3546
|
+
return this._markers;
|
|
3547
|
+
}
|
|
3548
|
+
withMarkers(markers) {
|
|
3549
|
+
return markers === this._markers ? this : new SwitchExpression_1(this._id, this._prefix, markers, this._selector, this._cases);
|
|
3550
|
+
}
|
|
3551
|
+
get selector() {
|
|
3552
|
+
return this._selector;
|
|
3553
|
+
}
|
|
3554
|
+
withSelector(selector) {
|
|
3555
|
+
return selector === this._selector ? this : new SwitchExpression_1(this._id, this._prefix, this._markers, selector, this._cases);
|
|
3556
|
+
}
|
|
3557
|
+
get cases() {
|
|
3558
|
+
return this._cases;
|
|
3559
|
+
}
|
|
3560
|
+
withCases(cases) {
|
|
3561
|
+
return cases === this._cases ? this : new SwitchExpression_1(this._id, this._prefix, this._markers, this._selector, cases);
|
|
3562
|
+
}
|
|
3563
|
+
acceptJava(v, p) {
|
|
3564
|
+
return v.visitSwitchExpression(this, p);
|
|
3565
|
+
}
|
|
3566
|
+
get type() {
|
|
3567
|
+
return extensions.getJavaType(this);
|
|
3568
|
+
}
|
|
3569
|
+
withType(type) {
|
|
3570
|
+
return extensions.withJavaType(this, type);
|
|
3571
|
+
}
|
|
3572
|
+
};
|
|
3573
|
+
exports.SwitchExpression = SwitchExpression;
|
|
3574
|
+
exports.SwitchExpression = SwitchExpression = SwitchExpression_1 = __decorate([
|
|
3575
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$SwitchExpression")
|
|
3576
|
+
], SwitchExpression);
|
|
3577
|
+
let Synchronized = Synchronized_1 = class Synchronized extends (0, support_types_1.JMixin)(Object) {
|
|
3578
|
+
constructor(id, prefix, markers, lock, body) {
|
|
3579
|
+
super();
|
|
3580
|
+
this._id = id;
|
|
3581
|
+
this._prefix = prefix;
|
|
3582
|
+
this._markers = markers;
|
|
3583
|
+
this._lock = lock;
|
|
3584
|
+
this._body = body;
|
|
3585
|
+
}
|
|
3586
|
+
get id() {
|
|
3587
|
+
return this._id;
|
|
3588
|
+
}
|
|
3589
|
+
withId(id) {
|
|
3590
|
+
return id === this._id ? this : new Synchronized_1(id, this._prefix, this._markers, this._lock, this._body);
|
|
3591
|
+
}
|
|
3592
|
+
get prefix() {
|
|
3593
|
+
return this._prefix;
|
|
3594
|
+
}
|
|
3595
|
+
withPrefix(prefix) {
|
|
3596
|
+
return prefix === this._prefix ? this : new Synchronized_1(this._id, prefix, this._markers, this._lock, this._body);
|
|
3597
|
+
}
|
|
3598
|
+
get markers() {
|
|
3599
|
+
return this._markers;
|
|
3600
|
+
}
|
|
3601
|
+
withMarkers(markers) {
|
|
3602
|
+
return markers === this._markers ? this : new Synchronized_1(this._id, this._prefix, markers, this._lock, this._body);
|
|
3603
|
+
}
|
|
3604
|
+
get lock() {
|
|
3605
|
+
return this._lock;
|
|
3606
|
+
}
|
|
3607
|
+
withLock(lock) {
|
|
3608
|
+
return lock === this._lock ? this : new Synchronized_1(this._id, this._prefix, this._markers, lock, this._body);
|
|
3609
|
+
}
|
|
3610
|
+
get body() {
|
|
3611
|
+
return this._body;
|
|
3612
|
+
}
|
|
3613
|
+
withBody(body) {
|
|
3614
|
+
return body === this._body ? this : new Synchronized_1(this._id, this._prefix, this._markers, this._lock, body);
|
|
3615
|
+
}
|
|
3616
|
+
acceptJava(v, p) {
|
|
3617
|
+
return v.visitSynchronized(this, p);
|
|
3618
|
+
}
|
|
3619
|
+
};
|
|
3620
|
+
exports.Synchronized = Synchronized;
|
|
3621
|
+
exports.Synchronized = Synchronized = Synchronized_1 = __decorate([
|
|
3622
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Synchronized")
|
|
3623
|
+
], Synchronized);
|
|
3624
|
+
let Ternary = Ternary_1 = class Ternary extends (0, support_types_1.JMixin)(Object) {
|
|
3625
|
+
constructor(id, prefix, markers, condition, truePart, falsePart, _type) {
|
|
3626
|
+
super();
|
|
3627
|
+
this._id = id;
|
|
3628
|
+
this._prefix = prefix;
|
|
3629
|
+
this._markers = markers;
|
|
3630
|
+
this._condition = condition;
|
|
3631
|
+
this._truePart = truePart;
|
|
3632
|
+
this._falsePart = falsePart;
|
|
3633
|
+
this._type = _type;
|
|
3634
|
+
}
|
|
3635
|
+
get id() {
|
|
3636
|
+
return this._id;
|
|
3637
|
+
}
|
|
3638
|
+
withId(id) {
|
|
3639
|
+
return id === this._id ? this : new Ternary_1(id, this._prefix, this._markers, this._condition, this._truePart, this._falsePart, this._type);
|
|
3640
|
+
}
|
|
3641
|
+
get prefix() {
|
|
3642
|
+
return this._prefix;
|
|
3643
|
+
}
|
|
3644
|
+
withPrefix(prefix) {
|
|
3645
|
+
return prefix === this._prefix ? this : new Ternary_1(this._id, prefix, this._markers, this._condition, this._truePart, this._falsePart, this._type);
|
|
3646
|
+
}
|
|
3647
|
+
get markers() {
|
|
3648
|
+
return this._markers;
|
|
3649
|
+
}
|
|
3650
|
+
withMarkers(markers) {
|
|
3651
|
+
return markers === this._markers ? this : new Ternary_1(this._id, this._prefix, markers, this._condition, this._truePart, this._falsePart, this._type);
|
|
3652
|
+
}
|
|
3653
|
+
get condition() {
|
|
3654
|
+
return this._condition;
|
|
3655
|
+
}
|
|
3656
|
+
withCondition(condition) {
|
|
3657
|
+
return condition === this._condition ? this : new Ternary_1(this._id, this._prefix, this._markers, condition, this._truePart, this._falsePart, this._type);
|
|
3658
|
+
}
|
|
3659
|
+
get truePart() {
|
|
3660
|
+
return this._truePart.element;
|
|
3661
|
+
}
|
|
3662
|
+
withTruePart(truePart) {
|
|
3663
|
+
return this.padding.withTruePart(this._truePart.withElement(truePart));
|
|
3664
|
+
}
|
|
3665
|
+
get falsePart() {
|
|
3666
|
+
return this._falsePart.element;
|
|
3667
|
+
}
|
|
3668
|
+
withFalsePart(falsePart) {
|
|
3669
|
+
return this.padding.withFalsePart(this._falsePart.withElement(falsePart));
|
|
3670
|
+
}
|
|
3671
|
+
get type() {
|
|
3672
|
+
return this._type;
|
|
3673
|
+
}
|
|
3674
|
+
withType(_type) {
|
|
3675
|
+
return _type === this._type ? this : new Ternary_1(this._id, this._prefix, this._markers, this._condition, this._truePart, this._falsePart, _type);
|
|
3676
|
+
}
|
|
3677
|
+
acceptJava(v, p) {
|
|
3678
|
+
return v.visitTernary(this, p);
|
|
3679
|
+
}
|
|
3680
|
+
get padding() {
|
|
3681
|
+
const t = this;
|
|
3682
|
+
return new class {
|
|
3683
|
+
get truePart() {
|
|
3684
|
+
return t._truePart;
|
|
3685
|
+
}
|
|
3686
|
+
withTruePart(truePart) {
|
|
3687
|
+
return t._truePart === truePart ? t : new Ternary_1(t._id, t._prefix, t._markers, t._condition, truePart, t._falsePart, t._type);
|
|
3688
|
+
}
|
|
3689
|
+
get falsePart() {
|
|
3690
|
+
return t._falsePart;
|
|
3691
|
+
}
|
|
3692
|
+
withFalsePart(falsePart) {
|
|
3693
|
+
return t._falsePart === falsePart ? t : new Ternary_1(t._id, t._prefix, t._markers, t._condition, t._truePart, falsePart, t._type);
|
|
3694
|
+
}
|
|
3695
|
+
};
|
|
3696
|
+
}
|
|
3697
|
+
};
|
|
3698
|
+
exports.Ternary = Ternary;
|
|
3699
|
+
exports.Ternary = Ternary = Ternary_1 = __decorate([
|
|
3700
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Ternary")
|
|
3701
|
+
], Ternary);
|
|
3702
|
+
let Throw = Throw_1 = class Throw extends (0, support_types_1.JMixin)(Object) {
|
|
3703
|
+
constructor(id, prefix, markers, exception) {
|
|
3704
|
+
super();
|
|
3705
|
+
this._id = id;
|
|
3706
|
+
this._prefix = prefix;
|
|
3707
|
+
this._markers = markers;
|
|
3708
|
+
this._exception = exception;
|
|
3709
|
+
}
|
|
3710
|
+
get id() {
|
|
3711
|
+
return this._id;
|
|
3712
|
+
}
|
|
3713
|
+
withId(id) {
|
|
3714
|
+
return id === this._id ? this : new Throw_1(id, this._prefix, this._markers, this._exception);
|
|
3715
|
+
}
|
|
3716
|
+
get prefix() {
|
|
3717
|
+
return this._prefix;
|
|
3718
|
+
}
|
|
3719
|
+
withPrefix(prefix) {
|
|
3720
|
+
return prefix === this._prefix ? this : new Throw_1(this._id, prefix, this._markers, this._exception);
|
|
3721
|
+
}
|
|
3722
|
+
get markers() {
|
|
3723
|
+
return this._markers;
|
|
3724
|
+
}
|
|
3725
|
+
withMarkers(markers) {
|
|
3726
|
+
return markers === this._markers ? this : new Throw_1(this._id, this._prefix, markers, this._exception);
|
|
3727
|
+
}
|
|
3728
|
+
get exception() {
|
|
3729
|
+
return this._exception;
|
|
3730
|
+
}
|
|
3731
|
+
withException(exception) {
|
|
3732
|
+
return exception === this._exception ? this : new Throw_1(this._id, this._prefix, this._markers, exception);
|
|
3733
|
+
}
|
|
3734
|
+
acceptJava(v, p) {
|
|
3735
|
+
return v.visitThrow(this, p);
|
|
3736
|
+
}
|
|
3737
|
+
};
|
|
3738
|
+
exports.Throw = Throw;
|
|
3739
|
+
exports.Throw = Throw = Throw_1 = __decorate([
|
|
3740
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Throw")
|
|
3741
|
+
], Throw);
|
|
3742
|
+
let Try = Try_1 = class Try extends (0, support_types_1.JMixin)(Object) {
|
|
3743
|
+
constructor(id, prefix, markers, resources, body, catches, _finally) {
|
|
3744
|
+
super();
|
|
3745
|
+
this._id = id;
|
|
3746
|
+
this._prefix = prefix;
|
|
3747
|
+
this._markers = markers;
|
|
3748
|
+
this._resources = resources;
|
|
3749
|
+
this._body = body;
|
|
3750
|
+
this._catches = catches;
|
|
3751
|
+
this._finally = _finally;
|
|
3752
|
+
}
|
|
3753
|
+
get id() {
|
|
3754
|
+
return this._id;
|
|
3755
|
+
}
|
|
3756
|
+
withId(id) {
|
|
3757
|
+
return id === this._id ? this : new Try_1(id, this._prefix, this._markers, this._resources, this._body, this._catches, this._finally);
|
|
3758
|
+
}
|
|
3759
|
+
get prefix() {
|
|
3760
|
+
return this._prefix;
|
|
3761
|
+
}
|
|
3762
|
+
withPrefix(prefix) {
|
|
3763
|
+
return prefix === this._prefix ? this : new Try_1(this._id, prefix, this._markers, this._resources, this._body, this._catches, this._finally);
|
|
3764
|
+
}
|
|
3765
|
+
get markers() {
|
|
3766
|
+
return this._markers;
|
|
3767
|
+
}
|
|
3768
|
+
withMarkers(markers) {
|
|
3769
|
+
return markers === this._markers ? this : new Try_1(this._id, this._prefix, markers, this._resources, this._body, this._catches, this._finally);
|
|
3770
|
+
}
|
|
3771
|
+
get resources() {
|
|
3772
|
+
return this._resources === null ? null : this._resources.elements;
|
|
3773
|
+
}
|
|
3774
|
+
withResources(resources) {
|
|
3775
|
+
return this.padding.withResources(support_types_1.JContainer.withElementsNullable(this._resources, resources));
|
|
3776
|
+
}
|
|
3777
|
+
get body() {
|
|
3778
|
+
return this._body;
|
|
3779
|
+
}
|
|
3780
|
+
withBody(body) {
|
|
3781
|
+
return body === this._body ? this : new Try_1(this._id, this._prefix, this._markers, this._resources, body, this._catches, this._finally);
|
|
3782
|
+
}
|
|
3783
|
+
get catches() {
|
|
3784
|
+
return this._catches;
|
|
3785
|
+
}
|
|
3786
|
+
withCatches(catches) {
|
|
3787
|
+
return catches === this._catches ? this : new Try_1(this._id, this._prefix, this._markers, this._resources, this._body, catches, this._finally);
|
|
3788
|
+
}
|
|
3789
|
+
get finally() {
|
|
3790
|
+
return this._finally === null ? null : this._finally.element;
|
|
3791
|
+
}
|
|
3792
|
+
withFinally(_finally) {
|
|
3793
|
+
return this.padding.withFinally(support_types_1.JLeftPadded.withElement(this._finally, _finally));
|
|
3794
|
+
}
|
|
3795
|
+
acceptJava(v, p) {
|
|
3796
|
+
return v.visitTry(this, p);
|
|
3797
|
+
}
|
|
3798
|
+
get padding() {
|
|
3799
|
+
const t = this;
|
|
3800
|
+
return new class {
|
|
3801
|
+
get resources() {
|
|
3802
|
+
return t._resources;
|
|
3803
|
+
}
|
|
3804
|
+
withResources(resources) {
|
|
3805
|
+
return t._resources === resources ? t : new Try_1(t._id, t._prefix, t._markers, resources, t._body, t._catches, t._finally);
|
|
3806
|
+
}
|
|
3807
|
+
get finally() {
|
|
3808
|
+
return t._finally;
|
|
3809
|
+
}
|
|
3810
|
+
withFinally(_finally) {
|
|
3811
|
+
return t._finally === _finally ? t : new Try_1(t._id, t._prefix, t._markers, t._resources, t._body, t._catches, _finally);
|
|
3812
|
+
}
|
|
3813
|
+
};
|
|
3814
|
+
}
|
|
3815
|
+
};
|
|
3816
|
+
exports.Try = Try;
|
|
3817
|
+
exports.Try = Try = Try_1 = __decorate([
|
|
3818
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Try")
|
|
3819
|
+
], Try);
|
|
3820
|
+
(function (Try) {
|
|
3821
|
+
let Resource = class Resource extends (0, support_types_1.JMixin)(Object) {
|
|
3822
|
+
constructor(id, prefix, markers, variableDeclarations, terminatedWithSemicolon) {
|
|
3823
|
+
super();
|
|
3824
|
+
this._id = id;
|
|
3825
|
+
this._prefix = prefix;
|
|
3826
|
+
this._markers = markers;
|
|
3827
|
+
this._variableDeclarations = variableDeclarations;
|
|
3828
|
+
this._terminatedWithSemicolon = terminatedWithSemicolon;
|
|
3829
|
+
}
|
|
3830
|
+
get id() {
|
|
3831
|
+
return this._id;
|
|
3832
|
+
}
|
|
3833
|
+
withId(id) {
|
|
3834
|
+
return id === this._id ? this : new Try.Resource(id, this._prefix, this._markers, this._variableDeclarations, this._terminatedWithSemicolon);
|
|
3835
|
+
}
|
|
3836
|
+
get prefix() {
|
|
3837
|
+
return this._prefix;
|
|
3838
|
+
}
|
|
3839
|
+
withPrefix(prefix) {
|
|
3840
|
+
return prefix === this._prefix ? this : new Try.Resource(this._id, prefix, this._markers, this._variableDeclarations, this._terminatedWithSemicolon);
|
|
3841
|
+
}
|
|
3842
|
+
get markers() {
|
|
3843
|
+
return this._markers;
|
|
3844
|
+
}
|
|
3845
|
+
withMarkers(markers) {
|
|
3846
|
+
return markers === this._markers ? this : new Try.Resource(this._id, this._prefix, markers, this._variableDeclarations, this._terminatedWithSemicolon);
|
|
3847
|
+
}
|
|
3848
|
+
get variableDeclarations() {
|
|
3849
|
+
return this._variableDeclarations;
|
|
3850
|
+
}
|
|
3851
|
+
withVariableDeclarations(variableDeclarations) {
|
|
3852
|
+
return variableDeclarations === this._variableDeclarations ? this : new Try.Resource(this._id, this._prefix, this._markers, variableDeclarations, this._terminatedWithSemicolon);
|
|
3853
|
+
}
|
|
3854
|
+
get terminatedWithSemicolon() {
|
|
3855
|
+
return this._terminatedWithSemicolon;
|
|
3856
|
+
}
|
|
3857
|
+
withTerminatedWithSemicolon(terminatedWithSemicolon) {
|
|
3858
|
+
return terminatedWithSemicolon === this._terminatedWithSemicolon ? this : new Try.Resource(this._id, this._prefix, this._markers, this._variableDeclarations, terminatedWithSemicolon);
|
|
3859
|
+
}
|
|
3860
|
+
acceptJava(v, p) {
|
|
3861
|
+
return v.visitTryResource(this, p);
|
|
3862
|
+
}
|
|
3863
|
+
};
|
|
3864
|
+
Resource = __decorate([
|
|
3865
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Try$Resource")
|
|
3866
|
+
], Resource);
|
|
3867
|
+
Try.Resource = Resource;
|
|
3868
|
+
let Catch = class Catch extends (0, support_types_1.JMixin)(Object) {
|
|
3869
|
+
constructor(id, prefix, markers, parameter, body) {
|
|
3870
|
+
super();
|
|
3871
|
+
this._id = id;
|
|
3872
|
+
this._prefix = prefix;
|
|
3873
|
+
this._markers = markers;
|
|
3874
|
+
this._parameter = parameter;
|
|
3875
|
+
this._body = body;
|
|
3876
|
+
}
|
|
3877
|
+
get id() {
|
|
3878
|
+
return this._id;
|
|
3879
|
+
}
|
|
3880
|
+
withId(id) {
|
|
3881
|
+
return id === this._id ? this : new Try.Catch(id, this._prefix, this._markers, this._parameter, this._body);
|
|
3882
|
+
}
|
|
3883
|
+
get prefix() {
|
|
3884
|
+
return this._prefix;
|
|
3885
|
+
}
|
|
3886
|
+
withPrefix(prefix) {
|
|
3887
|
+
return prefix === this._prefix ? this : new Try.Catch(this._id, prefix, this._markers, this._parameter, this._body);
|
|
3888
|
+
}
|
|
3889
|
+
get markers() {
|
|
3890
|
+
return this._markers;
|
|
3891
|
+
}
|
|
3892
|
+
withMarkers(markers) {
|
|
3893
|
+
return markers === this._markers ? this : new Try.Catch(this._id, this._prefix, markers, this._parameter, this._body);
|
|
3894
|
+
}
|
|
3895
|
+
get parameter() {
|
|
3896
|
+
return this._parameter;
|
|
3897
|
+
}
|
|
3898
|
+
withParameter(parameter) {
|
|
3899
|
+
return parameter === this._parameter ? this : new Try.Catch(this._id, this._prefix, this._markers, parameter, this._body);
|
|
3900
|
+
}
|
|
3901
|
+
get body() {
|
|
3902
|
+
return this._body;
|
|
3903
|
+
}
|
|
3904
|
+
withBody(body) {
|
|
3905
|
+
return body === this._body ? this : new Try.Catch(this._id, this._prefix, this._markers, this._parameter, body);
|
|
3906
|
+
}
|
|
3907
|
+
acceptJava(v, p) {
|
|
3908
|
+
return v.visitCatch(this, p);
|
|
3909
|
+
}
|
|
3910
|
+
};
|
|
3911
|
+
Catch = __decorate([
|
|
3912
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Try$Catch")
|
|
3913
|
+
], Catch);
|
|
3914
|
+
Try.Catch = Catch;
|
|
3915
|
+
})(Try || (exports.Try = Try = {}));
|
|
3916
|
+
let TypeCast = TypeCast_1 = class TypeCast extends (0, support_types_1.JMixin)(Object) {
|
|
3917
|
+
constructor(id, prefix, markers, clazz, expression) {
|
|
3918
|
+
super();
|
|
3919
|
+
this._id = id;
|
|
3920
|
+
this._prefix = prefix;
|
|
3921
|
+
this._markers = markers;
|
|
3922
|
+
this._clazz = clazz;
|
|
3923
|
+
this._expression = expression;
|
|
3924
|
+
}
|
|
3925
|
+
get id() {
|
|
3926
|
+
return this._id;
|
|
3927
|
+
}
|
|
3928
|
+
withId(id) {
|
|
3929
|
+
return id === this._id ? this : new TypeCast_1(id, this._prefix, this._markers, this._clazz, this._expression);
|
|
3930
|
+
}
|
|
3931
|
+
get prefix() {
|
|
3932
|
+
return this._prefix;
|
|
3933
|
+
}
|
|
3934
|
+
withPrefix(prefix) {
|
|
3935
|
+
return prefix === this._prefix ? this : new TypeCast_1(this._id, prefix, this._markers, this._clazz, this._expression);
|
|
3936
|
+
}
|
|
3937
|
+
get markers() {
|
|
3938
|
+
return this._markers;
|
|
3939
|
+
}
|
|
3940
|
+
withMarkers(markers) {
|
|
3941
|
+
return markers === this._markers ? this : new TypeCast_1(this._id, this._prefix, markers, this._clazz, this._expression);
|
|
3942
|
+
}
|
|
3943
|
+
get clazz() {
|
|
3944
|
+
return this._clazz;
|
|
3945
|
+
}
|
|
3946
|
+
withClazz(clazz) {
|
|
3947
|
+
return clazz === this._clazz ? this : new TypeCast_1(this._id, this._prefix, this._markers, clazz, this._expression);
|
|
3948
|
+
}
|
|
3949
|
+
get expression() {
|
|
3950
|
+
return this._expression;
|
|
3951
|
+
}
|
|
3952
|
+
withExpression(expression) {
|
|
3953
|
+
return expression === this._expression ? this : new TypeCast_1(this._id, this._prefix, this._markers, this._clazz, expression);
|
|
3954
|
+
}
|
|
3955
|
+
acceptJava(v, p) {
|
|
3956
|
+
return v.visitTypeCast(this, p);
|
|
3957
|
+
}
|
|
3958
|
+
get type() {
|
|
3959
|
+
return extensions.getJavaType(this);
|
|
3960
|
+
}
|
|
3961
|
+
withType(type) {
|
|
3962
|
+
return extensions.withJavaType(this, type);
|
|
3963
|
+
}
|
|
3964
|
+
};
|
|
3965
|
+
exports.TypeCast = TypeCast;
|
|
3966
|
+
exports.TypeCast = TypeCast = TypeCast_1 = __decorate([
|
|
3967
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$TypeCast")
|
|
3968
|
+
], TypeCast);
|
|
3969
|
+
let TypeParameter = TypeParameter_1 = class TypeParameter extends (0, support_types_1.JMixin)(Object) {
|
|
3970
|
+
constructor(id, prefix, markers, annotations, modifiers, name, bounds) {
|
|
3971
|
+
super();
|
|
3972
|
+
this._id = id;
|
|
3973
|
+
this._prefix = prefix;
|
|
3974
|
+
this._markers = markers;
|
|
3975
|
+
this._annotations = annotations;
|
|
3976
|
+
this._modifiers = modifiers;
|
|
3977
|
+
this._name = name;
|
|
3978
|
+
this._bounds = bounds;
|
|
3979
|
+
}
|
|
3980
|
+
get id() {
|
|
3981
|
+
return this._id;
|
|
3982
|
+
}
|
|
3983
|
+
withId(id) {
|
|
3984
|
+
return id === this._id ? this : new TypeParameter_1(id, this._prefix, this._markers, this._annotations, this._modifiers, this._name, this._bounds);
|
|
3985
|
+
}
|
|
3986
|
+
get prefix() {
|
|
3987
|
+
return this._prefix;
|
|
3988
|
+
}
|
|
3989
|
+
withPrefix(prefix) {
|
|
3990
|
+
return prefix === this._prefix ? this : new TypeParameter_1(this._id, prefix, this._markers, this._annotations, this._modifiers, this._name, this._bounds);
|
|
3991
|
+
}
|
|
3992
|
+
get markers() {
|
|
3993
|
+
return this._markers;
|
|
3994
|
+
}
|
|
3995
|
+
withMarkers(markers) {
|
|
3996
|
+
return markers === this._markers ? this : new TypeParameter_1(this._id, this._prefix, markers, this._annotations, this._modifiers, this._name, this._bounds);
|
|
3997
|
+
}
|
|
3998
|
+
get annotations() {
|
|
3999
|
+
return this._annotations;
|
|
4000
|
+
}
|
|
4001
|
+
withAnnotations(annotations) {
|
|
4002
|
+
return annotations === this._annotations ? this : new TypeParameter_1(this._id, this._prefix, this._markers, annotations, this._modifiers, this._name, this._bounds);
|
|
4003
|
+
}
|
|
4004
|
+
get modifiers() {
|
|
4005
|
+
return this._modifiers;
|
|
4006
|
+
}
|
|
4007
|
+
withModifiers(modifiers) {
|
|
4008
|
+
return modifiers === this._modifiers ? this : new TypeParameter_1(this._id, this._prefix, this._markers, this._annotations, modifiers, this._name, this._bounds);
|
|
4009
|
+
}
|
|
4010
|
+
get name() {
|
|
4011
|
+
return this._name;
|
|
4012
|
+
}
|
|
4013
|
+
withName(name) {
|
|
4014
|
+
return name === this._name ? this : new TypeParameter_1(this._id, this._prefix, this._markers, this._annotations, this._modifiers, name, this._bounds);
|
|
4015
|
+
}
|
|
4016
|
+
get bounds() {
|
|
4017
|
+
return this._bounds === null ? null : this._bounds.elements;
|
|
4018
|
+
}
|
|
4019
|
+
withBounds(bounds) {
|
|
4020
|
+
return this.padding.withBounds(support_types_1.JContainer.withElementsNullable(this._bounds, bounds));
|
|
4021
|
+
}
|
|
4022
|
+
acceptJava(v, p) {
|
|
4023
|
+
return v.visitTypeParameter(this, p);
|
|
4024
|
+
}
|
|
4025
|
+
get padding() {
|
|
4026
|
+
const t = this;
|
|
4027
|
+
return new class {
|
|
4028
|
+
get bounds() {
|
|
4029
|
+
return t._bounds;
|
|
4030
|
+
}
|
|
4031
|
+
withBounds(bounds) {
|
|
4032
|
+
return t._bounds === bounds ? t : new TypeParameter_1(t._id, t._prefix, t._markers, t._annotations, t._modifiers, t._name, bounds);
|
|
4033
|
+
}
|
|
4034
|
+
};
|
|
4035
|
+
}
|
|
4036
|
+
};
|
|
4037
|
+
exports.TypeParameter = TypeParameter;
|
|
4038
|
+
exports.TypeParameter = TypeParameter = TypeParameter_1 = __decorate([
|
|
4039
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$TypeParameter")
|
|
4040
|
+
], TypeParameter);
|
|
4041
|
+
let TypeParameters = TypeParameters_1 = class TypeParameters extends (0, support_types_1.JMixin)(Object) {
|
|
4042
|
+
constructor(id, prefix, markers, annotations, typeParameters) {
|
|
4043
|
+
super();
|
|
4044
|
+
this._id = id;
|
|
4045
|
+
this._prefix = prefix;
|
|
4046
|
+
this._markers = markers;
|
|
4047
|
+
this._annotations = annotations;
|
|
4048
|
+
this._typeParameters = typeParameters;
|
|
4049
|
+
}
|
|
4050
|
+
get id() {
|
|
4051
|
+
return this._id;
|
|
4052
|
+
}
|
|
4053
|
+
withId(id) {
|
|
4054
|
+
return id === this._id ? this : new TypeParameters_1(id, this._prefix, this._markers, this._annotations, this._typeParameters);
|
|
4055
|
+
}
|
|
4056
|
+
get prefix() {
|
|
4057
|
+
return this._prefix;
|
|
4058
|
+
}
|
|
4059
|
+
withPrefix(prefix) {
|
|
4060
|
+
return prefix === this._prefix ? this : new TypeParameters_1(this._id, prefix, this._markers, this._annotations, this._typeParameters);
|
|
4061
|
+
}
|
|
4062
|
+
get markers() {
|
|
4063
|
+
return this._markers;
|
|
4064
|
+
}
|
|
4065
|
+
withMarkers(markers) {
|
|
4066
|
+
return markers === this._markers ? this : new TypeParameters_1(this._id, this._prefix, markers, this._annotations, this._typeParameters);
|
|
4067
|
+
}
|
|
4068
|
+
get annotations() {
|
|
4069
|
+
return this._annotations;
|
|
4070
|
+
}
|
|
4071
|
+
withAnnotations(annotations) {
|
|
4072
|
+
return annotations === this._annotations ? this : new TypeParameters_1(this._id, this._prefix, this._markers, annotations, this._typeParameters);
|
|
4073
|
+
}
|
|
4074
|
+
get typeParameters() {
|
|
4075
|
+
return support_types_1.JRightPadded.getElements(this._typeParameters);
|
|
4076
|
+
}
|
|
4077
|
+
withTypeParameters(typeParameters) {
|
|
4078
|
+
return this.padding.withTypeParameters(support_types_1.JRightPadded.withElements(this._typeParameters, typeParameters));
|
|
4079
|
+
}
|
|
4080
|
+
acceptJava(v, p) {
|
|
4081
|
+
return v.visitTypeParameters(this, p);
|
|
4082
|
+
}
|
|
4083
|
+
get padding() {
|
|
4084
|
+
const t = this;
|
|
4085
|
+
return new class {
|
|
4086
|
+
get typeParameters() {
|
|
4087
|
+
return t._typeParameters;
|
|
4088
|
+
}
|
|
4089
|
+
withTypeParameters(typeParameters) {
|
|
4090
|
+
return t._typeParameters === typeParameters ? t : new TypeParameters_1(t._id, t._prefix, t._markers, t._annotations, typeParameters);
|
|
4091
|
+
}
|
|
4092
|
+
};
|
|
4093
|
+
}
|
|
4094
|
+
};
|
|
4095
|
+
exports.TypeParameters = TypeParameters;
|
|
4096
|
+
exports.TypeParameters = TypeParameters = TypeParameters_1 = __decorate([
|
|
4097
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$TypeParameters")
|
|
4098
|
+
], TypeParameters);
|
|
4099
|
+
let Unary = Unary_1 = class Unary extends (0, support_types_1.JMixin)(Object) {
|
|
4100
|
+
constructor(id, prefix, markers, operator, expression, _type) {
|
|
4101
|
+
super();
|
|
4102
|
+
this._id = id;
|
|
4103
|
+
this._prefix = prefix;
|
|
4104
|
+
this._markers = markers;
|
|
4105
|
+
this._operator = operator;
|
|
4106
|
+
this._expression = expression;
|
|
4107
|
+
this._type = _type;
|
|
4108
|
+
}
|
|
4109
|
+
get id() {
|
|
4110
|
+
return this._id;
|
|
4111
|
+
}
|
|
4112
|
+
withId(id) {
|
|
4113
|
+
return id === this._id ? this : new Unary_1(id, this._prefix, this._markers, this._operator, this._expression, this._type);
|
|
4114
|
+
}
|
|
4115
|
+
get prefix() {
|
|
4116
|
+
return this._prefix;
|
|
4117
|
+
}
|
|
4118
|
+
withPrefix(prefix) {
|
|
4119
|
+
return prefix === this._prefix ? this : new Unary_1(this._id, prefix, this._markers, this._operator, this._expression, this._type);
|
|
4120
|
+
}
|
|
4121
|
+
get markers() {
|
|
4122
|
+
return this._markers;
|
|
4123
|
+
}
|
|
4124
|
+
withMarkers(markers) {
|
|
4125
|
+
return markers === this._markers ? this : new Unary_1(this._id, this._prefix, markers, this._operator, this._expression, this._type);
|
|
4126
|
+
}
|
|
4127
|
+
get operator() {
|
|
4128
|
+
return this._operator.element;
|
|
4129
|
+
}
|
|
4130
|
+
withOperator(operator) {
|
|
4131
|
+
return this.padding.withOperator(this._operator.withElement(operator));
|
|
4132
|
+
}
|
|
4133
|
+
get expression() {
|
|
4134
|
+
return this._expression;
|
|
4135
|
+
}
|
|
4136
|
+
withExpression(expression) {
|
|
4137
|
+
return expression === this._expression ? this : new Unary_1(this._id, this._prefix, this._markers, this._operator, expression, this._type);
|
|
4138
|
+
}
|
|
4139
|
+
get type() {
|
|
4140
|
+
return this._type;
|
|
4141
|
+
}
|
|
4142
|
+
withType(_type) {
|
|
4143
|
+
return _type === this._type ? this : new Unary_1(this._id, this._prefix, this._markers, this._operator, this._expression, _type);
|
|
4144
|
+
}
|
|
4145
|
+
acceptJava(v, p) {
|
|
4146
|
+
return v.visitUnary(this, p);
|
|
4147
|
+
}
|
|
4148
|
+
get padding() {
|
|
4149
|
+
const t = this;
|
|
4150
|
+
return new class {
|
|
4151
|
+
get operator() {
|
|
4152
|
+
return t._operator;
|
|
4153
|
+
}
|
|
4154
|
+
withOperator(operator) {
|
|
4155
|
+
return t._operator === operator ? t : new Unary_1(t._id, t._prefix, t._markers, operator, t._expression, t._type);
|
|
4156
|
+
}
|
|
4157
|
+
};
|
|
4158
|
+
}
|
|
4159
|
+
};
|
|
4160
|
+
exports.Unary = Unary;
|
|
4161
|
+
exports.Unary = Unary = Unary_1 = __decorate([
|
|
4162
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Unary")
|
|
4163
|
+
], Unary);
|
|
4164
|
+
(function (Unary) {
|
|
4165
|
+
let Type;
|
|
4166
|
+
(function (Type) {
|
|
4167
|
+
Type[Type["PreIncrement"] = 0] = "PreIncrement";
|
|
4168
|
+
Type[Type["PreDecrement"] = 1] = "PreDecrement";
|
|
4169
|
+
Type[Type["PostIncrement"] = 2] = "PostIncrement";
|
|
4170
|
+
Type[Type["PostDecrement"] = 3] = "PostDecrement";
|
|
4171
|
+
Type[Type["Positive"] = 4] = "Positive";
|
|
4172
|
+
Type[Type["Negative"] = 5] = "Negative";
|
|
4173
|
+
Type[Type["Complement"] = 6] = "Complement";
|
|
4174
|
+
Type[Type["Not"] = 7] = "Not";
|
|
4175
|
+
})(Type = Unary.Type || (Unary.Type = {}));
|
|
4176
|
+
})(Unary || (exports.Unary = Unary = {}));
|
|
4177
|
+
let VariableDeclarations = VariableDeclarations_1 = class VariableDeclarations extends (0, support_types_1.JMixin)(Object) {
|
|
4178
|
+
constructor(id, prefix, markers, leadingAnnotations, modifiers, typeExpression, varargs, dimensionsBeforeName, variables) {
|
|
4179
|
+
super();
|
|
4180
|
+
this._id = id;
|
|
4181
|
+
this._prefix = prefix;
|
|
4182
|
+
this._markers = markers;
|
|
4183
|
+
this._leadingAnnotations = leadingAnnotations;
|
|
4184
|
+
this._modifiers = modifiers;
|
|
4185
|
+
this._typeExpression = typeExpression;
|
|
4186
|
+
this._varargs = varargs;
|
|
4187
|
+
this._dimensionsBeforeName = dimensionsBeforeName;
|
|
4188
|
+
this._variables = variables;
|
|
4189
|
+
}
|
|
4190
|
+
get id() {
|
|
4191
|
+
return this._id;
|
|
4192
|
+
}
|
|
4193
|
+
withId(id) {
|
|
4194
|
+
return id === this._id ? this : new VariableDeclarations_1(id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._typeExpression, this._varargs, this._dimensionsBeforeName, this._variables);
|
|
4195
|
+
}
|
|
4196
|
+
get prefix() {
|
|
4197
|
+
return this._prefix;
|
|
4198
|
+
}
|
|
4199
|
+
withPrefix(prefix) {
|
|
4200
|
+
return prefix === this._prefix ? this : new VariableDeclarations_1(this._id, prefix, this._markers, this._leadingAnnotations, this._modifiers, this._typeExpression, this._varargs, this._dimensionsBeforeName, this._variables);
|
|
4201
|
+
}
|
|
4202
|
+
get markers() {
|
|
4203
|
+
return this._markers;
|
|
4204
|
+
}
|
|
4205
|
+
withMarkers(markers) {
|
|
4206
|
+
return markers === this._markers ? this : new VariableDeclarations_1(this._id, this._prefix, markers, this._leadingAnnotations, this._modifiers, this._typeExpression, this._varargs, this._dimensionsBeforeName, this._variables);
|
|
4207
|
+
}
|
|
4208
|
+
get leadingAnnotations() {
|
|
4209
|
+
return this._leadingAnnotations;
|
|
4210
|
+
}
|
|
4211
|
+
withLeadingAnnotations(leadingAnnotations) {
|
|
4212
|
+
return leadingAnnotations === this._leadingAnnotations ? this : new VariableDeclarations_1(this._id, this._prefix, this._markers, leadingAnnotations, this._modifiers, this._typeExpression, this._varargs, this._dimensionsBeforeName, this._variables);
|
|
4213
|
+
}
|
|
4214
|
+
get modifiers() {
|
|
4215
|
+
return this._modifiers;
|
|
4216
|
+
}
|
|
4217
|
+
withModifiers(modifiers) {
|
|
4218
|
+
return modifiers === this._modifiers ? this : new VariableDeclarations_1(this._id, this._prefix, this._markers, this._leadingAnnotations, modifiers, this._typeExpression, this._varargs, this._dimensionsBeforeName, this._variables);
|
|
4219
|
+
}
|
|
4220
|
+
get typeExpression() {
|
|
4221
|
+
return this._typeExpression;
|
|
4222
|
+
}
|
|
4223
|
+
withTypeExpression(typeExpression) {
|
|
4224
|
+
return typeExpression === this._typeExpression ? this : new VariableDeclarations_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, typeExpression, this._varargs, this._dimensionsBeforeName, this._variables);
|
|
4225
|
+
}
|
|
4226
|
+
get varargs() {
|
|
4227
|
+
return this._varargs;
|
|
4228
|
+
}
|
|
4229
|
+
withVarargs(varargs) {
|
|
4230
|
+
return varargs === this._varargs ? this : new VariableDeclarations_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._typeExpression, varargs, this._dimensionsBeforeName, this._variables);
|
|
4231
|
+
}
|
|
4232
|
+
get dimensionsBeforeName() {
|
|
4233
|
+
return this._dimensionsBeforeName;
|
|
4234
|
+
}
|
|
4235
|
+
withDimensionsBeforeName(dimensionsBeforeName) {
|
|
4236
|
+
return dimensionsBeforeName === this._dimensionsBeforeName ? this : new VariableDeclarations_1(this._id, this._prefix, this._markers, this._leadingAnnotations, this._modifiers, this._typeExpression, this._varargs, dimensionsBeforeName, this._variables);
|
|
4237
|
+
}
|
|
4238
|
+
get variables() {
|
|
4239
|
+
return support_types_1.JRightPadded.getElements(this._variables);
|
|
4240
|
+
}
|
|
4241
|
+
withVariables(variables) {
|
|
4242
|
+
return this.padding.withVariables(support_types_1.JRightPadded.withElements(this._variables, variables));
|
|
4243
|
+
}
|
|
4244
|
+
acceptJava(v, p) {
|
|
4245
|
+
return v.visitVariableDeclarations(this, p);
|
|
4246
|
+
}
|
|
4247
|
+
get type() {
|
|
4248
|
+
return extensions.getJavaType(this);
|
|
4249
|
+
}
|
|
4250
|
+
withType(type) {
|
|
4251
|
+
return extensions.withJavaType(this, type);
|
|
4252
|
+
}
|
|
4253
|
+
get padding() {
|
|
4254
|
+
const t = this;
|
|
4255
|
+
return new class {
|
|
4256
|
+
get variables() {
|
|
4257
|
+
return t._variables;
|
|
4258
|
+
}
|
|
4259
|
+
withVariables(variables) {
|
|
4260
|
+
return t._variables === variables ? t : new VariableDeclarations_1(t._id, t._prefix, t._markers, t._leadingAnnotations, t._modifiers, t._typeExpression, t._varargs, t._dimensionsBeforeName, variables);
|
|
4261
|
+
}
|
|
4262
|
+
};
|
|
4263
|
+
}
|
|
4264
|
+
};
|
|
4265
|
+
exports.VariableDeclarations = VariableDeclarations;
|
|
4266
|
+
exports.VariableDeclarations = VariableDeclarations = VariableDeclarations_1 = __decorate([
|
|
4267
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$VariableDeclarations")
|
|
4268
|
+
], VariableDeclarations);
|
|
4269
|
+
(function (VariableDeclarations) {
|
|
4270
|
+
let NamedVariable = class NamedVariable extends (0, support_types_1.JMixin)(Object) {
|
|
4271
|
+
constructor(id, prefix, markers, name, dimensionsAfterName, initializer, variableType) {
|
|
4272
|
+
super();
|
|
4273
|
+
this._id = id;
|
|
4274
|
+
this._prefix = prefix;
|
|
4275
|
+
this._markers = markers;
|
|
4276
|
+
this._name = name;
|
|
4277
|
+
this._dimensionsAfterName = dimensionsAfterName;
|
|
4278
|
+
this._initializer = initializer;
|
|
4279
|
+
this._variableType = variableType;
|
|
4280
|
+
}
|
|
4281
|
+
get id() {
|
|
4282
|
+
return this._id;
|
|
4283
|
+
}
|
|
4284
|
+
withId(id) {
|
|
4285
|
+
return id === this._id ? this : new VariableDeclarations.NamedVariable(id, this._prefix, this._markers, this._name, this._dimensionsAfterName, this._initializer, this._variableType);
|
|
4286
|
+
}
|
|
4287
|
+
get prefix() {
|
|
4288
|
+
return this._prefix;
|
|
4289
|
+
}
|
|
4290
|
+
withPrefix(prefix) {
|
|
4291
|
+
return prefix === this._prefix ? this : new VariableDeclarations.NamedVariable(this._id, prefix, this._markers, this._name, this._dimensionsAfterName, this._initializer, this._variableType);
|
|
4292
|
+
}
|
|
4293
|
+
get markers() {
|
|
4294
|
+
return this._markers;
|
|
4295
|
+
}
|
|
4296
|
+
withMarkers(markers) {
|
|
4297
|
+
return markers === this._markers ? this : new VariableDeclarations.NamedVariable(this._id, this._prefix, markers, this._name, this._dimensionsAfterName, this._initializer, this._variableType);
|
|
4298
|
+
}
|
|
4299
|
+
get name() {
|
|
4300
|
+
return this._name;
|
|
4301
|
+
}
|
|
4302
|
+
withName(name) {
|
|
4303
|
+
return name === this._name ? this : new VariableDeclarations.NamedVariable(this._id, this._prefix, this._markers, name, this._dimensionsAfterName, this._initializer, this._variableType);
|
|
4304
|
+
}
|
|
4305
|
+
get dimensionsAfterName() {
|
|
4306
|
+
return this._dimensionsAfterName;
|
|
4307
|
+
}
|
|
4308
|
+
withDimensionsAfterName(dimensionsAfterName) {
|
|
4309
|
+
return dimensionsAfterName === this._dimensionsAfterName ? this : new VariableDeclarations.NamedVariable(this._id, this._prefix, this._markers, this._name, dimensionsAfterName, this._initializer, this._variableType);
|
|
4310
|
+
}
|
|
4311
|
+
get initializer() {
|
|
4312
|
+
return this._initializer === null ? null : this._initializer.element;
|
|
4313
|
+
}
|
|
4314
|
+
withInitializer(initializer) {
|
|
4315
|
+
return this.padding.withInitializer(support_types_1.JLeftPadded.withElement(this._initializer, initializer));
|
|
4316
|
+
}
|
|
4317
|
+
get variableType() {
|
|
4318
|
+
return this._variableType;
|
|
4319
|
+
}
|
|
4320
|
+
withVariableType(variableType) {
|
|
4321
|
+
return variableType === this._variableType ? this : new VariableDeclarations.NamedVariable(this._id, this._prefix, this._markers, this._name, this._dimensionsAfterName, this._initializer, variableType);
|
|
4322
|
+
}
|
|
4323
|
+
acceptJava(v, p) {
|
|
4324
|
+
return v.visitVariable(this, p);
|
|
4325
|
+
}
|
|
4326
|
+
get type() {
|
|
4327
|
+
return extensions.getJavaType(this);
|
|
4328
|
+
}
|
|
4329
|
+
withType(type) {
|
|
4330
|
+
return extensions.withJavaType(this, type);
|
|
4331
|
+
}
|
|
4332
|
+
get padding() {
|
|
4333
|
+
const t = this;
|
|
4334
|
+
return new class {
|
|
4335
|
+
get initializer() {
|
|
4336
|
+
return t._initializer;
|
|
4337
|
+
}
|
|
4338
|
+
withInitializer(initializer) {
|
|
4339
|
+
return t._initializer === initializer ? t : new VariableDeclarations.NamedVariable(t._id, t._prefix, t._markers, t._name, t._dimensionsAfterName, initializer, t._variableType);
|
|
4340
|
+
}
|
|
4341
|
+
};
|
|
4342
|
+
}
|
|
4343
|
+
};
|
|
4344
|
+
NamedVariable = __decorate([
|
|
4345
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$VariableDeclarations$NamedVariable")
|
|
4346
|
+
], NamedVariable);
|
|
4347
|
+
VariableDeclarations.NamedVariable = NamedVariable;
|
|
4348
|
+
})(VariableDeclarations || (exports.VariableDeclarations = VariableDeclarations = {}));
|
|
4349
|
+
let WhileLoop = WhileLoop_1 = class WhileLoop extends (0, support_types_1.JMixin)(Object) {
|
|
4350
|
+
constructor(id, prefix, markers, condition, body) {
|
|
4351
|
+
super();
|
|
4352
|
+
this._id = id;
|
|
4353
|
+
this._prefix = prefix;
|
|
4354
|
+
this._markers = markers;
|
|
4355
|
+
this._condition = condition;
|
|
4356
|
+
this._body = body;
|
|
4357
|
+
}
|
|
4358
|
+
get id() {
|
|
4359
|
+
return this._id;
|
|
4360
|
+
}
|
|
4361
|
+
withId(id) {
|
|
4362
|
+
return id === this._id ? this : new WhileLoop_1(id, this._prefix, this._markers, this._condition, this._body);
|
|
4363
|
+
}
|
|
4364
|
+
get prefix() {
|
|
4365
|
+
return this._prefix;
|
|
4366
|
+
}
|
|
4367
|
+
withPrefix(prefix) {
|
|
4368
|
+
return prefix === this._prefix ? this : new WhileLoop_1(this._id, prefix, this._markers, this._condition, this._body);
|
|
4369
|
+
}
|
|
4370
|
+
get markers() {
|
|
4371
|
+
return this._markers;
|
|
4372
|
+
}
|
|
4373
|
+
withMarkers(markers) {
|
|
4374
|
+
return markers === this._markers ? this : new WhileLoop_1(this._id, this._prefix, markers, this._condition, this._body);
|
|
4375
|
+
}
|
|
4376
|
+
get condition() {
|
|
4377
|
+
return this._condition;
|
|
4378
|
+
}
|
|
4379
|
+
withCondition(condition) {
|
|
4380
|
+
return condition === this._condition ? this : new WhileLoop_1(this._id, this._prefix, this._markers, condition, this._body);
|
|
4381
|
+
}
|
|
4382
|
+
get body() {
|
|
4383
|
+
return this._body.element;
|
|
4384
|
+
}
|
|
4385
|
+
withBody(body) {
|
|
4386
|
+
return this.padding.withBody(this._body.withElement(body));
|
|
4387
|
+
}
|
|
4388
|
+
acceptJava(v, p) {
|
|
4389
|
+
return v.visitWhileLoop(this, p);
|
|
4390
|
+
}
|
|
4391
|
+
get padding() {
|
|
4392
|
+
const t = this;
|
|
4393
|
+
return new class {
|
|
4394
|
+
get body() {
|
|
4395
|
+
return t._body;
|
|
4396
|
+
}
|
|
4397
|
+
withBody(body) {
|
|
4398
|
+
return t._body === body ? t : new WhileLoop_1(t._id, t._prefix, t._markers, t._condition, body);
|
|
4399
|
+
}
|
|
4400
|
+
};
|
|
4401
|
+
}
|
|
4402
|
+
};
|
|
4403
|
+
exports.WhileLoop = WhileLoop;
|
|
4404
|
+
exports.WhileLoop = WhileLoop = WhileLoop_1 = __decorate([
|
|
4405
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$WhileLoop")
|
|
4406
|
+
], WhileLoop);
|
|
4407
|
+
let Wildcard = Wildcard_1 = class Wildcard extends (0, support_types_1.JMixin)(Object) {
|
|
4408
|
+
constructor(id, prefix, markers, bound, boundedType) {
|
|
4409
|
+
super();
|
|
4410
|
+
this._id = id;
|
|
4411
|
+
this._prefix = prefix;
|
|
4412
|
+
this._markers = markers;
|
|
4413
|
+
this._bound = bound;
|
|
4414
|
+
this._boundedType = boundedType;
|
|
4415
|
+
}
|
|
4416
|
+
get id() {
|
|
4417
|
+
return this._id;
|
|
4418
|
+
}
|
|
4419
|
+
withId(id) {
|
|
4420
|
+
return id === this._id ? this : new Wildcard_1(id, this._prefix, this._markers, this._bound, this._boundedType);
|
|
4421
|
+
}
|
|
4422
|
+
get prefix() {
|
|
4423
|
+
return this._prefix;
|
|
4424
|
+
}
|
|
4425
|
+
withPrefix(prefix) {
|
|
4426
|
+
return prefix === this._prefix ? this : new Wildcard_1(this._id, prefix, this._markers, this._bound, this._boundedType);
|
|
4427
|
+
}
|
|
4428
|
+
get markers() {
|
|
4429
|
+
return this._markers;
|
|
4430
|
+
}
|
|
4431
|
+
withMarkers(markers) {
|
|
4432
|
+
return markers === this._markers ? this : new Wildcard_1(this._id, this._prefix, markers, this._bound, this._boundedType);
|
|
4433
|
+
}
|
|
4434
|
+
get bound() {
|
|
4435
|
+
return this._bound === null ? null : this._bound.element;
|
|
4436
|
+
}
|
|
4437
|
+
withBound(bound) {
|
|
4438
|
+
return this.padding.withBound(support_types_1.JLeftPadded.withElement(this._bound, bound));
|
|
4439
|
+
}
|
|
4440
|
+
get boundedType() {
|
|
4441
|
+
return this._boundedType;
|
|
4442
|
+
}
|
|
4443
|
+
withBoundedType(boundedType) {
|
|
4444
|
+
return boundedType === this._boundedType ? this : new Wildcard_1(this._id, this._prefix, this._markers, this._bound, boundedType);
|
|
4445
|
+
}
|
|
4446
|
+
acceptJava(v, p) {
|
|
4447
|
+
return v.visitWildcard(this, p);
|
|
4448
|
+
}
|
|
4449
|
+
get type() {
|
|
4450
|
+
return extensions.getJavaType(this);
|
|
4451
|
+
}
|
|
4452
|
+
withType(type) {
|
|
4453
|
+
return extensions.withJavaType(this, type);
|
|
4454
|
+
}
|
|
4455
|
+
get padding() {
|
|
4456
|
+
const t = this;
|
|
4457
|
+
return new class {
|
|
4458
|
+
get bound() {
|
|
4459
|
+
return t._bound;
|
|
4460
|
+
}
|
|
4461
|
+
withBound(bound) {
|
|
4462
|
+
return t._bound === bound ? t : new Wildcard_1(t._id, t._prefix, t._markers, bound, t._boundedType);
|
|
4463
|
+
}
|
|
4464
|
+
};
|
|
4465
|
+
}
|
|
4466
|
+
};
|
|
4467
|
+
exports.Wildcard = Wildcard;
|
|
4468
|
+
exports.Wildcard = Wildcard = Wildcard_1 = __decorate([
|
|
4469
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Wildcard")
|
|
4470
|
+
], Wildcard);
|
|
4471
|
+
(function (Wildcard) {
|
|
4472
|
+
let Bound;
|
|
4473
|
+
(function (Bound) {
|
|
4474
|
+
Bound[Bound["Extends"] = 0] = "Extends";
|
|
4475
|
+
Bound[Bound["Super"] = 1] = "Super";
|
|
4476
|
+
})(Bound = Wildcard.Bound || (Wildcard.Bound = {}));
|
|
4477
|
+
})(Wildcard || (exports.Wildcard = Wildcard = {}));
|
|
4478
|
+
let Yield = Yield_1 = class Yield extends (0, support_types_1.JMixin)(Object) {
|
|
4479
|
+
constructor(id, prefix, markers, implicit, value) {
|
|
4480
|
+
super();
|
|
4481
|
+
this._id = id;
|
|
4482
|
+
this._prefix = prefix;
|
|
4483
|
+
this._markers = markers;
|
|
4484
|
+
this._implicit = implicit;
|
|
4485
|
+
this._value = value;
|
|
4486
|
+
}
|
|
4487
|
+
get id() {
|
|
4488
|
+
return this._id;
|
|
4489
|
+
}
|
|
4490
|
+
withId(id) {
|
|
4491
|
+
return id === this._id ? this : new Yield_1(id, this._prefix, this._markers, this._implicit, this._value);
|
|
4492
|
+
}
|
|
4493
|
+
get prefix() {
|
|
4494
|
+
return this._prefix;
|
|
4495
|
+
}
|
|
4496
|
+
withPrefix(prefix) {
|
|
4497
|
+
return prefix === this._prefix ? this : new Yield_1(this._id, prefix, this._markers, this._implicit, this._value);
|
|
4498
|
+
}
|
|
4499
|
+
get markers() {
|
|
4500
|
+
return this._markers;
|
|
4501
|
+
}
|
|
4502
|
+
withMarkers(markers) {
|
|
4503
|
+
return markers === this._markers ? this : new Yield_1(this._id, this._prefix, markers, this._implicit, this._value);
|
|
4504
|
+
}
|
|
4505
|
+
get implicit() {
|
|
4506
|
+
return this._implicit;
|
|
4507
|
+
}
|
|
4508
|
+
withImplicit(implicit) {
|
|
4509
|
+
return implicit === this._implicit ? this : new Yield_1(this._id, this._prefix, this._markers, implicit, this._value);
|
|
4510
|
+
}
|
|
4511
|
+
get value() {
|
|
4512
|
+
return this._value;
|
|
4513
|
+
}
|
|
4514
|
+
withValue(value) {
|
|
4515
|
+
return value === this._value ? this : new Yield_1(this._id, this._prefix, this._markers, this._implicit, value);
|
|
4516
|
+
}
|
|
4517
|
+
acceptJava(v, p) {
|
|
4518
|
+
return v.visitYield(this, p);
|
|
4519
|
+
}
|
|
4520
|
+
};
|
|
4521
|
+
exports.Yield = Yield;
|
|
4522
|
+
exports.Yield = Yield = Yield_1 = __decorate([
|
|
4523
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Yield")
|
|
4524
|
+
], Yield);
|
|
4525
|
+
let Unknown = Unknown_1 = class Unknown extends (0, support_types_1.JMixin)(Object) {
|
|
4526
|
+
constructor(id, prefix, markers, source) {
|
|
4527
|
+
super();
|
|
4528
|
+
this._id = id;
|
|
4529
|
+
this._prefix = prefix;
|
|
4530
|
+
this._markers = markers;
|
|
4531
|
+
this._source = source;
|
|
4532
|
+
}
|
|
4533
|
+
get id() {
|
|
4534
|
+
return this._id;
|
|
4535
|
+
}
|
|
4536
|
+
withId(id) {
|
|
4537
|
+
return id === this._id ? this : new Unknown_1(id, this._prefix, this._markers, this._source);
|
|
4538
|
+
}
|
|
4539
|
+
get prefix() {
|
|
4540
|
+
return this._prefix;
|
|
4541
|
+
}
|
|
4542
|
+
withPrefix(prefix) {
|
|
4543
|
+
return prefix === this._prefix ? this : new Unknown_1(this._id, prefix, this._markers, this._source);
|
|
4544
|
+
}
|
|
4545
|
+
get markers() {
|
|
4546
|
+
return this._markers;
|
|
4547
|
+
}
|
|
4548
|
+
withMarkers(markers) {
|
|
4549
|
+
return markers === this._markers ? this : new Unknown_1(this._id, this._prefix, markers, this._source);
|
|
4550
|
+
}
|
|
4551
|
+
get source() {
|
|
4552
|
+
return this._source;
|
|
4553
|
+
}
|
|
4554
|
+
withSource(source) {
|
|
4555
|
+
return source === this._source ? this : new Unknown_1(this._id, this._prefix, this._markers, source);
|
|
4556
|
+
}
|
|
4557
|
+
acceptJava(v, p) {
|
|
4558
|
+
return v.visitUnknown(this, p);
|
|
4559
|
+
}
|
|
4560
|
+
get type() {
|
|
4561
|
+
return extensions.getJavaType(this);
|
|
4562
|
+
}
|
|
4563
|
+
withType(type) {
|
|
4564
|
+
return extensions.withJavaType(this, type);
|
|
4565
|
+
}
|
|
4566
|
+
};
|
|
4567
|
+
exports.Unknown = Unknown;
|
|
4568
|
+
exports.Unknown = Unknown = Unknown_1 = __decorate([
|
|
4569
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Unknown")
|
|
4570
|
+
], Unknown);
|
|
4571
|
+
(function (Unknown) {
|
|
4572
|
+
let Source = class Source extends (0, support_types_1.JMixin)(Object) {
|
|
4573
|
+
constructor(id, prefix, markers, text) {
|
|
4574
|
+
super();
|
|
4575
|
+
this._id = id;
|
|
4576
|
+
this._prefix = prefix;
|
|
4577
|
+
this._markers = markers;
|
|
4578
|
+
this._text = text;
|
|
4579
|
+
}
|
|
4580
|
+
get id() {
|
|
4581
|
+
return this._id;
|
|
4582
|
+
}
|
|
4583
|
+
withId(id) {
|
|
4584
|
+
return id === this._id ? this : new Unknown.Source(id, this._prefix, this._markers, this._text);
|
|
4585
|
+
}
|
|
4586
|
+
get prefix() {
|
|
4587
|
+
return this._prefix;
|
|
4588
|
+
}
|
|
4589
|
+
withPrefix(prefix) {
|
|
4590
|
+
return prefix === this._prefix ? this : new Unknown.Source(this._id, prefix, this._markers, this._text);
|
|
4591
|
+
}
|
|
4592
|
+
get markers() {
|
|
4593
|
+
return this._markers;
|
|
4594
|
+
}
|
|
4595
|
+
withMarkers(markers) {
|
|
4596
|
+
return markers === this._markers ? this : new Unknown.Source(this._id, this._prefix, markers, this._text);
|
|
4597
|
+
}
|
|
4598
|
+
get text() {
|
|
4599
|
+
return this._text;
|
|
4600
|
+
}
|
|
4601
|
+
withText(text) {
|
|
4602
|
+
return text === this._text ? this : new Unknown.Source(this._id, this._prefix, this._markers, text);
|
|
4603
|
+
}
|
|
4604
|
+
acceptJava(v, p) {
|
|
4605
|
+
return v.visitUnknownSource(this, p);
|
|
4606
|
+
}
|
|
4607
|
+
};
|
|
4608
|
+
Source = __decorate([
|
|
4609
|
+
(0, core_1.LstType)("org.openrewrite.java.tree.J$Unknown$Source")
|
|
4610
|
+
], Source);
|
|
4611
|
+
Unknown.Source = Source;
|
|
4612
|
+
})(Unknown || (exports.Unknown = Unknown = {}));
|
|
4613
|
+
//# sourceMappingURL=tree.js.map
|