Measurement$class.java
12.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.forms.transformer.impl.Measurement$
* com.adobe.forms.transformer.impl.Measurement$$anonfun
* com.adobe.forms.transformer.impl.Measurement$$anonfun$getFontSizeOrNull
* com.adobe.forms.transformer.impl.Measurement$$anonfun$getImageSizeOrNull
* com.adobe.forms.transformer.impl.Measurement$$anonfun$getMeasurementWithFunc
* com.adobe.forms.transformer.impl.Measurement$$anonfun$getMeasurementWithFunc$default
* com.adobe.forms.transformer.impl.Measurement$$anonfun$getMeasurementWithFunc$default$4
* com.adobe.forms.transformer.impl.Measurement$$anonfun$getMeasurementWithRef
* com.adobe.forms.transformer.impl.Measurement$$anonfun$mm2px
* com.adobe.forms.transformer.impl.Measurement$$anonfun$pt2px
* scala.Function0
* scala.Function1
* scala.MatchError
* scala.None
* scala.None$
* scala.Option
* scala.Some
* scala.collection.mutable.StringBuilder
* scala.math.package
* scala.math.package$
* scala.runtime.AbstractFunction0
* scala.runtime.AbstractFunction0$mcD
* scala.runtime.AbstractFunction0$mcD$sp
* scala.runtime.AbstractFunction1
* scala.runtime.AbstractFunction1$mcJD
* scala.runtime.AbstractFunction1$mcJD$sp
* scala.runtime.BoxesRunTime
*/
package com.adobe.forms.transformer.impl;
import com.adobe.forms.transformer.impl.Measurement;
import scala.Function0;
import scala.Function1;
import scala.MatchError;
import scala.None;
import scala.Option;
import scala.Some;
import scala.collection.mutable.StringBuilder;
import scala.math.package;
import scala.runtime.AbstractFunction0;
import scala.runtime.AbstractFunction1;
import scala.runtime.BoxesRunTime;
public abstract class Measurement$class {
public static long mm2px(Measurement $this, double a) {
double b = package..MODULE$.abs(a);
return b > (double)false ? 1 : 0 ? package..MODULE$.max(package..MODULE$.round(b * $this.deviceResolution() * $this.mm2in()), 1) * (long)(a > (double)false ? 1 : 0 ? 1 : -1) : 0;
}
public static long mm2px(Measurement $this, Option a) {
return $this.mm2px(BoxesRunTime.unboxToDouble((Object)a.getOrElse((Function0)new scala.Serializable($this){
public static final long serialVersionUID;
public static {
long l = Measurement..anonfun.mm2px.serialVersionUID = 0;
}
public final double apply() {
return this.apply$mcD$sp();
}
public double apply$mcD$sp() {
return 0.0;
}
})));
}
public static String getMeasurement(Measurement $this, Option v, String returnOnNone, String unit, Option prefix, Option suffix) {
return $this.getMeasurementWithRef((Option<Object>)v, (Option<Object>)None..MODULE$, returnOnNone, unit, (Option<String>)prefix, (Option<String>)suffix);
}
public static long unity(Measurement $this, double d) {
return (long)d;
}
public static String getMeasurementWithRef(Measurement $this, Option v, Option ref$1, String returnOnNone, String unit, Option prefix, Option suffix) {
return $this.getMeasurementWithFunc((Option<Object>)v, returnOnNone, unit, (Function1<Object, Object>)new scala.Serializable($this, ref$1){
public static final long serialVersionUID;
private final Measurement $outer;
private final Option ref$1;
public static {
long l = Measurement..anonfun.getMeasurementWithRef.serialVersionUID = 0;
}
public final long apply(double a) {
return this.apply$mcJD$sp(a);
}
public long apply$mcJD$sp(double v1) {
return this.$outer.mm2px(v1) - this.$outer.mm2px(BoxesRunTime.unboxToDouble((Object)this.ref$1.getOrElse((Function0)new scala.Serializable(this){
public static final long serialVersionUID;
public static {
long l = com.adobe.forms.transformer.impl.Measurement$$anonfun$getMeasurementWithRef$1$$anonfun$apply$mcJD$sp$1.serialVersionUID = 0;
}
public final double apply() {
return this.apply$mcD$sp();
}
public double apply$mcD$sp() {
return 0.0;
}
})));
}
}, (Option<String>)prefix, (Option<String>)suffix);
}
public static String getMeasurementOrEmpty(Measurement $this, Option v, Option prefix, Option suffix) {
return $this.getMeasurement(v, "", $this.U(), prefix, suffix);
}
public static Option getMeasurementOrEmpty$default$3(Measurement $this) {
return None..MODULE$;
}
public static Option getMeasurementOrEmpty$default$2(Measurement $this) {
return None..MODULE$;
}
public static String getMeasurementOrZero(Measurement $this, Option v, Option prefix, Option suffix) {
return $this.getMeasurement(v, "0", $this.U(), prefix, suffix);
}
public static Option getMeasurementOrZero$default$3(Measurement $this) {
return None..MODULE$;
}
public static Option getMeasurementOrZero$default$2(Measurement $this) {
return None..MODULE$;
}
public static String getMeasurementOrNull(Measurement $this, Option v, Option prefix, Option suffix) {
return $this.getMeasurement(v, null, $this.U(), prefix, suffix);
}
public static Option getMeasurementOrNull$default$3(Measurement $this) {
return None..MODULE$;
}
public static Option getMeasurementOrNull$default$2(Measurement $this) {
return None..MODULE$;
}
public static String getMeasurementWithRefOrNull(Measurement $this, Option v, Option ref, Option prefix, Option suffix) {
return $this.getMeasurementWithRef(v, ref, null, $this.U(), prefix, suffix);
}
public static Option getMeasurementWithRefOrNull$default$4(Measurement $this) {
return None..MODULE$;
}
public static Option getMeasurementWithRefOrNull$default$3(Measurement $this) {
return None..MODULE$;
}
public static String getMeasurementWithRefOrEmpty(Measurement $this, Option v, Option ref, Option prefix, Option suffix) {
return $this.getMeasurementWithRef(v, ref, "", $this.U(), prefix, suffix);
}
public static Option getMeasurementWithRefOrEmpty$default$4(Measurement $this) {
return None..MODULE$;
}
public static Option getMeasurementWithRefOrEmpty$default$3(Measurement $this) {
return None..MODULE$;
}
public static long pt2px(Measurement $this, double a) {
double b = package..MODULE$.abs(a);
return b > (double)false ? 1 : 0 ? package..MODULE$.max(package..MODULE$.round(b * $this.deviceResolution() / (double)$this.pdfResolution()), 1) * (long)(a > (double)false ? 1 : 0 ? 1 : -1) : 0;
}
public static long pt2px(Measurement $this, Option a) {
return $this.pt2px(BoxesRunTime.unboxToDouble((Object)a.getOrElse((Function0)new scala.Serializable($this){
public static final long serialVersionUID;
public static {
long l = Measurement..anonfun.pt2px.serialVersionUID = 0;
}
public final double apply() {
return this.apply$mcD$sp();
}
public double apply$mcD$sp() {
return 0.0;
}
})));
}
public static String getFontSizeOrNull(Measurement $this, Option v) {
return $this.getMeasurementWithFunc((Option<Object>)v, null, $this.U(), (Function1<Object, Object>)new scala.Serializable($this){
public static final long serialVersionUID;
private final Measurement $outer;
public static {
long l = Measurement..anonfun.getFontSizeOrNull.serialVersionUID = 0;
}
public final long apply(double d) {
return this.apply$mcJD$sp(d);
}
public long apply$mcJD$sp(double v1) {
return this.$outer.pt2px(v1);
}
}, (Option<String>)None..MODULE$, (Option<String>)None..MODULE$);
}
public static String getImageSizeOrNull(Measurement $this, Option v) {
return $this.getMeasurementWithFunc((Option<Object>)v, null, $this.ImgU(), (Function1<Object, Object>)new scala.Serializable($this){
public static final long serialVersionUID;
private final Measurement $outer;
public static {
long l = Measurement..anonfun.getImageSizeOrNull.serialVersionUID = 0;
}
public final long apply(double a) {
return this.apply$mcJD$sp(a);
}
public long apply$mcJD$sp(double v1) {
return package..MODULE$.round(v1 * this.$outer.deviceResolution() * this.$outer.mm2in() > (double)true ? 1 : 0 ? v1 * this.$outer.deviceResolution() * this.$outer.mm2in() : 1.0);
}
}, (Option<String>)None..MODULE$, (Option<String>)None..MODULE$);
}
/*
* Enabled force condition propagation
* Lifted jumps to return sites
*/
public static String getMeasurementWithFunc(Measurement $this, Option v, String returnOnNone, String unit, Function1 f, Option prefix, Option suffix) {
String string;
Option option = v;
if (option instanceof Some) {
string = new StringBuilder().append((Object)((String)prefix.getOrElse((Function0)new scala.Serializable($this){
public static final long serialVersionUID;
public static {
long l = Measurement..anonfun.getMeasurementWithFunc.serialVersionUID = 0;
}
public final String apply() {
return "";
}
}))).append((Object)BoxesRunTime.boxToLong((long)f.apply$mcJD$sp(BoxesRunTime.unboxToDouble((Object)((Some)option).x())))).append((Object)unit).append(suffix.getOrElse((Function0)new scala.Serializable($this){
public static final long serialVersionUID;
public static {
long l = Measurement..anonfun.getMeasurementWithFunc.serialVersionUID = 0;
}
public final String apply() {
return "";
}
})).toString();
return string;
}
None. v1 = None..MODULE$;
Option option2 = option;
if (v1 == null) {
if (option2 != null) {
throw new MatchError((Object)option);
}
} else if (!v1.equals((Object)option2)) throw new MatchError((Object)option);
string = returnOnNone;
return string;
}
public static Function1 getMeasurementWithFunc$default$4(Measurement $this) {
return new scala.Serializable($this){
public static final long serialVersionUID;
private final Measurement $outer;
public static {
long l = Measurement..anonfun.getMeasurementWithFunc.default.4.serialVersionUID = 0;
}
public final long apply(double d) {
return this.apply$mcJD$sp(d);
}
public long apply$mcJD$sp(double v1) {
return this.$outer.unity(v1);
}
};
}
/*
* Enabled force condition propagation
* Lifted jumps to return sites
*/
public static long getPathParamsOrZero(Measurement $this, Option v, Option ref) {
Option option;
Option option2 = v;
if (!(option2 instanceof Some)) {
None. v0 = None..MODULE$;
option = option2;
if (v0 != null) {
if (!v0.equals((Object)option)) throw new MatchError((Object)option2);
return 0;
}
} else {
long l = (long)package..MODULE$.floor(BoxesRunTime.unboxToDouble((Object)((Some)option2).x()) * $this.deviceResolution() * $this.mm2in());
return l;
}
if (option == null) return 0;
throw new MatchError((Object)option2);
}
public static void $init$(Measurement $this) {
$this.com$adobe$forms$transformer$impl$Measurement$_setter_$pdfResolution_$eq(72);
$this.com$adobe$forms$transformer$impl$Measurement$_setter_$mm2in_$eq(0.03937007874015748);
$this.com$adobe$forms$transformer$impl$Measurement$_setter_$ImgU_$eq("px");
$this.com$adobe$forms$transformer$impl$Measurement$_setter_$U_$eq("px");
$this.com$adobe$forms$transformer$impl$Measurement$_setter_$FU_$eq("pt");
}
}