JavaParser Source Viewer

Home|JavaParser/com/github/javaparser/ast/visitor/GenericListVisitorAdapter.java
1/*
2 * Copyright (C) 2007-2010 JĂșlio Vilmar Gesser.
3 * Copyright (C) 2011, 2013-2020 The JavaParser Team.
4 *
5 * This file is part of JavaParser.
6 *
7 * JavaParser can be used either under the terms of
8 * a) the GNU Lesser General Public License as published by
9 *     the Free Software Foundation, either version 3 of the License, or
10 *     (at your option) any later version.
11 * b) the terms of the Apache License
12 *
13 * You should have received a copy of both licenses in LICENCE.LGPL and
14 * LICENCE.APACHE. Please refer to those files for details.
15 *
16 * JavaParser is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 * GNU Lesser General Public License for more details.
20 */
21package com.github.javaparser.ast.visitor;
22
23import com.github.javaparser.ast.*;
24import com.github.javaparser.ast.body.*;
25import com.github.javaparser.ast.comments.BlockComment;
26import com.github.javaparser.ast.comments.JavadocComment;
27import com.github.javaparser.ast.comments.LineComment;
28import com.github.javaparser.ast.expr.*;
29import com.github.javaparser.ast.modules.*;
30import com.github.javaparser.ast.stmt.*;
31import com.github.javaparser.ast.type.*;
32import java.util.ArrayList;
33import java.util.List;
34import java.util.Objects;
35import java.util.stream.Collectors;
36
37/**
38 * A visitor that has a return value of ({@link List List<R>}), and has a default implementation for all its visit
39 * methods that visits their children in an unspecified order, and all visit methods
40 * that returns a value be added to a flattened {@link List List<R>}.
41 *
42 * @author Enno Boland
43 */
44public abstract class GenericListVisitorAdapter<RA> implements GenericVisitor<List<R>, A> {
45
46    public List<Rvisit(final AnnotationDeclaration nfinal A arg) {
47        List<Rresult = new ArrayList<>();
48        List<Rtmp;
49        {
50            tmp = n.getMembers().accept(this, arg);
51            if (tmp != null)
52                result.addAll(tmp);
53        }
54        {
55            tmp = n.getModifiers().accept(this, arg);
56            if (tmp != null)
57                result.addAll(tmp);
58        }
59        {
60            tmp = n.getName().accept(this, arg);
61            if (tmp != null)
62                result.addAll(tmp);
63        }
64        {
65            tmp = n.getAnnotations().accept(this, arg);
66            if (tmp != null)
67                result.addAll(tmp);
68        }
69        if (n.getComment().isPresent()) {
70            tmp = n.getComment().get().accept(this, arg);
71            if (tmp != null)
72                result.addAll(tmp);
73        }
74        return result;
75    }
76
77    public List<Rvisit(final AnnotationMemberDeclaration nfinal A arg) {
78        List<Rresult = new ArrayList<>();
79        List<Rtmp;
80        if (n.getDefaultValue().isPresent()) {
81            tmp = n.getDefaultValue().get().accept(this, arg);
82            if (tmp != null)
83                result.addAll(tmp);
84        }
85        {
86            tmp = n.getModifiers().accept(this, arg);
87            if (tmp != null)
88                result.addAll(tmp);
89        }
90        {
91            tmp = n.getName().accept(this, arg);
92            if (tmp != null)
93                result.addAll(tmp);
94        }
95        {
96            tmp = n.getType().accept(this, arg);
97            if (tmp != null)
98                result.addAll(tmp);
99        }
100        {
101            tmp = n.getAnnotations().accept(this, arg);
102            if (tmp != null)
103                result.addAll(tmp);
104        }
105        if (n.getComment().isPresent()) {
106            tmp = n.getComment().get().accept(this, arg);
107            if (tmp != null)
108                result.addAll(tmp);
109        }
110        return result;
111    }
112
113    public List<Rvisit(final ArrayAccessExpr nfinal A arg) {
114        List<Rresult = new ArrayList<>();
115        List<Rtmp;
116        {
117            tmp = n.getIndex().accept(this, arg);
118            if (tmp != null)
119                result.addAll(tmp);
120        }
121        {
122            tmp = n.getName().accept(this, arg);
123            if (tmp != null)
124                result.addAll(tmp);
125        }
126        if (n.getComment().isPresent()) {
127            tmp = n.getComment().get().accept(this, arg);
128            if (tmp != null)
129                result.addAll(tmp);
130        }
131        return result;
132    }
133
134    public List<Rvisit(final ArrayCreationExpr nfinal A arg) {
135        List<Rresult = new ArrayList<>();
136        List<Rtmp;
137        {
138            tmp = n.getElementType().accept(this, arg);
139            if (tmp != null)
140                result.addAll(tmp);
141        }
142        if (n.getInitializer().isPresent()) {
143            tmp = n.getInitializer().get().accept(this, arg);
144            if (tmp != null)
145                result.addAll(tmp);
146        }
147        {
148            tmp = n.getLevels().accept(this, arg);
149            if (tmp != null)
150                result.addAll(tmp);
151        }
152        if (n.getComment().isPresent()) {
153            tmp = n.getComment().get().accept(this, arg);
154            if (tmp != null)
155                result.addAll(tmp);
156        }
157        return result;
158    }
159
160    public List<Rvisit(final ArrayCreationLevel nfinal A arg) {
161        List<Rresult = new ArrayList<>();
162        List<Rtmp;
163        {
164            tmp = n.getAnnotations().accept(this, arg);
165            if (tmp != null)
166                result.addAll(tmp);
167        }
168        if (n.getDimension().isPresent()) {
169            tmp = n.getDimension().get().accept(this, arg);
170            if (tmp != null)
171                result.addAll(tmp);
172        }
173        if (n.getComment().isPresent()) {
174            tmp = n.getComment().get().accept(this, arg);
175            if (tmp != null)
176                result.addAll(tmp);
177        }
178        return result;
179    }
180
181    public List<Rvisit(final ArrayInitializerExpr nfinal A arg) {
182        List<Rresult = new ArrayList<>();
183        List<Rtmp;
184        {
185            tmp = n.getValues().accept(this, arg);
186            if (tmp != null)
187                result.addAll(tmp);
188        }
189        if (n.getComment().isPresent()) {
190            tmp = n.getComment().get().accept(this, arg);
191            if (tmp != null)
192                result.addAll(tmp);
193        }
194        return result;
195    }
196
197    public List<Rvisit(final ArrayType nfinal A arg) {
198        List<Rresult = new ArrayList<>();
199        List<Rtmp;
200        {
201            tmp = n.getComponentType().accept(this, arg);
202            if (tmp != null)
203                result.addAll(tmp);
204        }
205        {
206            tmp = n.getAnnotations().accept(this, arg);
207            if (tmp != null)
208                result.addAll(tmp);
209        }
210        if (n.getComment().isPresent()) {
211            tmp = n.getComment().get().accept(this, arg);
212            if (tmp != null)
213                result.addAll(tmp);
214        }
215        return result;
216    }
217
218    public List<Rvisit(final AssertStmt nfinal A arg) {
219        List<Rresult = new ArrayList<>();
220        List<Rtmp;
221        {
222            tmp = n.getCheck().accept(this, arg);
223            if (tmp != null)
224                result.addAll(tmp);
225        }
226        if (n.getMessage().isPresent()) {
227            tmp = n.getMessage().get().accept(this, arg);
228            if (tmp != null)
229                result.addAll(tmp);
230        }
231        if (n.getComment().isPresent()) {
232            tmp = n.getComment().get().accept(this, arg);
233            if (tmp != null)
234                result.addAll(tmp);
235        }
236        return result;
237    }
238
239    public List<Rvisit(final AssignExpr nfinal A arg) {
240        List<Rresult = new ArrayList<>();
241        List<Rtmp;
242        {
243            tmp = n.getTarget().accept(this, arg);
244            if (tmp != null)
245                result.addAll(tmp);
246        }
247        {
248            tmp = n.getValue().accept(this, arg);
249            if (tmp != null)
250                result.addAll(tmp);
251        }
252        if (n.getComment().isPresent()) {
253            tmp = n.getComment().get().accept(this, arg);
254            if (tmp != null)
255                result.addAll(tmp);
256        }
257        return result;
258    }
259
260    public List<Rvisit(final BinaryExpr nfinal A arg) {
261        List<Rresult = new ArrayList<>();
262        List<Rtmp;
263        {
264            tmp = n.getLeft().accept(this, arg);
265            if (tmp != null)
266                result.addAll(tmp);
267        }
268        {
269            tmp = n.getRight().accept(this, arg);
270            if (tmp != null)
271                result.addAll(tmp);
272        }
273        if (n.getComment().isPresent()) {
274            tmp = n.getComment().get().accept(this, arg);
275            if (tmp != null)
276                result.addAll(tmp);
277        }
278        return result;
279    }
280
281    public List<Rvisit(final BlockComment nfinal A arg) {
282        List<Rresult = new ArrayList<>();
283        List<Rtmp;
284        if (n.getComment().isPresent()) {
285            tmp = n.getComment().get().accept(this, arg);
286            if (tmp != null)
287                result.addAll(tmp);
288        }
289        return result;
290    }
291
292    public List<Rvisit(final BlockStmt nfinal A arg) {
293        List<Rresult = new ArrayList<>();
294        List<Rtmp;
295        {
296            tmp = n.getStatements().accept(this, arg);
297            if (tmp != null)
298                result.addAll(tmp);
299        }
300        if (n.getComment().isPresent()) {
301            tmp = n.getComment().get().accept(this, arg);
302            if (tmp != null)
303                result.addAll(tmp);
304        }
305        return result;
306    }
307
308    public List<Rvisit(final BooleanLiteralExpr nfinal A arg) {
309        List<Rresult = new ArrayList<>();
310        List<Rtmp;
311        if (n.getComment().isPresent()) {
312            tmp = n.getComment().get().accept(this, arg);
313            if (tmp != null)
314                result.addAll(tmp);
315        }
316        return result;
317    }
318
319    public List<Rvisit(final BreakStmt nfinal A arg) {
320        List<Rresult = new ArrayList<>();
321        List<Rtmp;
322        if (n.getLabel().isPresent()) {
323            tmp = n.getLabel().get().accept(this, arg);
324            if (tmp != null)
325                result.addAll(tmp);
326        }
327        if (n.getComment().isPresent()) {
328            tmp = n.getComment().get().accept(this, arg);
329            if (tmp != null)
330                result.addAll(tmp);
331        }
332        return result;
333    }
334
335    public List<Rvisit(final CastExpr nfinal A arg) {
336        List<Rresult = new ArrayList<>();
337        List<Rtmp;
338        {
339            tmp = n.getExpression().accept(this, arg);
340            if (tmp != null)
341                result.addAll(tmp);
342        }
343        {
344            tmp = n.getType().accept(this, arg);
345            if (tmp != null)
346                result.addAll(tmp);
347        }
348        if (n.getComment().isPresent()) {
349            tmp = n.getComment().get().accept(this, arg);
350            if (tmp != null)
351                result.addAll(tmp);
352        }
353        return result;
354    }
355
356    public List<Rvisit(final CatchClause nfinal A arg) {
357        List<Rresult = new ArrayList<>();
358        List<Rtmp;
359        {
360            tmp = n.getBody().accept(this, arg);
361            if (tmp != null)
362                result.addAll(tmp);
363        }
364        {
365            tmp = n.getParameter().accept(this, arg);
366            if (tmp != null)
367                result.addAll(tmp);
368        }
369        if (n.getComment().isPresent()) {
370            tmp = n.getComment().get().accept(this, arg);
371            if (tmp != null)
372                result.addAll(tmp);
373        }
374        return result;
375    }
376
377    public List<Rvisit(final CharLiteralExpr nfinal A arg) {
378        List<Rresult = new ArrayList<>();
379        List<Rtmp;
380        if (n.getComment().isPresent()) {
381            tmp = n.getComment().get().accept(this, arg);
382            if (tmp != null)
383                result.addAll(tmp);
384        }
385        return result;
386    }
387
388    public List<Rvisit(final ClassExpr nfinal A arg) {
389        List<Rresult = new ArrayList<>();
390        List<Rtmp;
391        {
392            tmp = n.getType().accept(this, arg);
393            if (tmp != null)
394                result.addAll(tmp);
395        }
396        if (n.getComment().isPresent()) {
397            tmp = n.getComment().get().accept(this, arg);
398            if (tmp != null)
399                result.addAll(tmp);
400        }
401        return result;
402    }
403
404    public List<Rvisit(final ClassOrInterfaceDeclaration nfinal A arg) {
405        List<Rresult = new ArrayList<>();
406        List<Rtmp;
407        {
408            tmp = n.getExtendedTypes().accept(this, arg);
409            if (tmp != null)
410                result.addAll(tmp);
411        }
412        {
413            tmp = n.getImplementedTypes().accept(this, arg);
414            if (tmp != null)
415                result.addAll(tmp);
416        }
417        {
418            tmp = n.getTypeParameters().accept(this, arg);
419            if (tmp != null)
420                result.addAll(tmp);
421        }
422        {
423            tmp = n.getMembers().accept(this, arg);
424            if (tmp != null)
425                result.addAll(tmp);
426        }
427        {
428            tmp = n.getModifiers().accept(this, arg);
429            if (tmp != null)
430                result.addAll(tmp);
431        }
432        {
433            tmp = n.getName().accept(this, arg);
434            if (tmp != null)
435                result.addAll(tmp);
436        }
437        {
438            tmp = n.getAnnotations().accept(this, arg);
439            if (tmp != null)
440                result.addAll(tmp);
441        }
442        if (n.getComment().isPresent()) {
443            tmp = n.getComment().get().accept(this, arg);
444            if (tmp != null)
445                result.addAll(tmp);
446        }
447        return result;
448    }
449
450    public List<Rvisit(final ClassOrInterfaceType nfinal A arg) {
451        List<Rresult = new ArrayList<>();
452        List<Rtmp;
453        {
454            tmp = n.getName().accept(this, arg);
455            if (tmp != null)
456                result.addAll(tmp);
457        }
458        if (n.getScope().isPresent()) {
459            tmp = n.getScope().get().accept(this, arg);
460            if (tmp != null)
461                result.addAll(tmp);
462        }
463        if (n.getTypeArguments().isPresent()) {
464            tmp = n.getTypeArguments().get().accept(this, arg);
465            if (tmp != null)
466                result.addAll(tmp);
467        }
468        {
469            tmp = n.getAnnotations().accept(this, arg);
470            if (tmp != null)
471                result.addAll(tmp);
472        }
473        if (n.getComment().isPresent()) {
474            tmp = n.getComment().get().accept(this, arg);
475            if (tmp != null)
476                result.addAll(tmp);
477        }
478        return result;
479    }
480
481    public List<Rvisit(final CompilationUnit nfinal A arg) {
482        List<Rresult = new ArrayList<>();
483        List<Rtmp;
484        {
485            tmp = n.getImports().accept(this, arg);
486            if (tmp != null)
487                result.addAll(tmp);
488        }
489        if (n.getModule().isPresent()) {
490            tmp = n.getModule().get().accept(this, arg);
491            if (tmp != null)
492                result.addAll(tmp);
493        }
494        if (n.getPackageDeclaration().isPresent()) {
495            tmp = n.getPackageDeclaration().get().accept(this, arg);
496            if (tmp != null)
497                result.addAll(tmp);
498        }
499        {
500            tmp = n.getTypes().accept(this, arg);
501            if (tmp != null)
502                result.addAll(tmp);
503        }
504        if (n.getComment().isPresent()) {
505            tmp = n.getComment().get().accept(this, arg);
506            if (tmp != null)
507                result.addAll(tmp);
508        }
509        return result;
510    }
511
512    public List<Rvisit(final ConditionalExpr nfinal A arg) {
513        List<Rresult = new ArrayList<>();
514        List<Rtmp;
515        {
516            tmp = n.getCondition().accept(this, arg);
517            if (tmp != null)
518                result.addAll(tmp);
519        }
520        {
521            tmp = n.getElseExpr().accept(this, arg);
522            if (tmp != null)
523                result.addAll(tmp);
524        }
525        {
526            tmp = n.getThenExpr().accept(this, arg);
527            if (tmp != null)
528                result.addAll(tmp);
529        }
530        if (n.getComment().isPresent()) {
531            tmp = n.getComment().get().accept(this, arg);
532            if (tmp != null)
533                result.addAll(tmp);
534        }
535        return result;
536    }
537
538    public List<Rvisit(final ConstructorDeclaration nfinal A arg) {
539        List<Rresult = new ArrayList<>();
540        List<Rtmp;
541        {
542            tmp = n.getBody().accept(this, arg);
543            if (tmp != null)
544                result.addAll(tmp);
545        }
546        {
547            tmp = n.getModifiers().accept(this, arg);
548            if (tmp != null)
549                result.addAll(tmp);
550        }
551        {
552            tmp = n.getName().accept(this, arg);
553            if (tmp != null)
554                result.addAll(tmp);
555        }
556        {
557            tmp = n.getParameters().accept(this, arg);
558            if (tmp != null)
559                result.addAll(tmp);
560        }
561        if (n.getReceiverParameter().isPresent()) {
562            tmp = n.getReceiverParameter().get().accept(this, arg);
563            if (tmp != null)
564                result.addAll(tmp);
565        }
566        {
567            tmp = n.getThrownExceptions().accept(this, arg);
568            if (tmp != null)
569                result.addAll(tmp);
570        }
571        {
572            tmp = n.getTypeParameters().accept(this, arg);
573            if (tmp != null)
574                result.addAll(tmp);
575        }
576        {
577            tmp = n.getAnnotations().accept(this, arg);
578            if (tmp != null)
579                result.addAll(tmp);
580        }
581        if (n.getComment().isPresent()) {
582            tmp = n.getComment().get().accept(this, arg);
583            if (tmp != null)
584                result.addAll(tmp);
585        }
586        return result;
587    }
588
589    public List<Rvisit(final ContinueStmt nfinal A arg) {
590        List<Rresult = new ArrayList<>();
591        List<Rtmp;
592        if (n.getLabel().isPresent()) {
593            tmp = n.getLabel().get().accept(this, arg);
594            if (tmp != null)
595                result.addAll(tmp);
596        }
597        if (n.getComment().isPresent()) {
598            tmp = n.getComment().get().accept(this, arg);
599            if (tmp != null)
600                result.addAll(tmp);
601        }
602        return result;
603    }
604
605    public List<Rvisit(final DoStmt nfinal A arg) {
606        List<Rresult = new ArrayList<>();
607        List<Rtmp;
608        {
609            tmp = n.getBody().accept(this, arg);
610            if (tmp != null)
611                result.addAll(tmp);
612        }
613        {
614            tmp = n.getCondition().accept(this, arg);
615            if (tmp != null)
616                result.addAll(tmp);
617        }
618        if (n.getComment().isPresent()) {
619            tmp = n.getComment().get().accept(this, arg);
620            if (tmp != null)
621                result.addAll(tmp);
622        }
623        return result;
624    }
625
626    public List<Rvisit(final DoubleLiteralExpr nfinal A arg) {
627        List<Rresult = new ArrayList<>();
628        List<Rtmp;
629        if (n.getComment().isPresent()) {
630            tmp = n.getComment().get().accept(this, arg);
631            if (tmp != null)
632                result.addAll(tmp);
633        }
634        return result;
635    }
636
637    public List<Rvisit(final EmptyStmt nfinal A arg) {
638        List<Rresult = new ArrayList<>();
639        List<Rtmp;
640        if (n.getComment().isPresent()) {
641            tmp = n.getComment().get().accept(this, arg);
642            if (tmp != null)
643                result.addAll(tmp);
644        }
645        return result;
646    }
647
648    public List<Rvisit(final EnclosedExpr nfinal A arg) {
649        List<Rresult = new ArrayList<>();
650        List<Rtmp;
651        {
652            tmp = n.getInner().accept(this, arg);
653            if (tmp != null)
654                result.addAll(tmp);
655        }
656        if (n.getComment().isPresent()) {
657            tmp = n.getComment().get().accept(this, arg);
658            if (tmp != null)
659                result.addAll(tmp);
660        }
661        return result;
662    }
663
664    public List<Rvisit(final EnumConstantDeclaration nfinal A arg) {
665        List<Rresult = new ArrayList<>();
666        List<Rtmp;
667        {
668            tmp = n.getArguments().accept(this, arg);
669            if (tmp != null)
670                result.addAll(tmp);
671        }
672        {
673            tmp = n.getClassBody().accept(this, arg);
674            if (tmp != null)
675                result.addAll(tmp);
676        }
677        {
678            tmp = n.getName().accept(this, arg);
679            if (tmp != null)
680                result.addAll(tmp);
681        }
682        {
683            tmp = n.getAnnotations().accept(this, arg);
684            if (tmp != null)
685                result.addAll(tmp);
686        }
687        if (n.getComment().isPresent()) {
688            tmp = n.getComment().get().accept(this, arg);
689            if (tmp != null)
690                result.addAll(tmp);
691        }
692        return result;
693    }
694
695    public List<Rvisit(final EnumDeclaration nfinal A arg) {
696        List<Rresult = new ArrayList<>();
697        List<Rtmp;
698        {
699            tmp = n.getEntries().accept(this, arg);
700            if (tmp != null)
701                result.addAll(tmp);
702        }
703        {
704            tmp = n.getImplementedTypes().accept(this, arg);
705            if (tmp != null)
706                result.addAll(tmp);
707        }
708        {
709            tmp = n.getMembers().accept(this, arg);
710            if (tmp != null)
711                result.addAll(tmp);
712        }
713        {
714            tmp = n.getModifiers().accept(this, arg);
715            if (tmp != null)
716                result.addAll(tmp);
717        }
718        {
719            tmp = n.getName().accept(this, arg);
720            if (tmp != null)
721                result.addAll(tmp);
722        }
723        {
724            tmp = n.getAnnotations().accept(this, arg);
725            if (tmp != null)
726                result.addAll(tmp);
727        }
728        if (n.getComment().isPresent()) {
729            tmp = n.getComment().get().accept(this, arg);
730            if (tmp != null)
731                result.addAll(tmp);
732        }
733        return result;
734    }
735
736    public List<Rvisit(final ExplicitConstructorInvocationStmt nfinal A arg) {
737        List<Rresult = new ArrayList<>();
738        List<Rtmp;
739        {
740            tmp = n.getArguments().accept(this, arg);
741            if (tmp != null)
742                result.addAll(tmp);
743        }
744        if (n.getExpression().isPresent()) {
745            tmp = n.getExpression().get().accept(this, arg);
746            if (tmp != null)
747                result.addAll(tmp);
748        }
749        if (n.getTypeArguments().isPresent()) {
750            tmp = n.getTypeArguments().get().accept(this, arg);
751            if (tmp != null)
752                result.addAll(tmp);
753        }
754        if (n.getComment().isPresent()) {
755            tmp = n.getComment().get().accept(this, arg);
756            if (tmp != null)
757                result.addAll(tmp);
758        }
759        return result;
760    }
761
762    public List<Rvisit(final ExpressionStmt nfinal A arg) {
763        List<Rresult = new ArrayList<>();
764        List<Rtmp;
765        {
766            tmp = n.getExpression().accept(this, arg);
767            if (tmp != null)
768                result.addAll(tmp);
769        }
770        if (n.getComment().isPresent()) {
771            tmp = n.getComment().get().accept(this, arg);
772            if (tmp != null)
773                result.addAll(tmp);
774        }
775        return result;
776    }
777
778    public List<Rvisit(final FieldAccessExpr nfinal A arg) {
779        List<Rresult = new ArrayList<>();
780        List<Rtmp;
781        {
782            tmp = n.getName().accept(this, arg);
783            if (tmp != null)
784                result.addAll(tmp);
785        }
786        {
787            tmp = n.getScope().accept(this, arg);
788            if (tmp != null)
789                result.addAll(tmp);
790        }
791        if (n.getTypeArguments().isPresent()) {
792            tmp = n.getTypeArguments().get().accept(this, arg);
793            if (tmp != null)
794                result.addAll(tmp);
795        }
796        if (n.getComment().isPresent()) {
797            tmp = n.getComment().get().accept(this, arg);
798            if (tmp != null)
799                result.addAll(tmp);
800        }
801        return result;
802    }
803
804    public List<Rvisit(final FieldDeclaration nfinal A arg) {
805        List<Rresult = new ArrayList<>();
806        List<Rtmp;
807        {
808            tmp = n.getModifiers().accept(this, arg);
809            if (tmp != null)
810                result.addAll(tmp);
811        }
812        {
813            tmp = n.getVariables().accept(this, arg);
814            if (tmp != null)
815                result.addAll(tmp);
816        }
817        {
818            tmp = n.getAnnotations().accept(this, arg);
819            if (tmp != null)
820                result.addAll(tmp);
821        }
822        if (n.getComment().isPresent()) {
823            tmp = n.getComment().get().accept(this, arg);
824            if (tmp != null)
825                result.addAll(tmp);
826        }
827        return result;
828    }
829
830    public List<Rvisit(final ForStmt nfinal A arg) {
831        List<Rresult = new ArrayList<>();
832        List<Rtmp;
833        {
834            tmp = n.getBody().accept(this, arg);
835            if (tmp != null)
836                result.addAll(tmp);
837        }
838        if (n.getCompare().isPresent()) {
839            tmp = n.getCompare().get().accept(this, arg);
840            if (tmp != null)
841                result.addAll(tmp);
842        }
843        {
844            tmp = n.getInitialization().accept(this, arg);
845            if (tmp != null)
846                result.addAll(tmp);
847        }
848        {
849            tmp = n.getUpdate().accept(this, arg);
850            if (tmp != null)
851                result.addAll(tmp);
852        }
853        if (n.getComment().isPresent()) {
854            tmp = n.getComment().get().accept(this, arg);
855            if (tmp != null)
856                result.addAll(tmp);
857        }
858        return result;
859    }
860
861    public List<Rvisit(final ForEachStmt nfinal A arg) {
862        List<Rresult = new ArrayList<>();
863        List<Rtmp;
864        {
865            tmp = n.getBody().accept(this, arg);
866            if (tmp != null)
867                result.addAll(tmp);
868        }
869        {
870            tmp = n.getIterable().accept(this, arg);
871            if (tmp != null)
872                result.addAll(tmp);
873        }
874        {
875            tmp = n.getVariable().accept(this, arg);
876            if (tmp != null)
877                result.addAll(tmp);
878        }
879        if (n.getComment().isPresent()) {
880            tmp = n.getComment().get().accept(this, arg);
881            if (tmp != null)
882                result.addAll(tmp);
883        }
884        return result;
885    }
886
887    public List<Rvisit(final IfStmt nfinal A arg) {
888        List<Rresult = new ArrayList<>();
889        List<Rtmp;
890        {
891            tmp = n.getCondition().accept(this, arg);
892            if (tmp != null)
893                result.addAll(tmp);
894        }
895        if (n.getElseStmt().isPresent()) {
896            tmp = n.getElseStmt().get().accept(this, arg);
897            if (tmp != null)
898                result.addAll(tmp);
899        }
900        {
901            tmp = n.getThenStmt().accept(this, arg);
902            if (tmp != null)
903                result.addAll(tmp);
904        }
905        if (n.getComment().isPresent()) {
906            tmp = n.getComment().get().accept(this, arg);
907            if (tmp != null)
908                result.addAll(tmp);
909        }
910        return result;
911    }
912
913    public List<Rvisit(final ImportDeclaration nfinal A arg) {
914        List<Rresult = new ArrayList<>();
915        List<Rtmp;
916        {
917            tmp = n.getName().accept(this, arg);
918            if (tmp != null)
919                result.addAll(tmp);
920        }
921        if (n.getComment().isPresent()) {
922            tmp = n.getComment().get().accept(this, arg);
923            if (tmp != null)
924                result.addAll(tmp);
925        }
926        return result;
927    }
928
929    public List<Rvisit(final InitializerDeclaration nfinal A arg) {
930        List<Rresult = new ArrayList<>();
931        List<Rtmp;
932        {
933            tmp = n.getBody().accept(this, arg);
934            if (tmp != null)
935                result.addAll(tmp);
936        }
937        {
938            tmp = n.getAnnotations().accept(this, arg);
939            if (tmp != null)
940                result.addAll(tmp);
941        }
942        if (n.getComment().isPresent()) {
943            tmp = n.getComment().get().accept(this, arg);
944            if (tmp != null)
945                result.addAll(tmp);
946        }
947        return result;
948    }
949
950    public List<Rvisit(final InstanceOfExpr nfinal A arg) {
951        List<Rresult = new ArrayList<>();
952        List<Rtmp;
953        {
954            tmp = n.getExpression().accept(this, arg);
955            if (tmp != null)
956                result.addAll(tmp);
957        }
958        {
959            tmp = n.getType().accept(this, arg);
960            if (tmp != null)
961                result.addAll(tmp);
962        }
963        if (n.getComment().isPresent()) {
964            tmp = n.getComment().get().accept(this, arg);
965            if (tmp != null)
966                result.addAll(tmp);
967        }
968        return result;
969    }
970
971    public List<Rvisit(final IntegerLiteralExpr nfinal A arg) {
972        List<Rresult = new ArrayList<>();
973        List<Rtmp;
974        if (n.getComment().isPresent()) {
975            tmp = n.getComment().get().accept(this, arg);
976            if (tmp != null)
977                result.addAll(tmp);
978        }
979        return result;
980    }
981
982    public List<Rvisit(final IntersectionType nfinal A arg) {
983        List<Rresult = new ArrayList<>();
984        List<Rtmp;
985        {
986            tmp = n.getElements().accept(this, arg);
987            if (tmp != null)
988                result.addAll(tmp);
989        }
990        {
991            tmp = n.getAnnotations().accept(this, arg);
992            if (tmp != null)
993                result.addAll(tmp);
994        }
995        if (n.getComment().isPresent()) {
996            tmp = n.getComment().get().accept(this, arg);
997            if (tmp != null)
998                result.addAll(tmp);
999        }
1000        return result;
1001    }
1002
1003    public List<Rvisit(final JavadocComment nfinal A arg) {
1004        List<Rresult = new ArrayList<>();
1005        List<Rtmp;
1006        if (n.getComment().isPresent()) {
1007            tmp = n.getComment().get().accept(this, arg);
1008            if (tmp != null)
1009                result.addAll(tmp);
1010        }
1011        return result;
1012    }
1013
1014    public List<Rvisit(final LabeledStmt nfinal A arg) {
1015        List<Rresult = new ArrayList<>();
1016        List<Rtmp;
1017        {
1018            tmp = n.getLabel().accept(this, arg);
1019            if (tmp != null)
1020                result.addAll(tmp);
1021        }
1022        {
1023            tmp = n.getStatement().accept(this, arg);
1024            if (tmp != null)
1025                result.addAll(tmp);
1026        }
1027        if (n.getComment().isPresent()) {
1028            tmp = n.getComment().get().accept(this, arg);
1029            if (tmp != null)
1030                result.addAll(tmp);
1031        }
1032        return result;
1033    }
1034
1035    public List<Rvisit(final LambdaExpr nfinal A arg) {
1036        List<Rresult = new ArrayList<>();
1037        List<Rtmp;
1038        {
1039            tmp = n.getBody().accept(this, arg);
1040            if (tmp != null)
1041                result.addAll(tmp);
1042        }
1043        {
1044            tmp = n.getParameters().accept(this, arg);
1045            if (tmp != null)
1046                result.addAll(tmp);
1047        }
1048        if (n.getComment().isPresent()) {
1049            tmp = n.getComment().get().accept(this, arg);
1050            if (tmp != null)
1051                result.addAll(tmp);
1052        }
1053        return result;
1054    }
1055
1056    public List<Rvisit(final LineComment nfinal A arg) {
1057        List<Rresult = new ArrayList<>();
1058        List<Rtmp;
1059        if (n.getComment().isPresent()) {
1060            tmp = n.getComment().get().accept(this, arg);
1061            if (tmp != null)
1062                result.addAll(tmp);
1063        }
1064        return result;
1065    }
1066
1067    public List<Rvisit(final LocalClassDeclarationStmt nfinal A arg) {
1068        List<Rresult = new ArrayList<>();
1069        List<Rtmp;
1070        {
1071            tmp = n.getClassDeclaration().accept(this, arg);
1072            if (tmp != null)
1073                result.addAll(tmp);
1074        }
1075        if (n.getComment().isPresent()) {
1076            tmp = n.getComment().get().accept(this, arg);
1077            if (tmp != null)
1078                result.addAll(tmp);
1079        }
1080        return result;
1081    }
1082
1083    public List<Rvisit(final LongLiteralExpr nfinal A arg) {
1084        List<Rresult = new ArrayList<>();
1085        List<Rtmp;
1086        if (n.getComment().isPresent()) {
1087            tmp = n.getComment().get().accept(this, arg);
1088            if (tmp != null)
1089                result.addAll(tmp);
1090        }
1091        return result;
1092    }
1093
1094    public List<Rvisit(final MarkerAnnotationExpr nfinal A arg) {
1095        List<Rresult = new ArrayList<>();
1096        List<Rtmp;
1097        {
1098            tmp = n.getName().accept(this, arg);
1099            if (tmp != null)
1100                result.addAll(tmp);
1101        }
1102        if (n.getComment().isPresent()) {
1103            tmp = n.getComment().get().accept(this, arg);
1104            if (tmp != null)
1105                result.addAll(tmp);
1106        }
1107        return result;
1108    }
1109
1110    public List<Rvisit(final MemberValuePair nfinal A arg) {
1111        List<Rresult = new ArrayList<>();
1112        List<Rtmp;
1113        {
1114            tmp = n.getName().accept(this, arg);
1115            if (tmp != null)
1116                result.addAll(tmp);
1117        }
1118        {
1119            tmp = n.getValue().accept(this, arg);
1120            if (tmp != null)
1121                result.addAll(tmp);
1122        }
1123        if (n.getComment().isPresent()) {
1124            tmp = n.getComment().get().accept(this, arg);
1125            if (tmp != null)
1126                result.addAll(tmp);
1127        }
1128        return result;
1129    }
1130
1131    public List<Rvisit(final MethodCallExpr nfinal A arg) {
1132        List<Rresult = new ArrayList<>();
1133        List<Rtmp;
1134        {
1135            tmp = n.getArguments().accept(this, arg);
1136            if (tmp != null)
1137                result.addAll(tmp);
1138        }
1139        {
1140            tmp = n.getName().accept(this, arg);
1141            if (tmp != null)
1142                result.addAll(tmp);
1143        }
1144        if (n.getScope().isPresent()) {
1145            tmp = n.getScope().get().accept(this, arg);
1146            if (tmp != null)
1147                result.addAll(tmp);
1148        }
1149        if (n.getTypeArguments().isPresent()) {
1150            tmp = n.getTypeArguments().get().accept(this, arg);
1151            if (tmp != null)
1152                result.addAll(tmp);
1153        }
1154        if (n.getComment().isPresent()) {
1155            tmp = n.getComment().get().accept(this, arg);
1156            if (tmp != null)
1157                result.addAll(tmp);
1158        }
1159        return result;
1160    }
1161
1162    public List<Rvisit(final MethodDeclaration nfinal A arg) {
1163        List<Rresult = new ArrayList<>();
1164        List<Rtmp;
1165        if (n.getBody().isPresent()) {
1166            tmp = n.getBody().get().accept(this, arg);
1167            if (tmp != null)
1168                result.addAll(tmp);
1169        }
1170        {
1171            tmp = n.getType().accept(this, arg);
1172            if (tmp != null)
1173                result.addAll(tmp);
1174        }
1175        {
1176            tmp = n.getModifiers().accept(this, arg);
1177            if (tmp != null)
1178                result.addAll(tmp);
1179        }
1180        {
1181            tmp = n.getName().accept(this, arg);
1182            if (tmp != null)
1183                result.addAll(tmp);
1184        }
1185        {
1186            tmp = n.getParameters().accept(this, arg);
1187            if (tmp != null)
1188                result.addAll(tmp);
1189        }
1190        if (n.getReceiverParameter().isPresent()) {
1191            tmp = n.getReceiverParameter().get().accept(this, arg);
1192            if (tmp != null)
1193                result.addAll(tmp);
1194        }
1195        {
1196            tmp = n.getThrownExceptions().accept(this, arg);
1197            if (tmp != null)
1198                result.addAll(tmp);
1199        }
1200        {
1201            tmp = n.getTypeParameters().accept(this, arg);
1202            if (tmp != null)
1203                result.addAll(tmp);
1204        }
1205        {
1206            tmp = n.getAnnotations().accept(this, arg);
1207            if (tmp != null)
1208                result.addAll(tmp);
1209        }
1210        if (n.getComment().isPresent()) {
1211            tmp = n.getComment().get().accept(this, arg);
1212            if (tmp != null)
1213                result.addAll(tmp);
1214        }
1215        return result;
1216    }
1217
1218    public List<Rvisit(final MethodReferenceExpr nfinal A arg) {
1219        List<Rresult = new ArrayList<>();
1220        List<Rtmp;
1221        {
1222            tmp = n.getScope().accept(this, arg);
1223            if (tmp != null)
1224                result.addAll(tmp);
1225        }
1226        if (n.getTypeArguments().isPresent()) {
1227            tmp = n.getTypeArguments().get().accept(this, arg);
1228            if (tmp != null)
1229                result.addAll(tmp);
1230        }
1231        if (n.getComment().isPresent()) {
1232            tmp = n.getComment().get().accept(this, arg);
1233            if (tmp != null)
1234                result.addAll(tmp);
1235        }
1236        return result;
1237    }
1238
1239    public List<Rvisit(final NameExpr nfinal A arg) {
1240        List<Rresult = new ArrayList<>();
1241        List<Rtmp;
1242        {
1243            tmp = n.getName().accept(this, arg);
1244            if (tmp != null)
1245                result.addAll(tmp);
1246        }
1247        if (n.getComment().isPresent()) {
1248            tmp = n.getComment().get().accept(this, arg);
1249            if (tmp != null)
1250                result.addAll(tmp);
1251        }
1252        return result;
1253    }
1254
1255    public List<Rvisit(final Name nfinal A arg) {
1256        List<Rresult = new ArrayList<>();
1257        List<Rtmp;
1258        if (n.getQualifier().isPresent()) {
1259            tmp = n.getQualifier().get().accept(this, arg);
1260            if (tmp != null)
1261                result.addAll(tmp);
1262        }
1263        if (n.getComment().isPresent()) {
1264            tmp = n.getComment().get().accept(this, arg);
1265            if (tmp != null)
1266                result.addAll(tmp);
1267        }
1268        return result;
1269    }
1270
1271    public List<Rvisit(final NormalAnnotationExpr nfinal A arg) {
1272        List<Rresult = new ArrayList<>();
1273        List<Rtmp;
1274        {
1275            tmp = n.getPairs().accept(this, arg);
1276            if (tmp != null)
1277                result.addAll(tmp);
1278        }
1279        {
1280            tmp = n.getName().accept(this, arg);
1281            if (tmp != null)
1282                result.addAll(tmp);
1283        }
1284        if (n.getComment().isPresent()) {
1285            tmp = n.getComment().get().accept(this, arg);
1286            if (tmp != null)
1287                result.addAll(tmp);
1288        }
1289        return result;
1290    }
1291
1292    public List<Rvisit(final NullLiteralExpr nfinal A arg) {
1293        List<Rresult = new ArrayList<>();
1294        List<Rtmp;
1295        if (n.getComment().isPresent()) {
1296            tmp = n.getComment().get().accept(this, arg);
1297            if (tmp != null)
1298                result.addAll(tmp);
1299        }
1300        return result;
1301    }
1302
1303    public List<Rvisit(final ObjectCreationExpr nfinal A arg) {
1304        List<Rresult = new ArrayList<>();
1305        List<Rtmp;
1306        if (n.getAnonymousClassBody().isPresent()) {
1307            tmp = n.getAnonymousClassBody().get().accept(this, arg);
1308            if (tmp != null)
1309                result.addAll(tmp);
1310        }
1311        {
1312            tmp = n.getArguments().accept(this, arg);
1313            if (tmp != null)
1314                result.addAll(tmp);
1315        }
1316        if (n.getScope().isPresent()) {
1317            tmp = n.getScope().get().accept(this, arg);
1318            if (tmp != null)
1319                result.addAll(tmp);
1320        }
1321        {
1322            tmp = n.getType().accept(this, arg);
1323            if (tmp != null)
1324                result.addAll(tmp);
1325        }
1326        if (n.getTypeArguments().isPresent()) {
1327            tmp = n.getTypeArguments().get().accept(this, arg);
1328            if (tmp != null)
1329                result.addAll(tmp);
1330        }
1331        if (n.getComment().isPresent()) {
1332            tmp = n.getComment().get().accept(this, arg);
1333            if (tmp != null)
1334                result.addAll(tmp);
1335        }
1336        return result;
1337    }
1338
1339    public List<Rvisit(final PackageDeclaration nfinal A arg) {
1340        List<Rresult = new ArrayList<>();
1341        List<Rtmp;
1342        {
1343            tmp = n.getAnnotations().accept(this, arg);
1344            if (tmp != null)
1345                result.addAll(tmp);
1346        }
1347        {
1348            tmp = n.getName().accept(this, arg);
1349            if (tmp != null)
1350                result.addAll(tmp);
1351        }
1352        if (n.getComment().isPresent()) {
1353            tmp = n.getComment().get().accept(this, arg);
1354            if (tmp != null)
1355                result.addAll(tmp);
1356        }
1357        return result;
1358    }
1359
1360    public List<Rvisit(final Parameter nfinal A arg) {
1361        List<Rresult = new ArrayList<>();
1362        List<Rtmp;
1363        {
1364            tmp = n.getAnnotations().accept(this, arg);
1365            if (tmp != null)
1366                result.addAll(tmp);
1367        }
1368        {
1369            tmp = n.getModifiers().accept(this, arg);
1370            if (tmp != null)
1371                result.addAll(tmp);
1372        }
1373        {
1374            tmp = n.getName().accept(this, arg);
1375            if (tmp != null)
1376                result.addAll(tmp);
1377        }
1378        {
1379            tmp = n.getType().accept(this, arg);
1380            if (tmp != null)
1381                result.addAll(tmp);
1382        }
1383        {
1384            tmp = n.getVarArgsAnnotations().accept(this, arg);
1385            if (tmp != null)
1386                result.addAll(tmp);
1387        }
1388        if (n.getComment().isPresent()) {
1389            tmp = n.getComment().get().accept(this, arg);
1390            if (tmp != null)
1391                result.addAll(tmp);
1392        }
1393        return result;
1394    }
1395
1396    public List<Rvisit(final PrimitiveType nfinal A arg) {
1397        List<Rresult = new ArrayList<>();
1398        List<Rtmp;
1399        {
1400            tmp = n.getAnnotations().accept(this, arg);
1401            if (tmp != null)
1402                result.addAll(tmp);
1403        }
1404        if (n.getComment().isPresent()) {
1405            tmp = n.getComment().get().accept(this, arg);
1406            if (tmp != null)
1407                result.addAll(tmp);
1408        }
1409        return result;
1410    }
1411
1412    public List<Rvisit(final ReturnStmt nfinal A arg) {
1413        List<Rresult = new ArrayList<>();
1414        List<Rtmp;
1415        if (n.getExpression().isPresent()) {
1416            tmp = n.getExpression().get().accept(this, arg);
1417            if (tmp != null)
1418                result.addAll(tmp);
1419        }
1420        if (n.getComment().isPresent()) {
1421            tmp = n.getComment().get().accept(this, arg);
1422            if (tmp != null)
1423                result.addAll(tmp);
1424        }
1425        return result;
1426    }
1427
1428    public List<Rvisit(final SimpleName nfinal A arg) {
1429        List<Rresult = new ArrayList<>();
1430        List<Rtmp;
1431        if (n.getComment().isPresent()) {
1432            tmp = n.getComment().get().accept(this, arg);
1433            if (tmp != null)
1434                result.addAll(tmp);
1435        }
1436        return result;
1437    }
1438
1439    public List<Rvisit(final SingleMemberAnnotationExpr nfinal A arg) {
1440        List<Rresult = new ArrayList<>();
1441        List<Rtmp;
1442        {
1443            tmp = n.getMemberValue().accept(this, arg);
1444            if (tmp != null)
1445                result.addAll(tmp);
1446        }
1447        {
1448            tmp = n.getName().accept(this, arg);
1449            if (tmp != null)
1450                result.addAll(tmp);
1451        }
1452        if (n.getComment().isPresent()) {
1453            tmp = n.getComment().get().accept(this, arg);
1454            if (tmp != null)
1455                result.addAll(tmp);
1456        }
1457        return result;
1458    }
1459
1460    public List<Rvisit(final StringLiteralExpr nfinal A arg) {
1461        List<Rresult = new ArrayList<>();
1462        List<Rtmp;
1463        if (n.getComment().isPresent()) {
1464            tmp = n.getComment().get().accept(this, arg);
1465            if (tmp != null)
1466                result.addAll(tmp);
1467        }
1468        return result;
1469    }
1470
1471    public List<Rvisit(final SuperExpr nfinal A arg) {
1472        List<Rresult = new ArrayList<>();
1473        List<Rtmp;
1474        if (n.getTypeName().isPresent()) {
1475            tmp = n.getTypeName().get().accept(this, arg);
1476            if (tmp != null)
1477                result.addAll(tmp);
1478        }
1479        if (n.getComment().isPresent()) {
1480            tmp = n.getComment().get().accept(this, arg);
1481            if (tmp != null)
1482                result.addAll(tmp);
1483        }
1484        return result;
1485    }
1486
1487    public List<Rvisit(final SwitchEntry nfinal A arg) {
1488        List<Rresult = new ArrayList<>();
1489        List<Rtmp;
1490        {
1491            tmp = n.getLabels().accept(this, arg);
1492            if (tmp != null)
1493                result.addAll(tmp);
1494        }
1495        {
1496            tmp = n.getStatements().accept(this, arg);
1497            if (tmp != null)
1498                result.addAll(tmp);
1499        }
1500        if (n.getComment().isPresent()) {
1501            tmp = n.getComment().get().accept(this, arg);
1502            if (tmp != null)
1503                result.addAll(tmp);
1504        }
1505        return result;
1506    }
1507
1508    public List<Rvisit(final SwitchStmt nfinal A arg) {
1509        List<Rresult = new ArrayList<>();
1510        List<Rtmp;
1511        {
1512            tmp = n.getEntries().accept(this, arg);
1513            if (tmp != null)
1514                result.addAll(tmp);
1515        }
1516        {
1517            tmp = n.getSelector().accept(this, arg);
1518            if (tmp != null)
1519                result.addAll(tmp);
1520        }
1521        if (n.getComment().isPresent()) {
1522            tmp = n.getComment().get().accept(this, arg);
1523            if (tmp != null)
1524                result.addAll(tmp);
1525        }
1526        return result;
1527    }
1528
1529    public List<Rvisit(final SynchronizedStmt nfinal A arg) {
1530        List<Rresult = new ArrayList<>();
1531        List<Rtmp;
1532        {
1533            tmp = n.getBody().accept(this, arg);
1534            if (tmp != null)
1535                result.addAll(tmp);
1536        }
1537        {
1538            tmp = n.getExpression().accept(this, arg);
1539            if (tmp != null)
1540                result.addAll(tmp);
1541        }
1542        if (n.getComment().isPresent()) {
1543            tmp = n.getComment().get().accept(this, arg);
1544            if (tmp != null)
1545                result.addAll(tmp);
1546        }
1547        return result;
1548    }
1549
1550    public List<Rvisit(final ThisExpr nfinal A arg) {
1551        List<Rresult = new ArrayList<>();
1552        List<Rtmp;
1553        if (n.getTypeName().isPresent()) {
1554            tmp = n.getTypeName().get().accept(this, arg);
1555            if (tmp != null)
1556                result.addAll(tmp);
1557        }
1558        if (n.getComment().isPresent()) {
1559            tmp = n.getComment().get().accept(this, arg);
1560            if (tmp != null)
1561                result.addAll(tmp);
1562        }
1563        return result;
1564    }
1565
1566    public List<Rvisit(final ThrowStmt nfinal A arg) {
1567        List<Rresult = new ArrayList<>();
1568        List<Rtmp;
1569        {
1570            tmp = n.getExpression().accept(this, arg);
1571            if (tmp != null)
1572                result.addAll(tmp);
1573        }
1574        if (n.getComment().isPresent()) {
1575            tmp = n.getComment().get().accept(this, arg);
1576            if (tmp != null)
1577                result.addAll(tmp);
1578        }
1579        return result;
1580    }
1581
1582    public List<Rvisit(final TryStmt nfinal A arg) {
1583        List<Rresult = new ArrayList<>();
1584        List<Rtmp;
1585        {
1586            tmp = n.getCatchClauses().accept(this, arg);
1587            if (tmp != null)
1588                result.addAll(tmp);
1589        }
1590        if (n.getFinallyBlock().isPresent()) {
1591            tmp = n.getFinallyBlock().get().accept(this, arg);
1592            if (tmp != null)
1593                result.addAll(tmp);
1594        }
1595        {
1596            tmp = n.getResources().accept(this, arg);
1597            if (tmp != null)
1598                result.addAll(tmp);
1599        }
1600        {
1601            tmp = n.getTryBlock().accept(this, arg);
1602            if (tmp != null)
1603                result.addAll(tmp);
1604        }
1605        if (n.getComment().isPresent()) {
1606            tmp = n.getComment().get().accept(this, arg);
1607            if (tmp != null)
1608                result.addAll(tmp);
1609        }
1610        return result;
1611    }
1612
1613    public List<Rvisit(final TypeExpr nfinal A arg) {
1614        List<Rresult = new ArrayList<>();
1615        List<Rtmp;
1616        {
1617            tmp = n.getType().accept(this, arg);
1618            if (tmp != null)
1619                result.addAll(tmp);
1620        }
1621        if (n.getComment().isPresent()) {
1622            tmp = n.getComment().get().accept(this, arg);
1623            if (tmp != null)
1624                result.addAll(tmp);
1625        }
1626        return result;
1627    }
1628
1629    public List<Rvisit(final TypeParameter nfinal A arg) {
1630        List<Rresult = new ArrayList<>();
1631        List<Rtmp;
1632        {
1633            tmp = n.getName().accept(this, arg);
1634            if (tmp != null)
1635                result.addAll(tmp);
1636        }
1637        {
1638            tmp = n.getTypeBound().accept(this, arg);
1639            if (tmp != null)
1640                result.addAll(tmp);
1641        }
1642        {
1643            tmp = n.getAnnotations().accept(this, arg);
1644            if (tmp != null)
1645                result.addAll(tmp);
1646        }
1647        if (n.getComment().isPresent()) {
1648            tmp = n.getComment().get().accept(this, arg);
1649            if (tmp != null)
1650                result.addAll(tmp);
1651        }
1652        return result;
1653    }
1654
1655    public List<Rvisit(final UnaryExpr nfinal A arg) {
1656        List<Rresult = new ArrayList<>();
1657        List<Rtmp;
1658        {
1659            tmp = n.getExpression().accept(this, arg);
1660            if (tmp != null)
1661                result.addAll(tmp);
1662        }
1663        if (n.getComment().isPresent()) {
1664            tmp = n.getComment().get().accept(this, arg);
1665            if (tmp != null)
1666                result.addAll(tmp);
1667        }
1668        return result;
1669    }
1670
1671    public List<Rvisit(final UnionType nfinal A arg) {
1672        List<Rresult = new ArrayList<>();
1673        List<Rtmp;
1674        {
1675            tmp = n.getElements().accept(this, arg);
1676            if (tmp != null)
1677                result.addAll(tmp);
1678        }
1679        {
1680            tmp = n.getAnnotations().accept(this, arg);
1681            if (tmp != null)
1682                result.addAll(tmp);
1683        }
1684        if (n.getComment().isPresent()) {
1685            tmp = n.getComment().get().accept(this, arg);
1686            if (tmp != null)
1687                result.addAll(tmp);
1688        }
1689        return result;
1690    }
1691
1692    public List<Rvisit(final UnknownType nfinal A arg) {
1693        List<Rresult = new ArrayList<>();
1694        List<Rtmp;
1695        {
1696            tmp = n.getAnnotations().accept(this, arg);
1697            if (tmp != null)
1698                result.addAll(tmp);
1699        }
1700        if (n.getComment().isPresent()) {
1701            tmp = n.getComment().get().accept(this, arg);
1702            if (tmp != null)
1703                result.addAll(tmp);
1704        }
1705        return result;
1706    }
1707
1708    public List<Rvisit(final VariableDeclarationExpr nfinal A arg) {
1709        List<Rresult = new ArrayList<>();
1710        List<Rtmp;
1711        {
1712            tmp = n.getAnnotations().accept(this, arg);
1713            if (tmp != null)
1714                result.addAll(tmp);
1715        }
1716        {
1717            tmp = n.getModifiers().accept(this, arg);
1718            if (tmp != null)
1719                result.addAll(tmp);
1720        }
1721        {
1722            tmp = n.getVariables().accept(this, arg);
1723            if (tmp != null)
1724                result.addAll(tmp);
1725        }
1726        if (n.getComment().isPresent()) {
1727            tmp = n.getComment().get().accept(this, arg);
1728            if (tmp != null)
1729                result.addAll(tmp);
1730        }
1731        return result;
1732    }
1733
1734    public List<Rvisit(final VariableDeclarator nfinal A arg) {
1735        List<Rresult = new ArrayList<>();
1736        List<Rtmp;
1737        if (n.getInitializer().isPresent()) {
1738            tmp = n.getInitializer().get().accept(this, arg);
1739            if (tmp != null)
1740                result.addAll(tmp);
1741        }
1742        {
1743            tmp = n.getName().accept(this, arg);
1744            if (tmp != null)
1745                result.addAll(tmp);
1746        }
1747        {
1748            tmp = n.getType().accept(this, arg);
1749            if (tmp != null)
1750                result.addAll(tmp);
1751        }
1752        if (n.getComment().isPresent()) {
1753            tmp = n.getComment().get().accept(this, arg);
1754            if (tmp != null)
1755                result.addAll(tmp);
1756        }
1757        return result;
1758    }
1759
1760    public List<Rvisit(final VoidType nfinal A arg) {
1761        List<Rresult = new ArrayList<>();
1762        List<Rtmp;
1763        {
1764            tmp = n.getAnnotations().accept(this, arg);
1765            if (tmp != null)
1766                result.addAll(tmp);
1767        }
1768        if (n.getComment().isPresent()) {
1769            tmp = n.getComment().get().accept(this, arg);
1770            if (tmp != null)
1771                result.addAll(tmp);
1772        }
1773        return result;
1774    }
1775
1776    public List<Rvisit(final WhileStmt nfinal A arg) {
1777        List<Rresult = new ArrayList<>();
1778        List<Rtmp;
1779        {
1780            tmp = n.getBody().accept(this, arg);
1781            if (tmp != null)
1782                result.addAll(tmp);
1783        }
1784        {
1785            tmp = n.getCondition().accept(this, arg);
1786            if (tmp != null)
1787                result.addAll(tmp);
1788        }
1789        if (n.getComment().isPresent()) {
1790            tmp = n.getComment().get().accept(this, arg);
1791            if (tmp != null)
1792                result.addAll(tmp);
1793        }
1794        return result;
1795    }
1796
1797    public List<Rvisit(final WildcardType nfinal A arg) {
1798        List<Rresult = new ArrayList<>();
1799        List<Rtmp;
1800        if (n.getExtendedType().isPresent()) {
1801            tmp = n.getExtendedType().get().accept(this, arg);
1802            if (tmp != null)
1803                result.addAll(tmp);
1804        }
1805        if (n.getSuperType().isPresent()) {
1806            tmp = n.getSuperType().get().accept(this, arg);
1807            if (tmp != null)
1808                result.addAll(tmp);
1809        }
1810        {
1811            tmp = n.getAnnotations().accept(this, arg);
1812            if (tmp != null)
1813                result.addAll(tmp);
1814        }
1815        if (n.getComment().isPresent()) {
1816            tmp = n.getComment().get().accept(this, arg);
1817            if (tmp != null)
1818                result.addAll(tmp);
1819        }
1820        return result;
1821    }
1822
1823    @Override
1824    public List<Rvisit(NodeList nA arg) {
1825        return ((NodeList<? extends Node>) n).stream().filter(Objects::nonNull).flatMap(v -> v.accept(this, arg).stream()).collect(Collectors.toList());
1826    }
1827
1828    @Override
1829    public List<Rvisit(final ModuleDeclaration nfinal A arg) {
1830        List<Rresult = new ArrayList<>();
1831        List<Rtmp;
1832        {
1833            tmp = n.getAnnotations().accept(this, arg);
1834            if (tmp != null)
1835                result.addAll(tmp);
1836        }
1837        {
1838            tmp = n.getDirectives().accept(this, arg);
1839            if (tmp != null)
1840                result.addAll(tmp);
1841        }
1842        {
1843            tmp = n.getName().accept(this, arg);
1844            if (tmp != null)
1845                result.addAll(tmp);
1846        }
1847        if (n.getComment().isPresent()) {
1848            tmp = n.getComment().get().accept(this, arg);
1849            if (tmp != null)
1850                result.addAll(tmp);
1851        }
1852        return result;
1853    }
1854
1855    @Override
1856    public List<Rvisit(final ModuleExportsDirective nfinal A arg) {
1857        List<Rresult = new ArrayList<>();
1858        List<Rtmp;
1859        {
1860            tmp = n.getModuleNames().accept(this, arg);
1861            if (tmp != null)
1862                result.addAll(tmp);
1863        }
1864        {
1865            tmp = n.getName().accept(this, arg);
1866            if (tmp != null)
1867                result.addAll(tmp);
1868        }
1869        if (n.getComment().isPresent()) {
1870            tmp = n.getComment().get().accept(this, arg);
1871            if (tmp != null)
1872                result.addAll(tmp);
1873        }
1874        return result;
1875    }
1876
1877    @Override
1878    public List<Rvisit(final ModuleOpensDirective nfinal A arg) {
1879        List<Rresult = new ArrayList<>();
1880        List<Rtmp;
1881        {
1882            tmp = n.getModuleNames().accept(this, arg);
1883            if (tmp != null)
1884                result.addAll(tmp);
1885        }
1886        {
1887            tmp = n.getName().accept(this, arg);
1888            if (tmp != null)
1889                result.addAll(tmp);
1890        }
1891        if (n.getComment().isPresent()) {
1892            tmp = n.getComment().get().accept(this, arg);
1893            if (tmp != null)
1894                result.addAll(tmp);
1895        }
1896        return result;
1897    }
1898
1899    @Override
1900    public List<Rvisit(final ModuleProvidesDirective nfinal A arg) {
1901        List<Rresult = new ArrayList<>();
1902        List<Rtmp;
1903        {
1904            tmp = n.getName().accept(this, arg);
1905            if (tmp != null)
1906                result.addAll(tmp);
1907        }
1908        {
1909            tmp = n.getWith().accept(this, arg);
1910            if (tmp != null)
1911                result.addAll(tmp);
1912        }
1913        if (n.getComment().isPresent()) {
1914            tmp = n.getComment().get().accept(this, arg);
1915            if (tmp != null)
1916                result.addAll(tmp);
1917        }
1918        return result;
1919    }
1920
1921    @Override
1922    public List<Rvisit(final ModuleRequiresDirective nfinal A arg) {
1923        List<Rresult = new ArrayList<>();
1924        List<Rtmp;
1925        {
1926            tmp = n.getModifiers().accept(this, arg);
1927            if (tmp != null)
1928                result.addAll(tmp);
1929        }
1930        {
1931            tmp = n.getName().accept(this, arg);
1932            if (tmp != null)
1933                result.addAll(tmp);
1934        }
1935        if (n.getComment().isPresent()) {
1936            tmp = n.getComment().get().accept(this, arg);
1937            if (tmp != null)
1938                result.addAll(tmp);
1939        }
1940        return result;
1941    }
1942
1943    @Override
1944    public List<Rvisit(final ModuleUsesDirective nfinal A arg) {
1945        List<Rresult = new ArrayList<>();
1946        List<Rtmp;
1947        {
1948            tmp = n.getName().accept(this, arg);
1949            if (tmp != null)
1950                result.addAll(tmp);
1951        }
1952        if (n.getComment().isPresent()) {
1953            tmp = n.getComment().get().accept(this, arg);
1954            if (tmp != null)
1955                result.addAll(tmp);
1956        }
1957        return result;
1958    }
1959
1960    @Override
1961    public List<Rvisit(final UnparsableStmt nfinal A arg) {
1962        List<Rresult = new ArrayList<>();
1963        List<Rtmp;
1964        if (n.getComment().isPresent()) {
1965            tmp = n.getComment().get().accept(this, arg);
1966            if (tmp != null)
1967                result.addAll(tmp);
1968        }
1969        return result;
1970    }
1971
1972    @Override
1973    public List<Rvisit(final ReceiverParameter nfinal A arg) {
1974        List<Rresult = new ArrayList<>();
1975        List<Rtmp;
1976        {
1977            tmp = n.getAnnotations().accept(this, arg);
1978            if (tmp != null)
1979                result.addAll(tmp);
1980        }
1981        {
1982            tmp = n.getName().accept(this, arg);
1983            if (tmp != null)
1984                result.addAll(tmp);
1985        }
1986        {
1987            tmp = n.getType().accept(this, arg);
1988            if (tmp != null)
1989                result.addAll(tmp);
1990        }
1991        if (n.getComment().isPresent()) {
1992            tmp = n.getComment().get().accept(this, arg);
1993            if (tmp != null)
1994                result.addAll(tmp);
1995        }
1996        return result;
1997    }
1998
1999    @Override
2000    public List<Rvisit(final VarType nfinal A arg) {
2001        List<Rresult = new ArrayList<>();
2002        List<Rtmp;
2003        {
2004            tmp = n.getAnnotations().accept(this, arg);
2005            if (tmp != null)
2006                result.addAll(tmp);
2007        }
2008        if (n.getComment().isPresent()) {
2009            tmp = n.getComment().get().accept(this, arg);
2010            if (tmp != null)
2011                result.addAll(tmp);
2012        }
2013        return result;
2014    }
2015
2016    @Override
2017    public List<Rvisit(final Modifier nfinal A arg) {
2018        List<Rresult = new ArrayList<>();
2019        List<Rtmp;
2020        if (n.getComment().isPresent()) {
2021            tmp = n.getComment().get().accept(this, arg);
2022            if (tmp != null)
2023                result.addAll(tmp);
2024        }
2025        return result;
2026    }
2027
2028    @Override
2029    public List<Rvisit(final SwitchExpr nfinal A arg) {
2030        List<Rresult = new ArrayList<>();
2031        List<Rtmp;
2032        {
2033            tmp = n.getEntries().accept(this, arg);
2034            if (tmp != null)
2035                result.addAll(tmp);
2036        }
2037        {
2038            tmp = n.getSelector().accept(this, arg);
2039            if (tmp != null)
2040                result.addAll(tmp);
2041        }
2042        if (n.getComment().isPresent()) {
2043            tmp = n.getComment().get().accept(this, arg);
2044            if (tmp != null)
2045                result.addAll(tmp);
2046        }
2047        return result;
2048    }
2049
2050    @Override
2051    public List<Rvisit(final YieldStmt nfinal A arg) {
2052        List<Rresult = new ArrayList<>();
2053        List<Rtmp;
2054        {
2055            tmp = n.getExpression().accept(this, arg);
2056            if (tmp != null)
2057                result.addAll(tmp);
2058        }
2059        if (n.getComment().isPresent()) {
2060            tmp = n.getComment().get().accept(this, arg);
2061            if (tmp != null)
2062                result.addAll(tmp);
2063        }
2064        return result;
2065    }
2066
2067    @Override
2068    public List<Rvisit(final TextBlockLiteralExpr nfinal A arg) {
2069        List<Rresult = new ArrayList<>();
2070        List<Rtmp;
2071        if (n.getComment().isPresent()) {
2072            tmp = n.getComment().get().accept(this, arg);
2073            if (tmp != null)
2074                result.addAll(tmp);
2075        }
2076        return result;
2077    }
2078}
2079
MembersX
GenericListVisitorAdapter:visit
GenericListVisitorAdapter:visit:Block:result
GenericListVisitorAdapter:visit:Block:tmp
Members
X