-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrhino.d.ts
4337 lines (4336 loc) · 156 KB
/
rhino.d.ts
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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/// <reference path="android-declarations.d.ts"/>
declare module org {
export module mozilla {
export module javascript {
export module ast {
export class AstRoot extends org.mozilla.javascript.ast.ScriptNode {
public static class: java.lang.Class<org.mozilla.javascript.ast.AstRoot>;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
);
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: number,
);
public toSource(): string;
public debugPrint(): string;
public toSource(param0: number): string;
public visitComments(
param0: org.mozilla.javascript.ast.NodeVisitor,
): void;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: org.mozilla.javascript.Node,
);
public addComment(param0: org.mozilla.javascript.ast.Comment): void;
public constructor();
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
);
public setComments(
param0: java.util.SortedSet<org.mozilla.javascript.ast.Comment>,
): void;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: org.mozilla.javascript.Node,
param4: number,
);
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: number,
);
public getComments(): java.util.SortedSet<org.mozilla.javascript.ast.Comment>;
public visitAll(param0: org.mozilla.javascript.ast.NodeVisitor): void;
public constructor(param0: number);
public checkParentLinks(): void;
public constructor(param0: number, param1: number);
}
export abstract class AstNode
extends org.mozilla.javascript.Node
implements java.lang.Comparable<org.mozilla.javascript.ast.AstNode>
{
public static class: java.lang.Class<org.mozilla.javascript.ast.AstNode>;
public inlineComment: org.mozilla.javascript.ast.AstNode;
public length: number;
public parent: org.mozilla.javascript.ast.AstNode;
public position: number;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
);
public hasSideEffects(): boolean;
public getLineno(): number;
public setBounds(param0: number, param1: number): void;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: number,
);
public addChild(param0: org.mozilla.javascript.ast.AstNode): void;
public getAbsolutePosition(): number;
public makeIndent(param0: number): string;
public getLength(): number;
public static codeBug(): java.lang.RuntimeException;
public shortName(): string;
public setPosition(param0: number): void;
public setInlineComment(
param0: org.mozilla.javascript.ast.AstNode,
): void;
public static operatorToString(param0: number): string;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
);
public constructor();
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: org.mozilla.javascript.Node,
param4: number,
);
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: number,
);
public compareTo(param0: org.mozilla.javascript.ast.AstNode): number;
public setParent(param0: org.mozilla.javascript.ast.AstNode): void;
public depth(): number;
public constructor(param0: number);
public constructor(param0: number, param1: number);
public static "<clinit>"(): void;
public getParent(): org.mozilla.javascript.ast.AstNode;
public toSource(): string;
public visit(param0: org.mozilla.javascript.ast.NodeVisitor): void;
public printList(
param0: java.util.List<Any>,
param1: java.lang.StringBuilder,
): void;
public setRelative(param0: number): void;
public assertNotNull(param0: Any): void;
public debugPrint(): string;
public setLength(param0: number): void;
public toSource(param0: number): string;
public getEnclosingFunction(): org.mozilla.javascript.ast.FunctionNode;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: org.mozilla.javascript.Node,
);
public getInlineComment(): org.mozilla.javascript.ast.AstNode;
public getAstRoot(): org.mozilla.javascript.ast.AstRoot;
public getEnclosingScope(): org.mozilla.javascript.ast.Scope;
public getPosition(): number;
}
export module AstNode {
export class DebugPrintVisitor extends org.mozilla.javascript.ast
.NodeVisitor {
public static class: java.lang.Class<org.mozilla.javascript.ast.AstNode.DebugPrintVisitor>;
public constructor(param0: java.lang.StringBuilder);
public visit(param0: org.mozilla.javascript.ast.AstNode): boolean;
public toString(): string;
}
export class PositionComparator extends java.lang.Object {
public static class: java.lang.Class<org.mozilla.javascript.ast.AstNode.PositionComparator>;
public constructor();
public compare(
param0: org.mozilla.javascript.ast.AstNode,
param1: org.mozilla.javascript.ast.AstNode,
): number;
}
}
export class Comment extends org.mozilla.javascript.ast.AstNode {
public static class: java.lang.Class<org.mozilla.javascript.ast.Comment>;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
);
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: number,
);
public toSource(): string;
public visit(param0: org.mozilla.javascript.ast.NodeVisitor): void;
public setValue(param0: string): void;
public constructor(
param0: number,
param1: number,
param2: org.mozilla.javascript.Token.CommentType,
param3: string,
);
public toSource(param0: number): string;
public getCommentType(): org.mozilla.javascript.Token.CommentType;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: org.mozilla.javascript.Node,
);
public getValue(): string;
public constructor();
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
);
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: org.mozilla.javascript.Node,
param4: number,
);
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: number,
);
public setCommentType(
param0: org.mozilla.javascript.Token.CommentType,
): void;
public constructor(param0: number);
public constructor(param0: number, param1: number);
}
export class FunctionNode extends org.mozilla.javascript.ast
.ScriptNode {
public static class: java.lang.Class<org.mozilla.javascript.ast.FunctionNode>;
public static ARROW_FUNCTION: number;
public static FUNCTION_EXPRESSION: number;
public static FUNCTION_EXPRESSION_STATEMENT: number;
public static FUNCTION_STATEMENT: number;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
);
public setParens(param0: number, param1: number): void;
public getResumptionPoints(): java.util.List<org.mozilla.javascript.Node>;
public addResumptionPoint(param0: org.mozilla.javascript.Node): void;
public isES6Generator(): boolean;
public setRequiresActivation(): void;
public isGetterMethod(): boolean;
public getFunctionType(): number;
public isExpressionClosure(): boolean;
public setFunctionType(param0: number): void;
public setIsES6Generator(): void;
public getLiveLocals(): java.util.Map<
org.mozilla.javascript.Node,
androidNative.Array<number>
>;
public constructor();
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
);
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: number,
);
public getRp(): number;
public setIsExpressionClosure(param0: boolean): void;
public constructor(param0: number, param1: number);
public static "<clinit>"(): void;
public addFunction(
param0: org.mozilla.javascript.ast.FunctionNode,
): number;
public toSource(): string;
public addLiveLocals(
param0: org.mozilla.javascript.Node,
param1: androidNative.Array<number>,
): void;
public getParams(): java.util.List<org.mozilla.javascript.ast.AstNode>;
public setBody(param0: org.mozilla.javascript.ast.AstNode): void;
public setParams(
param0: java.util.List<org.mozilla.javascript.ast.AstNode>,
): void;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: number,
);
public constructor(
param0: number,
param1: org.mozilla.javascript.ast.Name,
);
public isParam(param0: org.mozilla.javascript.ast.AstNode): boolean;
public setFunctionIsGetterMethod(): void;
public setRp(param0: number): void;
public setMemberExprNode(
param0: org.mozilla.javascript.ast.AstNode,
): void;
public requiresActivation(): boolean;
public getFunctionName(): org.mozilla.javascript.ast.Name;
public addParam(param0: org.mozilla.javascript.ast.AstNode): void;
public getMemberExprNode(): org.mozilla.javascript.ast.AstNode;
public isMethod(): boolean;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: org.mozilla.javascript.Node,
param4: number,
);
public constructor(param0: number);
public setLp(param0: number): void;
public visit(param0: org.mozilla.javascript.ast.NodeVisitor): void;
public isGenerator(): boolean;
public getBody(): org.mozilla.javascript.ast.AstNode;
public isNormalMethod(): boolean;
public setFunctionIsSetterMethod(): void;
public toSource(param0: number): string;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: org.mozilla.javascript.Node,
);
public getLp(): number;
public getName(): string;
public setIsGenerator(): void;
public setFunctionIsNormalMethod(): void;
public isSetterMethod(): boolean;
public setFunctionName(param0: org.mozilla.javascript.ast.Name): void;
}
export module FunctionNode {
export class Form {
public static class: java.lang.Class<org.mozilla.javascript.ast.FunctionNode.Form>;
public static FUNCTION: org.mozilla.javascript.ast.FunctionNode.Form;
public static GETTER: org.mozilla.javascript.ast.FunctionNode.Form;
public static METHOD: org.mozilla.javascript.ast.FunctionNode.Form;
public static SETTER: org.mozilla.javascript.ast.FunctionNode.Form;
public static "<clinit>"(): void;
public static valueOf(
param0: string,
): org.mozilla.javascript.ast.FunctionNode.Form;
public static values(): androidNative.Array<org.mozilla.javascript.ast.FunctionNode.Form>;
}
}
export class Jump extends org.mozilla.javascript.ast.AstNode {
public static class: java.lang.Class<org.mozilla.javascript.ast.Jump>;
public target: org.mozilla.javascript.Node;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
);
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: number,
);
public toSource(): string;
public visit(param0: org.mozilla.javascript.ast.NodeVisitor): void;
public getJumpStatement(): org.mozilla.javascript.ast.Jump;
public setDefault(param0: org.mozilla.javascript.Node): void;
public setLoop(param0: org.mozilla.javascript.ast.Jump): void;
public getDefault(): org.mozilla.javascript.Node;
public setJumpStatement(
param0: org.mozilla.javascript.ast.Jump,
): void;
public getFinally(): org.mozilla.javascript.Node;
public getLoop(): org.mozilla.javascript.ast.Jump;
public toSource(param0: number): string;
public setContinue(param0: org.mozilla.javascript.Node): void;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: org.mozilla.javascript.Node,
);
public constructor();
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
);
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: org.mozilla.javascript.Node,
param4: number,
);
public setFinally(param0: org.mozilla.javascript.Node): void;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: number,
);
public getContinue(): org.mozilla.javascript.Node;
public constructor(param0: number);
public constructor(param0: number, param1: number);
}
export class Name extends org.mozilla.javascript.ast.AstNode {
public static class: java.lang.Class<org.mozilla.javascript.ast.Name>;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
);
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: number,
);
public toSource(): string;
public visit(param0: org.mozilla.javascript.ast.NodeVisitor): void;
public constructor(param0: number, param1: string);
public getIdentifier(): string;
public length: number;
public toSource(param0: number): string;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: org.mozilla.javascript.Node,
);
public getScope(): org.mozilla.javascript.ast.Scope;
public isLocalName(): boolean;
public getDefiningScope(): org.mozilla.javascript.ast.Scope;
public constructor();
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
);
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: org.mozilla.javascript.Node,
param4: number,
);
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: number,
);
public setIdentifier(param0: string): void;
public constructor(param0: number);
public constructor(param0: number, param1: number);
public constructor(param0: number, param1: number, param2: string);
public setScope(param0: org.mozilla.javascript.ast.Scope): void;
}
export class NodeVisitor {
public static class: java.lang.Class<org.mozilla.javascript.ast.NodeVisitor>;
/**
* Constructs a new instance of the org.mozilla.javascript.ast.NodeVisitor interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
visit(param0: org.mozilla.javascript.ast.AstNode): boolean;
});
public constructor();
public visit(param0: org.mozilla.javascript.ast.AstNode): boolean;
}
export class RegExpLiteral extends org.mozilla.javascript.ast.AstNode {
public static class: java.lang.Class<org.mozilla.javascript.ast.RegExpLiteral>;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
);
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: number,
);
public toSource(): string;
public visit(param0: org.mozilla.javascript.ast.NodeVisitor): void;
public setValue(param0: string): void;
public toSource(param0: number): string;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: org.mozilla.javascript.Node,
);
public getValue(): string;
public constructor();
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
);
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: org.mozilla.javascript.Node,
param4: number,
);
public getFlags(): string;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: number,
);
public constructor(param0: number);
public constructor(param0: number, param1: number);
public setFlags(param0: string): void;
}
export class Scope extends org.mozilla.javascript.ast.Jump {
public static class: java.lang.Class<org.mozilla.javascript.ast.Scope>;
public parentScope: org.mozilla.javascript.ast.Scope;
public symbolTable: java.util.Map<
string,
org.mozilla.javascript.ast.Symbol
>;
public top: org.mozilla.javascript.ast.ScriptNode;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
);
public getSymbol(param0: string): org.mozilla.javascript.ast.Symbol;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: number,
);
public replaceWith(param0: org.mozilla.javascript.ast.Scope): void;
public static splitScope(
param0: org.mozilla.javascript.ast.Scope,
): org.mozilla.javascript.ast.Scope;
public getDefiningScope(
param0: string,
): org.mozilla.javascript.ast.Scope;
public clearParentScope(): void;
public constructor();
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
);
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: org.mozilla.javascript.Node,
param4: number,
);
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: number,
);
public setTop(param0: org.mozilla.javascript.ast.ScriptNode): void;
public constructor(param0: number);
public addChildScope(param0: org.mozilla.javascript.ast.Scope): void;
public constructor(param0: number, param1: number);
public getStatements(): java.util.List<org.mozilla.javascript.ast.AstNode>;
public toSource(): string;
public visit(param0: org.mozilla.javascript.ast.NodeVisitor): void;
public static joinScopes(
param0: org.mozilla.javascript.ast.Scope,
param1: org.mozilla.javascript.ast.Scope,
): void;
public putSymbol(param0: org.mozilla.javascript.ast.Symbol): void;
public getParentScope(): org.mozilla.javascript.ast.Scope;
public setParentScope(param0: org.mozilla.javascript.ast.Scope): void;
public toSource(param0: number): string;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: org.mozilla.javascript.Node,
);
public getTop(): org.mozilla.javascript.ast.ScriptNode;
public setSymbolTable(
param0: java.util.Map<string, org.mozilla.javascript.ast.Symbol>,
): void;
public getSymbolTable(): java.util.Map<
string,
org.mozilla.javascript.ast.Symbol
>;
public getChildScopes(): java.util.List<org.mozilla.javascript.ast.Scope>;
}
export class ScriptNode extends org.mozilla.javascript.ast.Scope {
public static class: java.lang.Class<org.mozilla.javascript.ast.ScriptNode>;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
);
public getFunctions(): java.util.List<org.mozilla.javascript.ast.FunctionNode>;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: number,
);
public getParamAndVarConst(): androidNative.Array<boolean>;
public addRegExp(
param0: org.mozilla.javascript.ast.RegExpLiteral,
): void;
public getIndexForNameNode(
param0: org.mozilla.javascript.Node,
): number;
public getSourceName(): string;
public setSymbols(
param0: java.util.List<org.mozilla.javascript.ast.Symbol>,
): void;
public getRegexpCount(): number;
public setEncodedSourceBounds(param0: number, param1: number): void;
public setEncodedSourceStart(param0: number): void;
public constructor();
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
);
public getParamAndVarCount(): number;
public getCompilerData(): Any;
public setSourceName(param0: string): void;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: org.mozilla.javascript.Node,
param4: number,
);
public setEncodedSource(param0: string): void;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: number,
);
public getEncodedSource(): string;
public getEncodedSourceStart(): number;
public getParamCount(): number;
public constructor(param0: number);
public constructor(param0: number, param1: number);
public getBaseLineno(): number;
public setCompilerData(param0: Any): void;
public addFunction(
param0: org.mozilla.javascript.ast.FunctionNode,
): number;
public addSymbol(param0: org.mozilla.javascript.ast.Symbol): void;
public setBaseLineno(param0: number): void;
public getEncodedSourceEnd(): number;
public getFunctionCount(): number;
public setInStrictMode(param0: boolean): void;
public visit(param0: org.mozilla.javascript.ast.NodeVisitor): void;
public getRegexpFlags(param0: number): string;
public getParamAndVarNames(): androidNative.Array<string>;
public setEncodedSourceEnd(param0: number): void;
public getFunctionNode(
param0: number,
): org.mozilla.javascript.ast.FunctionNode;
public getSymbols(): java.util.List<org.mozilla.javascript.ast.Symbol>;
public getParamOrVarName(param0: number): string;
public constructor(
param0: number,
param1: org.mozilla.javascript.Node,
param2: org.mozilla.javascript.Node,
param3: org.mozilla.javascript.Node,
);
public getNextTempName(): string;
public setEndLineno(param0: number): void;
public getRegexpString(param0: number): string;
public getEndLineno(): number;
public isInStrictMode(): boolean;
public flattenSymbolTable(param0: boolean): void;
}
// rome-ignore lint/suspicious/noShadowRestrictedNames: <explanation>
export class Symbol {
public static class: java.lang.Class<org.mozilla.javascript.ast.Symbol>;
public getIndex(): number;
public setDeclType(param0: number): void;
public getDeclTypeName(): string;
public setContainingTable(
param0: org.mozilla.javascript.ast.Scope,
): void;
public setIndex(param0: number): void;
public constructor(param0: number, param1: string);
public getNode(): org.mozilla.javascript.Node;
public setNode(param0: org.mozilla.javascript.Node): void;
public setName(param0: string): void;
public toString(): string;
public constructor();
public getName(): string;
public getDeclType(): number;
public getContainingTable(): org.mozilla.javascript.ast.Scope;
}
}
export class BaseFunction
extends org.mozilla.javascript.IdScriptableObject
implements org.mozilla.javascript.Function
{
public static class: java.lang.Class<org.mozilla.javascript.BaseFunction>;
public static GENERATOR_FUNCTION_CLASS: string;
public getMaxInstanceId(): number;
public has(
param0: number,
param1: org.mozilla.javascript.Scriptable,
): boolean;
public setPrototype(param0: org.mozilla.javascript.Scriptable): void;
public delete(param0: org.mozilla.javascript.Symbol): void;
public getClassName(): string;
public findPrototypeId(param0: org.mozilla.javascript.Symbol): number;
public setImmunePrototypeProperty(param0: Any): void;
public constructor(param0: boolean);
public findPrototypeId(param0: string): number;
public getFunctionName(): string;
public has(
param0: string,
param1: org.mozilla.javascript.Scriptable,
): boolean;
public constructor();
public hasPrototypeProperty(): boolean;
public createObject(
param0: org.mozilla.javascript.Context,
param1: org.mozilla.javascript.Scriptable,
): org.mozilla.javascript.Scriptable;
public put(
param0: string,
param1: org.mozilla.javascript.Scriptable,
param2: Any,
): void;
public construct(
param0: org.mozilla.javascript.Context,
param1: org.mozilla.javascript.Scriptable,
param2: androidNative.Array<Any>,
): org.mozilla.javascript.Scriptable;
public put(
param0: org.mozilla.javascript.Symbol,
param1: org.mozilla.javascript.Scriptable,
param2: Any,
): void;
public isGeneratorFunction(): boolean;
public getClassPrototype(): org.mozilla.javascript.Scriptable;
public hasInstance(param0: org.mozilla.javascript.Scriptable): boolean;
public getDefaultValue(param0: java.lang.Class<Any>): Any;
public getPrototype(): org.mozilla.javascript.Scriptable;
public static initAsGeneratorFunction(
param0: org.mozilla.javascript.Scriptable,
param1: boolean,
): Any;
public defineConst(
param0: string,
param1: org.mozilla.javascript.Scriptable,
): void;
public put(
param0: number,
param1: org.mozilla.javascript.Scriptable,
param2: Any,
): void;
public getInstanceIdValue(param0: number): Any;
public static getClassPrototype(
param0: org.mozilla.javascript.Scriptable,
param1: string,
): org.mozilla.javascript.Scriptable;
public decompile(param0: number, param1: number): string;
public getIds(
param0: boolean,
param1: boolean,
): androidNative.Array<Any>;
public get(param0: Any): Any;
public constructor(
param0: org.mozilla.javascript.Scriptable,
param1: org.mozilla.javascript.Scriptable,
);
public delete(param0: string): void;
public initPrototypeId(param0: number): void;
public isConst(param0: string): boolean;
public putConst(
param0: string,
param1: org.mozilla.javascript.Scriptable,
param2: Any,
): void;
public fillConstructorProperties(
param0: org.mozilla.javascript.IdFunctionObject,
): void;
public getArity(): number;
public get(
param0: org.mozilla.javascript.Symbol,
param1: org.mozilla.javascript.Scriptable,
): Any;
public getTypeOf(): string;
public getInstanceIdName(param0: number): string;
public findInstanceIdInfo(
param0: org.mozilla.javascript.Symbol,
): number;
public getParentScope(): org.mozilla.javascript.Scriptable;
public static isApplyOrCall(
param0: org.mozilla.javascript.IdFunctionObject,
): boolean;
public get(
param0: string,
param1: org.mozilla.javascript.Scriptable,
): Any;
public get(
param0: number,
param1: org.mozilla.javascript.Scriptable,
): Any;
public has(
param0: org.mozilla.javascript.Symbol,
param1: org.mozilla.javascript.Scriptable,
): boolean;
public setInstanceIdAttributes(param0: number, param1: number): void;
public setParentScope(param0: org.mozilla.javascript.Scriptable): void;
public getIds(): androidNative.Array<Any>;
public getLength(): number;
public getPrototypeProperty(): Any;
public static getDefaultValue(
param0: org.mozilla.javascript.Scriptable,
param1: java.lang.Class<Any>,
): Any;
public call(
param0: org.mozilla.javascript.Context,
param1: org.mozilla.javascript.Scriptable,
param2: org.mozilla.javascript.Scriptable,
param3: androidNative.Array<Any>,
): Any;
public findInstanceIdInfo(param0: string): number;
public static isApply(
param0: org.mozilla.javascript.IdFunctionObject,
): boolean;
public execIdCall(
param0: org.mozilla.javascript.IdFunctionObject,
param1: org.mozilla.javascript.Context,
param2: org.mozilla.javascript.Scriptable,
param3: org.mozilla.javascript.Scriptable,
param4: androidNative.Array<Any>,
): Any;
public static init(
param0: org.mozilla.javascript.Scriptable,
param1: boolean,
): void;
public delete(param0: number): void;
public getAllIds(): androidNative.Array<Any>;
public setInstanceIdValue(param0: number, param1: Any): void;
}
export class Callable {
public static class: java.lang.Class<org.mozilla.javascript.Callable>;
/**
* Constructs a new instance of the org.mozilla.javascript.Callable interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
call(
param0: org.mozilla.javascript.Context,
param1: org.mozilla.javascript.Scriptable,
param2: org.mozilla.javascript.Scriptable,
param3: androidNative.Array<Any>,
): Any;
});
public constructor();
public call(
param0: org.mozilla.javascript.Context,
param1: org.mozilla.javascript.Scriptable,
param2: org.mozilla.javascript.Scriptable,
param3: androidNative.Array<Any>,
): Any;
}
export class ClassShutter {
public static class: java.lang.Class<org.mozilla.javascript.ClassShutter>;
public constructor(implementation: {
visibleToScripts(param0: string): boolean;
});
public constructor();
public visibleToScripts(param0: string): boolean;
}
export class CompilerEnvirons {
public static class: java.lang.Class<org.mozilla.javascript.CompilerEnvirons>;
public activationNames: java.util.Set<string>;
public reportWarningAsError(): boolean;
public isXmlAvailable(): boolean;
public setActivationNames(param0: java.util.Set<string>): void;
public recoverFromErrors(): boolean;
public setGenerateDebugInfo(param0: boolean): void;
public isIdeMode(): boolean;
public setGenerateObserverCount(param0: boolean): void;
public isGeneratingSource(): boolean;
public setReservedKeywordAsIdentifier(param0: boolean): void;
public constructor();
public setErrorReporter(
param0: org.mozilla.javascript.ErrorReporter,
): void;
public getLanguageVersion(): number;
public getOptimizationLevel(): number;
public isAllowMemberExprAsFunctionName(): boolean;
public isRecordingComments(): boolean;
public setLanguageVersion(param0: number): void;
public setIdeMode(param0: boolean): void;
public setGeneratingSource(param0: boolean): void;
public isGenerateDebugInfo(): boolean;
public setAllowSharpComments(param0: boolean): void;
public setWarnTrailingComma(param0: boolean): void;
public getErrorReporter(): org.mozilla.javascript.ErrorReporter;
public setAllowMemberExprAsFunctionName(param0: boolean): void;
public getAllowSharpComments(): boolean;
public isReservedKeywordAsIdentifier(): boolean;
public setRecordingLocalJsDocComments(param0: boolean): void;
public static ideEnvirons(): org.mozilla.javascript.CompilerEnvirons;
public isStrictMode(): boolean;
public getActivationNames(): java.util.Set<string>;
public isRecordingLocalJsDocComments(): boolean;
public isGenerateObserverCount(): boolean;
public setRecoverFromErrors(param0: boolean): void;
public getWarnTrailingComma(): boolean;
public initFromContext(param0: org.mozilla.javascript.Context): void;
public setOptimizationLevel(param0: number): void;
public setXmlAvailable(param0: boolean): void;
public setStrictMode(param0: boolean): void;
public setRecordingComments(param0: boolean): void;
}
export class ConstProperties {
public static class: java.lang.Class<org.mozilla.javascript.ConstProperties>;
/**
* Constructs a new instance of the org.mozilla.javascript.ConstProperties interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
defineConst(
param0: string,
param1: org.mozilla.javascript.Scriptable,
): void;
isConst(param0: string): boolean;
putConst(
param0: string,
param1: org.mozilla.javascript.Scriptable,
param2: Any,
): void;
});
public constructor();
public isConst(param0: string): boolean;
public putConst(
param0: string,
param1: org.mozilla.javascript.Scriptable,
param2: Any,
): void;
public defineConst(
param0: string,
param1: org.mozilla.javascript.Scriptable,
): void;
}
export class Context {
public static class: java.lang.Class<org.mozilla.javascript.Context>;
public static FEATURE_DYNAMIC_SCOPE: number;
public static FEATURE_E4X: number;
public static FEATURE_ENABLE_XML_SECURE_PARSING: number;
public static FEATURE_ENHANCED_JAVA_ACCESS: number;
public static FEATURE_ENUMERATE_IDS_FIRST: number;
public static FEATURE_INTEGER_WITHOUT_DECIMAL_PLACE: number;
public static FEATURE_LITTLE_ENDIAN: number;
public static FEATURE_LOCATION_INFORMATION_IN_ERROR: number;
public static FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME: number;
public static FEATURE_NON_ECMA_GET_YEAR: number;
public static FEATURE_OLD_UNDEF_NULL_THIS: number;
public static FEATURE_PARENT_PROTO_PROPERTIES: number;
public static FEATURE_PARENT_PROTO_PROPRTIES: number;
public static FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER: number;
public static FEATURE_STRICT_EVAL: number;
public static FEATURE_STRICT_MODE: number;
public static FEATURE_STRICT_VARS: number;
public static FEATURE_THREAD_SAFE_OBJECTS: number;
public static FEATURE_TO_STRING_AS_SOURCE: number;
public static FEATURE_V8_EXTENSIONS: number;
public static FEATURE_WARNING_AS_ERROR: number;
public static VERSION_1_0: number;
public static VERSION_1_1: number;
public static VERSION_1_2: number;
public static VERSION_1_3: number;
public static VERSION_1_4: number;
public static VERSION_1_5: number;
public static VERSION_1_6: number;
public static VERSION_1_7: number;
public static VERSION_1_8: number;
public static VERSION_DEFAULT: number;
public static VERSION_ES6: number;
public static VERSION_UNKNOWN: number;
public static emptyArgs: androidNative.Array<Any>;
public static errorReporterProperty: string;
public static languageVersionProperty: string;
public activationNames: java.util.Set<string>;
public cachedXMLLib: org.mozilla.javascript.xml.XMLLib;
public currentActivationCall: org.mozilla.javascript.NativeCall;
public debugger: org.mozilla.javascript.debug.Debugger;
public generateObserverCount: boolean;
public instructionCount: number;
public instructionThreshold: number;
public interpreterSecurityDomain: Any;
public isContinuationsTopCall: boolean;
public isTopLevelStrict: boolean;
public iterating: org.mozilla.javascript.ObjToIntMap;
public lastInterpreterFrame: Any;
public previousInterpreterInvocations: org.mozilla.javascript.ObjArray;
public regExpProxy: org.mozilla.javascript.RegExpProxy;
public scratchScriptable: org.mozilla.javascript.Scriptable;
public scratchUint32: number;
public topCallScope: org.mozilla.javascript.Scriptable;
public typeErrorThrower: org.mozilla.javascript.BaseFunction;
public useDynamicScope: boolean;
public version: number;
public removeActivationName(param0: string): void;
public static createInterpreter(): org.mozilla.javascript.Evaluator;
public getE4xImplementationFactory(): org.mozilla.javascript.xml.XMLLib.Factory;
public setInstructionObserverThreshold(param0: number): void;
public setGenerateObserverCount(param0: boolean): void;
public getImplementationVersion(): string;
public static reportRuntimeError0(
param0: string,
): org.mozilla.javascript.EvaluatorException;
public getMaximumInterpreterStackDepth(): number;
public static javaToJS(
param0: Any,
param1: org.mozilla.javascript.Scriptable,
): Any;
public setClassShutter(
param0: org.mozilla.javascript.ClassShutter,
): void;
public isVersionECMA1(): boolean;
public evaluateReader(
param0: org.mozilla.javascript.Scriptable,