1 // Generated from com/puppycrawl/tools/checkstyle/grammar/java/JavaLanguageParser.g4 by ANTLR 4.13.2
2 package com.puppycrawl.tools.checkstyle.grammar.java;
3 import org.antlr.v4.runtime.tree.ParseTreeVisitor;
4
5 /**
6 * This interface defines a complete generic visitor for a parse tree produced
7 * by {@link JavaLanguageParser}.
8 *
9 * @param <T> The return type of the visit operation. Use {@link Void} for
10 * operations with no return type.
11 */
12 public interface JavaLanguageParserVisitor<T> extends ParseTreeVisitor<T> {
13 /**
14 * Visit a parse tree produced by {@link JavaLanguageParser#compilationUnit}.
15 * @param ctx the parse tree
16 * @return the visitor result
17 */
18 T visitCompilationUnit(JavaLanguageParser.CompilationUnitContext ctx);
19 /**
20 * Visit a parse tree produced by {@link JavaLanguageParser#compactMemberDeclaration}.
21 * @param ctx the parse tree
22 * @return the visitor result
23 */
24 T visitCompactMemberDeclaration(JavaLanguageParser.CompactMemberDeclarationContext ctx);
25 /**
26 * Visit a parse tree produced by {@link JavaLanguageParser#compactMember}.
27 * @param ctx the parse tree
28 * @return the visitor result
29 */
30 T visitCompactMember(JavaLanguageParser.CompactMemberContext ctx);
31 /**
32 * Visit a parse tree produced by {@link JavaLanguageParser#packageDeclaration}.
33 * @param ctx the parse tree
34 * @return the visitor result
35 */
36 T visitPackageDeclaration(JavaLanguageParser.PackageDeclarationContext ctx);
37 /**
38 * Visit a parse tree produced by the {@code importDec}
39 * labeled alternative in {@link JavaLanguageParser#importDeclaration}.
40 * @param ctx the parse tree
41 * @return the visitor result
42 */
43 T visitImportDec(JavaLanguageParser.ImportDecContext ctx);
44 /**
45 * Visit a parse tree produced by the {@code singleSemiImport}
46 * labeled alternative in {@link JavaLanguageParser#importDeclaration}.
47 * @param ctx the parse tree
48 * @return the visitor result
49 */
50 T visitSingleSemiImport(JavaLanguageParser.SingleSemiImportContext ctx);
51 /**
52 * Visit a parse tree produced by {@link JavaLanguageParser#moduleDeclaration}.
53 * @param ctx the parse tree
54 * @return the visitor result
55 */
56 T visitModuleDeclaration(JavaLanguageParser.ModuleDeclarationContext ctx);
57 /**
58 * Visit a parse tree produced by {@link JavaLanguageParser#directiveBlock}.
59 * @param ctx the parse tree
60 * @return the visitor result
61 */
62 T visitDirectiveBlock(JavaLanguageParser.DirectiveBlockContext ctx);
63 /**
64 * Visit a parse tree produced by the {@code requiresDirective}
65 * labeled alternative in {@link JavaLanguageParser#moduleDirective}.
66 * @param ctx the parse tree
67 * @return the visitor result
68 */
69 T visitRequiresDirective(JavaLanguageParser.RequiresDirectiveContext ctx);
70 /**
71 * Visit a parse tree produced by the {@code exportsDirective}
72 * labeled alternative in {@link JavaLanguageParser#moduleDirective}.
73 * @param ctx the parse tree
74 * @return the visitor result
75 */
76 T visitExportsDirective(JavaLanguageParser.ExportsDirectiveContext ctx);
77 /**
78 * Visit a parse tree produced by the {@code opensDirective}
79 * labeled alternative in {@link JavaLanguageParser#moduleDirective}.
80 * @param ctx the parse tree
81 * @return the visitor result
82 */
83 T visitOpensDirective(JavaLanguageParser.OpensDirectiveContext ctx);
84 /**
85 * Visit a parse tree produced by the {@code usesDirective}
86 * labeled alternative in {@link JavaLanguageParser#moduleDirective}.
87 * @param ctx the parse tree
88 * @return the visitor result
89 */
90 T visitUsesDirective(JavaLanguageParser.UsesDirectiveContext ctx);
91 /**
92 * Visit a parse tree produced by the {@code providesDirective}
93 * labeled alternative in {@link JavaLanguageParser#moduleDirective}.
94 * @param ctx the parse tree
95 * @return the visitor result
96 */
97 T visitProvidesDirective(JavaLanguageParser.ProvidesDirectiveContext ctx);
98 /**
99 * Visit a parse tree produced by {@link JavaLanguageParser#requiresModifier}.
100 * @param ctx the parse tree
101 * @return the visitor result
102 */
103 T visitRequiresModifier(JavaLanguageParser.RequiresModifierContext ctx);
104 /**
105 * Visit a parse tree produced by {@link JavaLanguageParser#toClause}.
106 * @param ctx the parse tree
107 * @return the visitor result
108 */
109 T visitToClause(JavaLanguageParser.ToClauseContext ctx);
110 /**
111 * Visit a parse tree produced by {@link JavaLanguageParser#withClause}.
112 * @param ctx the parse tree
113 * @return the visitor result
114 */
115 T visitWithClause(JavaLanguageParser.WithClauseContext ctx);
116 /**
117 * Visit a parse tree produced by {@link JavaLanguageParser#typeDeclaration}.
118 * @param ctx the parse tree
119 * @return the visitor result
120 */
121 T visitTypeDeclaration(JavaLanguageParser.TypeDeclarationContext ctx);
122 /**
123 * Visit a parse tree produced by {@link JavaLanguageParser#types}.
124 * @param ctx the parse tree
125 * @return the visitor result
126 */
127 T visitTypes(JavaLanguageParser.TypesContext ctx);
128 /**
129 * Visit a parse tree produced by {@link JavaLanguageParser#modifier}.
130 * @param ctx the parse tree
131 * @return the visitor result
132 */
133 T visitModifier(JavaLanguageParser.ModifierContext ctx);
134 /**
135 * Visit a parse tree produced by {@link JavaLanguageParser#variableModifier}.
136 * @param ctx the parse tree
137 * @return the visitor result
138 */
139 T visitVariableModifier(JavaLanguageParser.VariableModifierContext ctx);
140 /**
141 * Visit a parse tree produced by {@link JavaLanguageParser#classDeclaration}.
142 * @param ctx the parse tree
143 * @return the visitor result
144 */
145 T visitClassDeclaration(JavaLanguageParser.ClassDeclarationContext ctx);
146 /**
147 * Visit a parse tree produced by {@link JavaLanguageParser#recordDeclaration}.
148 * @param ctx the parse tree
149 * @return the visitor result
150 */
151 T visitRecordDeclaration(JavaLanguageParser.RecordDeclarationContext ctx);
152 /**
153 * Visit a parse tree produced by {@link JavaLanguageParser#recordComponentsList}.
154 * @param ctx the parse tree
155 * @return the visitor result
156 */
157 T visitRecordComponentsList(JavaLanguageParser.RecordComponentsListContext ctx);
158 /**
159 * Visit a parse tree produced by {@link JavaLanguageParser#recordComponents}.
160 * @param ctx the parse tree
161 * @return the visitor result
162 */
163 T visitRecordComponents(JavaLanguageParser.RecordComponentsContext ctx);
164 /**
165 * Visit a parse tree produced by {@link JavaLanguageParser#recordComponent}.
166 * @param ctx the parse tree
167 * @return the visitor result
168 */
169 T visitRecordComponent(JavaLanguageParser.RecordComponentContext ctx);
170 /**
171 * Visit a parse tree produced by {@link JavaLanguageParser#lastRecordComponent}.
172 * @param ctx the parse tree
173 * @return the visitor result
174 */
175 T visitLastRecordComponent(JavaLanguageParser.LastRecordComponentContext ctx);
176 /**
177 * Visit a parse tree produced by {@link JavaLanguageParser#recordBody}.
178 * @param ctx the parse tree
179 * @return the visitor result
180 */
181 T visitRecordBody(JavaLanguageParser.RecordBodyContext ctx);
182 /**
183 * Visit a parse tree produced by {@link JavaLanguageParser#recordBodyDeclaration}.
184 * @param ctx the parse tree
185 * @return the visitor result
186 */
187 T visitRecordBodyDeclaration(JavaLanguageParser.RecordBodyDeclarationContext ctx);
188 /**
189 * Visit a parse tree produced by {@link JavaLanguageParser#compactConstructorDeclaration}.
190 * @param ctx the parse tree
191 * @return the visitor result
192 */
193 T visitCompactConstructorDeclaration(JavaLanguageParser.CompactConstructorDeclarationContext ctx);
194 /**
195 * Visit a parse tree produced by {@link JavaLanguageParser#classExtends}.
196 * @param ctx the parse tree
197 * @return the visitor result
198 */
199 T visitClassExtends(JavaLanguageParser.ClassExtendsContext ctx);
200 /**
201 * Visit a parse tree produced by {@link JavaLanguageParser#implementsClause}.
202 * @param ctx the parse tree
203 * @return the visitor result
204 */
205 T visitImplementsClause(JavaLanguageParser.ImplementsClauseContext ctx);
206 /**
207 * Visit a parse tree produced by {@link JavaLanguageParser#typeParameters}.
208 * @param ctx the parse tree
209 * @return the visitor result
210 */
211 T visitTypeParameters(JavaLanguageParser.TypeParametersContext ctx);
212 /**
213 * Visit a parse tree produced by {@link JavaLanguageParser#typeParameter}.
214 * @param ctx the parse tree
215 * @return the visitor result
216 */
217 T visitTypeParameter(JavaLanguageParser.TypeParameterContext ctx);
218 /**
219 * Visit a parse tree produced by {@link JavaLanguageParser#typeUpperBounds}.
220 * @param ctx the parse tree
221 * @return the visitor result
222 */
223 T visitTypeUpperBounds(JavaLanguageParser.TypeUpperBoundsContext ctx);
224 /**
225 * Visit a parse tree produced by {@link JavaLanguageParser#typeBound}.
226 * @param ctx the parse tree
227 * @return the visitor result
228 */
229 T visitTypeBound(JavaLanguageParser.TypeBoundContext ctx);
230 /**
231 * Visit a parse tree produced by {@link JavaLanguageParser#typeBoundType}.
232 * @param ctx the parse tree
233 * @return the visitor result
234 */
235 T visitTypeBoundType(JavaLanguageParser.TypeBoundTypeContext ctx);
236 /**
237 * Visit a parse tree produced by {@link JavaLanguageParser#enumDeclaration}.
238 * @param ctx the parse tree
239 * @return the visitor result
240 */
241 T visitEnumDeclaration(JavaLanguageParser.EnumDeclarationContext ctx);
242 /**
243 * Visit a parse tree produced by {@link JavaLanguageParser#enumBody}.
244 * @param ctx the parse tree
245 * @return the visitor result
246 */
247 T visitEnumBody(JavaLanguageParser.EnumBodyContext ctx);
248 /**
249 * Visit a parse tree produced by {@link JavaLanguageParser#enumConstants}.
250 * @param ctx the parse tree
251 * @return the visitor result
252 */
253 T visitEnumConstants(JavaLanguageParser.EnumConstantsContext ctx);
254 /**
255 * Visit a parse tree produced by {@link JavaLanguageParser#enumConstant}.
256 * @param ctx the parse tree
257 * @return the visitor result
258 */
259 T visitEnumConstant(JavaLanguageParser.EnumConstantContext ctx);
260 /**
261 * Visit a parse tree produced by {@link JavaLanguageParser#enumBodyDeclarations}.
262 * @param ctx the parse tree
263 * @return the visitor result
264 */
265 T visitEnumBodyDeclarations(JavaLanguageParser.EnumBodyDeclarationsContext ctx);
266 /**
267 * Visit a parse tree produced by {@link JavaLanguageParser#interfaceDeclaration}.
268 * @param ctx the parse tree
269 * @return the visitor result
270 */
271 T visitInterfaceDeclaration(JavaLanguageParser.InterfaceDeclarationContext ctx);
272 /**
273 * Visit a parse tree produced by {@link JavaLanguageParser#interfaceExtends}.
274 * @param ctx the parse tree
275 * @return the visitor result
276 */
277 T visitInterfaceExtends(JavaLanguageParser.InterfaceExtendsContext ctx);
278 /**
279 * Visit a parse tree produced by {@link JavaLanguageParser#classBody}.
280 * @param ctx the parse tree
281 * @return the visitor result
282 */
283 T visitClassBody(JavaLanguageParser.ClassBodyContext ctx);
284 /**
285 * Visit a parse tree produced by {@link JavaLanguageParser#interfaceBody}.
286 * @param ctx the parse tree
287 * @return the visitor result
288 */
289 T visitInterfaceBody(JavaLanguageParser.InterfaceBodyContext ctx);
290 /**
291 * Visit a parse tree produced by the {@code emptyClass}
292 * labeled alternative in {@link JavaLanguageParser#classBodyDeclaration}.
293 * @param ctx the parse tree
294 * @return the visitor result
295 */
296 T visitEmptyClass(JavaLanguageParser.EmptyClassContext ctx);
297 /**
298 * Visit a parse tree produced by the {@code classBlock}
299 * labeled alternative in {@link JavaLanguageParser#classBodyDeclaration}.
300 * @param ctx the parse tree
301 * @return the visitor result
302 */
303 T visitClassBlock(JavaLanguageParser.ClassBlockContext ctx);
304 /**
305 * Visit a parse tree produced by the {@code classDef}
306 * labeled alternative in {@link JavaLanguageParser#classBodyDeclaration}.
307 * @param ctx the parse tree
308 * @return the visitor result
309 */
310 T visitClassDef(JavaLanguageParser.ClassDefContext ctx);
311 /**
312 * Visit a parse tree produced by {@link JavaLanguageParser#memberDeclaration}.
313 * @param ctx the parse tree
314 * @return the visitor result
315 */
316 T visitMemberDeclaration(JavaLanguageParser.MemberDeclarationContext ctx);
317 /**
318 * Visit a parse tree produced by {@link JavaLanguageParser#methodDeclaration}.
319 * @param ctx the parse tree
320 * @return the visitor result
321 */
322 T visitMethodDeclaration(JavaLanguageParser.MethodDeclarationContext ctx);
323 /**
324 * Visit a parse tree produced by {@link JavaLanguageParser#methodBody}.
325 * @param ctx the parse tree
326 * @return the visitor result
327 */
328 T visitMethodBody(JavaLanguageParser.MethodBodyContext ctx);
329 /**
330 * Visit a parse tree produced by {@link JavaLanguageParser#throwsList}.
331 * @param ctx the parse tree
332 * @return the visitor result
333 */
334 T visitThrowsList(JavaLanguageParser.ThrowsListContext ctx);
335 /**
336 * Visit a parse tree produced by {@link JavaLanguageParser#constructorDeclaration}.
337 * @param ctx the parse tree
338 * @return the visitor result
339 */
340 T visitConstructorDeclaration(JavaLanguageParser.ConstructorDeclarationContext ctx);
341 /**
342 * Visit a parse tree produced by {@link JavaLanguageParser#fieldDeclaration}.
343 * @param ctx the parse tree
344 * @return the visitor result
345 */
346 T visitFieldDeclaration(JavaLanguageParser.FieldDeclarationContext ctx);
347 /**
348 * Visit a parse tree produced by {@link JavaLanguageParser#interfaceBodyDeclaration}.
349 * @param ctx the parse tree
350 * @return the visitor result
351 */
352 T visitInterfaceBodyDeclaration(JavaLanguageParser.InterfaceBodyDeclarationContext ctx);
353 /**
354 * Visit a parse tree produced by {@link JavaLanguageParser#interfaceMemberDeclaration}.
355 * @param ctx the parse tree
356 * @return the visitor result
357 */
358 T visitInterfaceMemberDeclaration(JavaLanguageParser.InterfaceMemberDeclarationContext ctx);
359 /**
360 * Visit a parse tree produced by {@link JavaLanguageParser#interfaceMethodDeclaration}.
361 * @param ctx the parse tree
362 * @return the visitor result
363 */
364 T visitInterfaceMethodDeclaration(JavaLanguageParser.InterfaceMethodDeclarationContext ctx);
365 /**
366 * Visit a parse tree produced by {@link JavaLanguageParser#variableDeclarators}.
367 * @param ctx the parse tree
368 * @return the visitor result
369 */
370 T visitVariableDeclarators(JavaLanguageParser.VariableDeclaratorsContext ctx);
371 /**
372 * Visit a parse tree produced by {@link JavaLanguageParser#variableDeclarator}.
373 * @param ctx the parse tree
374 * @return the visitor result
375 */
376 T visitVariableDeclarator(JavaLanguageParser.VariableDeclaratorContext ctx);
377 /**
378 * Visit a parse tree produced by {@link JavaLanguageParser#variableDeclaratorId}.
379 * @param ctx the parse tree
380 * @return the visitor result
381 */
382 T visitVariableDeclaratorId(JavaLanguageParser.VariableDeclaratorIdContext ctx);
383 /**
384 * Visit a parse tree produced by {@link JavaLanguageParser#variableInitializer}.
385 * @param ctx the parse tree
386 * @return the visitor result
387 */
388 T visitVariableInitializer(JavaLanguageParser.VariableInitializerContext ctx);
389 /**
390 * Visit a parse tree produced by {@link JavaLanguageParser#arrayInitializer}.
391 * @param ctx the parse tree
392 * @return the visitor result
393 */
394 T visitArrayInitializer(JavaLanguageParser.ArrayInitializerContext ctx);
395 /**
396 * Visit a parse tree produced by {@link JavaLanguageParser#classOrInterfaceType}.
397 * @param ctx the parse tree
398 * @return the visitor result
399 */
400 T visitClassOrInterfaceType(JavaLanguageParser.ClassOrInterfaceTypeContext ctx);
401 /**
402 * Visit a parse tree produced by {@link JavaLanguageParser#classOrInterfaceTypeExtended}.
403 * @param ctx the parse tree
404 * @return the visitor result
405 */
406 T visitClassOrInterfaceTypeExtended(JavaLanguageParser.ClassOrInterfaceTypeExtendedContext ctx);
407 /**
408 * Visit a parse tree produced by the {@code simpleTypeArgument}
409 * labeled alternative in {@link JavaLanguageParser#typeArgument}.
410 * @param ctx the parse tree
411 * @return the visitor result
412 */
413 T visitSimpleTypeArgument(JavaLanguageParser.SimpleTypeArgumentContext ctx);
414 /**
415 * Visit a parse tree produced by the {@code wildCardTypeArgument}
416 * labeled alternative in {@link JavaLanguageParser#typeArgument}.
417 * @param ctx the parse tree
418 * @return the visitor result
419 */
420 T visitWildCardTypeArgument(JavaLanguageParser.WildCardTypeArgumentContext ctx);
421 /**
422 * Visit a parse tree produced by {@link JavaLanguageParser#qualifiedNameList}.
423 * @param ctx the parse tree
424 * @return the visitor result
425 */
426 T visitQualifiedNameList(JavaLanguageParser.QualifiedNameListContext ctx);
427 /**
428 * Visit a parse tree produced by {@link JavaLanguageParser#formalParameters}.
429 * @param ctx the parse tree
430 * @return the visitor result
431 */
432 T visitFormalParameters(JavaLanguageParser.FormalParametersContext ctx);
433 /**
434 * Visit a parse tree produced by {@link JavaLanguageParser#formalParameterList}.
435 * @param ctx the parse tree
436 * @return the visitor result
437 */
438 T visitFormalParameterList(JavaLanguageParser.FormalParameterListContext ctx);
439 /**
440 * Visit a parse tree produced by {@link JavaLanguageParser#formalParameter}.
441 * @param ctx the parse tree
442 * @return the visitor result
443 */
444 T visitFormalParameter(JavaLanguageParser.FormalParameterContext ctx);
445 /**
446 * Visit a parse tree produced by {@link JavaLanguageParser#lastFormalParameter}.
447 * @param ctx the parse tree
448 * @return the visitor result
449 */
450 T visitLastFormalParameter(JavaLanguageParser.LastFormalParameterContext ctx);
451 /**
452 * Visit a parse tree produced by {@link JavaLanguageParser#qualifiedName}.
453 * @param ctx the parse tree
454 * @return the visitor result
455 */
456 T visitQualifiedName(JavaLanguageParser.QualifiedNameContext ctx);
457 /**
458 * Visit a parse tree produced by {@link JavaLanguageParser#qualifiedNameExtended}.
459 * @param ctx the parse tree
460 * @return the visitor result
461 */
462 T visitQualifiedNameExtended(JavaLanguageParser.QualifiedNameExtendedContext ctx);
463 /**
464 * Visit a parse tree produced by {@link JavaLanguageParser#literal}.
465 * @param ctx the parse tree
466 * @return the visitor result
467 */
468 T visitLiteral(JavaLanguageParser.LiteralContext ctx);
469 /**
470 * Visit a parse tree produced by {@link JavaLanguageParser#integerLiteral}.
471 * @param ctx the parse tree
472 * @return the visitor result
473 */
474 T visitIntegerLiteral(JavaLanguageParser.IntegerLiteralContext ctx);
475 /**
476 * Visit a parse tree produced by {@link JavaLanguageParser#floatLiteral}.
477 * @param ctx the parse tree
478 * @return the visitor result
479 */
480 T visitFloatLiteral(JavaLanguageParser.FloatLiteralContext ctx);
481 /**
482 * Visit a parse tree produced by {@link JavaLanguageParser#textBlockLiteral}.
483 * @param ctx the parse tree
484 * @return the visitor result
485 */
486 T visitTextBlockLiteral(JavaLanguageParser.TextBlockLiteralContext ctx);
487 /**
488 * Visit a parse tree produced by {@link JavaLanguageParser#annotations}.
489 * @param ctx the parse tree
490 * @return the visitor result
491 */
492 T visitAnnotations(JavaLanguageParser.AnnotationsContext ctx);
493 /**
494 * Visit a parse tree produced by {@link JavaLanguageParser#annotation}.
495 * @param ctx the parse tree
496 * @return the visitor result
497 */
498 T visitAnnotation(JavaLanguageParser.AnnotationContext ctx);
499 /**
500 * Visit a parse tree produced by {@link JavaLanguageParser#elementValuePairs}.
501 * @param ctx the parse tree
502 * @return the visitor result
503 */
504 T visitElementValuePairs(JavaLanguageParser.ElementValuePairsContext ctx);
505 /**
506 * Visit a parse tree produced by {@link JavaLanguageParser#elementValuePair}.
507 * @param ctx the parse tree
508 * @return the visitor result
509 */
510 T visitElementValuePair(JavaLanguageParser.ElementValuePairContext ctx);
511 /**
512 * Visit a parse tree produced by {@link JavaLanguageParser#elementValue}.
513 * @param ctx the parse tree
514 * @return the visitor result
515 */
516 T visitElementValue(JavaLanguageParser.ElementValueContext ctx);
517 /**
518 * Visit a parse tree produced by {@link JavaLanguageParser#elementValueArrayInitializer}.
519 * @param ctx the parse tree
520 * @return the visitor result
521 */
522 T visitElementValueArrayInitializer(JavaLanguageParser.ElementValueArrayInitializerContext ctx);
523 /**
524 * Visit a parse tree produced by {@link JavaLanguageParser#annotationTypeDeclaration}.
525 * @param ctx the parse tree
526 * @return the visitor result
527 */
528 T visitAnnotationTypeDeclaration(JavaLanguageParser.AnnotationTypeDeclarationContext ctx);
529 /**
530 * Visit a parse tree produced by {@link JavaLanguageParser#annotationTypeBody}.
531 * @param ctx the parse tree
532 * @return the visitor result
533 */
534 T visitAnnotationTypeBody(JavaLanguageParser.AnnotationTypeBodyContext ctx);
535 /**
536 * Visit a parse tree produced by {@link JavaLanguageParser#annotationTypeElementDeclaration}.
537 * @param ctx the parse tree
538 * @return the visitor result
539 */
540 T visitAnnotationTypeElementDeclaration(JavaLanguageParser.AnnotationTypeElementDeclarationContext ctx);
541 /**
542 * Visit a parse tree produced by the {@code annotationField}
543 * labeled alternative in {@link JavaLanguageParser#annotationTypeElementRest}.
544 * @param ctx the parse tree
545 * @return the visitor result
546 */
547 T visitAnnotationField(JavaLanguageParser.AnnotationFieldContext ctx);
548 /**
549 * Visit a parse tree produced by the {@code annotationType}
550 * labeled alternative in {@link JavaLanguageParser#annotationTypeElementRest}.
551 * @param ctx the parse tree
552 * @return the visitor result
553 */
554 T visitAnnotationType(JavaLanguageParser.AnnotationTypeContext ctx);
555 /**
556 * Visit a parse tree produced by {@link JavaLanguageParser#annotationMethodRest}.
557 * @param ctx the parse tree
558 * @return the visitor result
559 */
560 T visitAnnotationMethodRest(JavaLanguageParser.AnnotationMethodRestContext ctx);
561 /**
562 * Visit a parse tree produced by {@link JavaLanguageParser#annotationConstantRest}.
563 * @param ctx the parse tree
564 * @return the visitor result
565 */
566 T visitAnnotationConstantRest(JavaLanguageParser.AnnotationConstantRestContext ctx);
567 /**
568 * Visit a parse tree produced by {@link JavaLanguageParser#defaultValue}.
569 * @param ctx the parse tree
570 * @return the visitor result
571 */
572 T visitDefaultValue(JavaLanguageParser.DefaultValueContext ctx);
573 /**
574 * Visit a parse tree produced by {@link JavaLanguageParser#constructorBlock}.
575 * @param ctx the parse tree
576 * @return the visitor result
577 */
578 T visitConstructorBlock(JavaLanguageParser.ConstructorBlockContext ctx);
579 /**
580 * Visit a parse tree produced by {@link JavaLanguageParser#constructorBlockStatement}.
581 * @param ctx the parse tree
582 * @return the visitor result
583 */
584 T visitConstructorBlockStatement(JavaLanguageParser.ConstructorBlockStatementContext ctx);
585 /**
586 * Visit a parse tree produced by the {@code explicitCtorCall}
587 * labeled alternative in {@link JavaLanguageParser#explicitConstructorInvocation}.
588 * @param ctx the parse tree
589 * @return the visitor result
590 */
591 T visitExplicitCtorCall(JavaLanguageParser.ExplicitCtorCallContext ctx);
592 /**
593 * Visit a parse tree produced by the {@code primaryCtorCall}
594 * labeled alternative in {@link JavaLanguageParser#explicitConstructorInvocation}.
595 * @param ctx the parse tree
596 * @return the visitor result
597 */
598 T visitPrimaryCtorCall(JavaLanguageParser.PrimaryCtorCallContext ctx);
599 /**
600 * Visit a parse tree produced by {@link JavaLanguageParser#block}.
601 * @param ctx the parse tree
602 * @return the visitor result
603 */
604 T visitBlock(JavaLanguageParser.BlockContext ctx);
605 /**
606 * Visit a parse tree produced by the {@code localVar}
607 * labeled alternative in {@link JavaLanguageParser#blockStatement}.
608 * @param ctx the parse tree
609 * @return the visitor result
610 */
611 T visitLocalVar(JavaLanguageParser.LocalVarContext ctx);
612 /**
613 * Visit a parse tree produced by the {@code stat}
614 * labeled alternative in {@link JavaLanguageParser#blockStatement}.
615 * @param ctx the parse tree
616 * @return the visitor result
617 */
618 T visitStat(JavaLanguageParser.StatContext ctx);
619 /**
620 * Visit a parse tree produced by the {@code localType}
621 * labeled alternative in {@link JavaLanguageParser#blockStatement}.
622 * @param ctx the parse tree
623 * @return the visitor result
624 */
625 T visitLocalType(JavaLanguageParser.LocalTypeContext ctx);
626 /**
627 * Visit a parse tree produced by {@link JavaLanguageParser#localVariableDeclaration}.
628 * @param ctx the parse tree
629 * @return the visitor result
630 */
631 T visitLocalVariableDeclaration(JavaLanguageParser.LocalVariableDeclarationContext ctx);
632 /**
633 * Visit a parse tree produced by {@link JavaLanguageParser#localTypeDeclaration}.
634 * @param ctx the parse tree
635 * @return the visitor result
636 */
637 T visitLocalTypeDeclaration(JavaLanguageParser.LocalTypeDeclarationContext ctx);
638 /**
639 * Visit a parse tree produced by the {@code blockStat}
640 * labeled alternative in {@link JavaLanguageParser#statement}.
641 * @param ctx the parse tree
642 * @return the visitor result
643 */
644 T visitBlockStat(JavaLanguageParser.BlockStatContext ctx);
645 /**
646 * Visit a parse tree produced by the {@code assertExp}
647 * labeled alternative in {@link JavaLanguageParser#statement}.
648 * @param ctx the parse tree
649 * @return the visitor result
650 */
651 T visitAssertExp(JavaLanguageParser.AssertExpContext ctx);
652 /**
653 * Visit a parse tree produced by the {@code ifStat}
654 * labeled alternative in {@link JavaLanguageParser#statement}.
655 * @param ctx the parse tree
656 * @return the visitor result
657 */
658 T visitIfStat(JavaLanguageParser.IfStatContext ctx);
659 /**
660 * Visit a parse tree produced by the {@code forStat}
661 * labeled alternative in {@link JavaLanguageParser#statement}.
662 * @param ctx the parse tree
663 * @return the visitor result
664 */
665 T visitForStat(JavaLanguageParser.ForStatContext ctx);
666 /**
667 * Visit a parse tree produced by the {@code whileStat}
668 * labeled alternative in {@link JavaLanguageParser#statement}.
669 * @param ctx the parse tree
670 * @return the visitor result
671 */
672 T visitWhileStat(JavaLanguageParser.WhileStatContext ctx);
673 /**
674 * Visit a parse tree produced by the {@code doStat}
675 * labeled alternative in {@link JavaLanguageParser#statement}.
676 * @param ctx the parse tree
677 * @return the visitor result
678 */
679 T visitDoStat(JavaLanguageParser.DoStatContext ctx);
680 /**
681 * Visit a parse tree produced by the {@code tryStat}
682 * labeled alternative in {@link JavaLanguageParser#statement}.
683 * @param ctx the parse tree
684 * @return the visitor result
685 */
686 T visitTryStat(JavaLanguageParser.TryStatContext ctx);
687 /**
688 * Visit a parse tree produced by the {@code tryWithResourceStat}
689 * labeled alternative in {@link JavaLanguageParser#statement}.
690 * @param ctx the parse tree
691 * @return the visitor result
692 */
693 T visitTryWithResourceStat(JavaLanguageParser.TryWithResourceStatContext ctx);
694 /**
695 * Visit a parse tree produced by the {@code yieldStat}
696 * labeled alternative in {@link JavaLanguageParser#statement}.
697 * @param ctx the parse tree
698 * @return the visitor result
699 */
700 T visitYieldStat(JavaLanguageParser.YieldStatContext ctx);
701 /**
702 * Visit a parse tree produced by the {@code switchStat}
703 * labeled alternative in {@link JavaLanguageParser#statement}.
704 * @param ctx the parse tree
705 * @return the visitor result
706 */
707 T visitSwitchStat(JavaLanguageParser.SwitchStatContext ctx);
708 /**
709 * Visit a parse tree produced by the {@code syncStat}
710 * labeled alternative in {@link JavaLanguageParser#statement}.
711 * @param ctx the parse tree
712 * @return the visitor result
713 */
714 T visitSyncStat(JavaLanguageParser.SyncStatContext ctx);
715 /**
716 * Visit a parse tree produced by the {@code returnStat}
717 * labeled alternative in {@link JavaLanguageParser#statement}.
718 * @param ctx the parse tree
719 * @return the visitor result
720 */
721 T visitReturnStat(JavaLanguageParser.ReturnStatContext ctx);
722 /**
723 * Visit a parse tree produced by the {@code throwStat}
724 * labeled alternative in {@link JavaLanguageParser#statement}.
725 * @param ctx the parse tree
726 * @return the visitor result
727 */
728 T visitThrowStat(JavaLanguageParser.ThrowStatContext ctx);
729 /**
730 * Visit a parse tree produced by the {@code breakStat}
731 * labeled alternative in {@link JavaLanguageParser#statement}.
732 * @param ctx the parse tree
733 * @return the visitor result
734 */
735 T visitBreakStat(JavaLanguageParser.BreakStatContext ctx);
736 /**
737 * Visit a parse tree produced by the {@code continueStat}
738 * labeled alternative in {@link JavaLanguageParser#statement}.
739 * @param ctx the parse tree
740 * @return the visitor result
741 */
742 T visitContinueStat(JavaLanguageParser.ContinueStatContext ctx);
743 /**
744 * Visit a parse tree produced by the {@code emptyStat}
745 * labeled alternative in {@link JavaLanguageParser#statement}.
746 * @param ctx the parse tree
747 * @return the visitor result
748 */
749 T visitEmptyStat(JavaLanguageParser.EmptyStatContext ctx);
750 /**
751 * Visit a parse tree produced by the {@code expStat}
752 * labeled alternative in {@link JavaLanguageParser#statement}.
753 * @param ctx the parse tree
754 * @return the visitor result
755 */
756 T visitExpStat(JavaLanguageParser.ExpStatContext ctx);
757 /**
758 * Visit a parse tree produced by the {@code labelStat}
759 * labeled alternative in {@link JavaLanguageParser#statement}.
760 * @param ctx the parse tree
761 * @return the visitor result
762 */
763 T visitLabelStat(JavaLanguageParser.LabelStatContext ctx);
764 /**
765 * Visit a parse tree produced by {@link JavaLanguageParser#switchExpressionOrStatement}.
766 * @param ctx the parse tree
767 * @return the visitor result
768 */
769 T visitSwitchExpressionOrStatement(JavaLanguageParser.SwitchExpressionOrStatementContext ctx);
770 /**
771 * Visit a parse tree produced by the {@code switchRules}
772 * labeled alternative in {@link JavaLanguageParser#switchBlock}.
773 * @param ctx the parse tree
774 * @return the visitor result
775 */
776 T visitSwitchRules(JavaLanguageParser.SwitchRulesContext ctx);
777 /**
778 * Visit a parse tree produced by the {@code switchBlocks}
779 * labeled alternative in {@link JavaLanguageParser#switchBlock}.
780 * @param ctx the parse tree
781 * @return the visitor result
782 */
783 T visitSwitchBlocks(JavaLanguageParser.SwitchBlocksContext ctx);
784 /**
785 * Visit a parse tree produced by {@link JavaLanguageParser#switchLabeledRule}.
786 * @param ctx the parse tree
787 * @return the visitor result
788 */
789 T visitSwitchLabeledRule(JavaLanguageParser.SwitchLabeledRuleContext ctx);
790 /**
791 * Visit a parse tree produced by {@link JavaLanguageParser#switchLabeledExpression}.
792 * @param ctx the parse tree
793 * @return the visitor result
794 */
795 T visitSwitchLabeledExpression(JavaLanguageParser.SwitchLabeledExpressionContext ctx);
796 /**
797 * Visit a parse tree produced by {@link JavaLanguageParser#switchLabeledBlock}.
798 * @param ctx the parse tree
799 * @return the visitor result
800 */
801 T visitSwitchLabeledBlock(JavaLanguageParser.SwitchLabeledBlockContext ctx);
802 /**
803 * Visit a parse tree produced by {@link JavaLanguageParser#switchLabeledThrow}.
804 * @param ctx the parse tree
805 * @return the visitor result
806 */
807 T visitSwitchLabeledThrow(JavaLanguageParser.SwitchLabeledThrowContext ctx);
808 /**
809 * Visit a parse tree produced by {@link JavaLanguageParser#elseStat}.
810 * @param ctx the parse tree
811 * @return the visitor result
812 */
813 T visitElseStat(JavaLanguageParser.ElseStatContext ctx);
814 /**
815 * Visit a parse tree produced by {@link JavaLanguageParser#catchClause}.
816 * @param ctx the parse tree
817 * @return the visitor result
818 */
819 T visitCatchClause(JavaLanguageParser.CatchClauseContext ctx);
820 /**
821 * Visit a parse tree produced by {@link JavaLanguageParser#catchParameter}.
822 * @param ctx the parse tree
823 * @return the visitor result
824 */
825 T visitCatchParameter(JavaLanguageParser.CatchParameterContext ctx);
826 /**
827 * Visit a parse tree produced by {@link JavaLanguageParser#catchType}.
828 * @param ctx the parse tree
829 * @return the visitor result
830 */
831 T visitCatchType(JavaLanguageParser.CatchTypeContext ctx);
832 /**
833 * Visit a parse tree produced by {@link JavaLanguageParser#finallyBlock}.
834 * @param ctx the parse tree
835 * @return the visitor result
836 */
837 T visitFinallyBlock(JavaLanguageParser.FinallyBlockContext ctx);
838 /**
839 * Visit a parse tree produced by {@link JavaLanguageParser#resourceSpecification}.
840 * @param ctx the parse tree
841 * @return the visitor result
842 */
843 T visitResourceSpecification(JavaLanguageParser.ResourceSpecificationContext ctx);
844 /**
845 * Visit a parse tree produced by {@link JavaLanguageParser#resources}.
846 * @param ctx the parse tree
847 * @return the visitor result
848 */
849 T visitResources(JavaLanguageParser.ResourcesContext ctx);
850 /**
851 * Visit a parse tree produced by {@link JavaLanguageParser#resource}.
852 * @param ctx the parse tree
853 * @return the visitor result
854 */
855 T visitResource(JavaLanguageParser.ResourceContext ctx);
856 /**
857 * Visit a parse tree produced by {@link JavaLanguageParser#resourceDeclaration}.
858 * @param ctx the parse tree
859 * @return the visitor result
860 */
861 T visitResourceDeclaration(JavaLanguageParser.ResourceDeclarationContext ctx);
862 /**
863 * Visit a parse tree produced by {@link JavaLanguageParser#variableAccess}.
864 * @param ctx the parse tree
865 * @return the visitor result
866 */
867 T visitVariableAccess(JavaLanguageParser.VariableAccessContext ctx);
868 /**
869 * Visit a parse tree produced by {@link JavaLanguageParser#fieldAccessNoIdent}.
870 * @param ctx the parse tree
871 * @return the visitor result
872 */
873 T visitFieldAccessNoIdent(JavaLanguageParser.FieldAccessNoIdentContext ctx);
874 /**
875 * Visit a parse tree produced by {@link JavaLanguageParser#switchBlockStatementGroup}.
876 * @param ctx the parse tree
877 * @return the visitor result
878 */
879 T visitSwitchBlockStatementGroup(JavaLanguageParser.SwitchBlockStatementGroupContext ctx);
880 /**
881 * Visit a parse tree produced by the {@code caseLabel}
882 * labeled alternative in {@link JavaLanguageParser#switchLabel}.
883 * @param ctx the parse tree
884 * @return the visitor result
885 */
886 T visitCaseLabel(JavaLanguageParser.CaseLabelContext ctx);
887 /**
888 * Visit a parse tree produced by the {@code defaultLabel}
889 * labeled alternative in {@link JavaLanguageParser#switchLabel}.
890 * @param ctx the parse tree
891 * @return the visitor result
892 */
893 T visitDefaultLabel(JavaLanguageParser.DefaultLabelContext ctx);
894 /**
895 * Visit a parse tree produced by {@link JavaLanguageParser#caseConstants}.
896 * @param ctx the parse tree
897 * @return the visitor result
898 */
899 T visitCaseConstants(JavaLanguageParser.CaseConstantsContext ctx);
900 /**
901 * Visit a parse tree produced by {@link JavaLanguageParser#caseConstant}.
902 * @param ctx the parse tree
903 * @return the visitor result
904 */
905 T visitCaseConstant(JavaLanguageParser.CaseConstantContext ctx);
906 /**
907 * Visit a parse tree produced by the {@code enhancedFor}
908 * labeled alternative in {@link JavaLanguageParser#forControl}.
909 * @param ctx the parse tree
910 * @return the visitor result
911 */
912 T visitEnhancedFor(JavaLanguageParser.EnhancedForContext ctx);
913 /**
914 * Visit a parse tree produced by the {@code forFor}
915 * labeled alternative in {@link JavaLanguageParser#forControl}.
916 * @param ctx the parse tree
917 * @return the visitor result
918 */
919 T visitForFor(JavaLanguageParser.ForForContext ctx);
920 /**
921 * Visit a parse tree produced by {@link JavaLanguageParser#forInit}.
922 * @param ctx the parse tree
923 * @return the visitor result
924 */
925 T visitForInit(JavaLanguageParser.ForInitContext ctx);
926 /**
927 * Visit a parse tree produced by {@link JavaLanguageParser#enhancedForControl}.
928 * @param ctx the parse tree
929 * @return the visitor result
930 */
931 T visitEnhancedForControl(JavaLanguageParser.EnhancedForControlContext ctx);
932 /**
933 * Visit a parse tree produced by {@link JavaLanguageParser#enhancedForControlWithRecordPattern}.
934 * @param ctx the parse tree
935 * @return the visitor result
936 */
937 T visitEnhancedForControlWithRecordPattern(JavaLanguageParser.EnhancedForControlWithRecordPatternContext ctx);
938 /**
939 * Visit a parse tree produced by {@link JavaLanguageParser#parExpression}.
940 * @param ctx the parse tree
941 * @return the visitor result
942 */
943 T visitParExpression(JavaLanguageParser.ParExpressionContext ctx);
944 /**
945 * Visit a parse tree produced by {@link JavaLanguageParser#expressionList}.
946 * @param ctx the parse tree
947 * @return the visitor result
948 */
949 T visitExpressionList(JavaLanguageParser.ExpressionListContext ctx);
950 /**
951 * Visit a parse tree produced by {@link JavaLanguageParser#expression}.
952 * @param ctx the parse tree
953 * @return the visitor result
954 */
955 T visitExpression(JavaLanguageParser.ExpressionContext ctx);
956 /**
957 * Visit a parse tree produced by the {@code refOp}
958 * labeled alternative in {@link JavaLanguageParser#expr}.
959 * @param ctx the parse tree
960 * @return the visitor result
961 */
962 T visitRefOp(JavaLanguageParser.RefOpContext ctx);
963 /**
964 * Visit a parse tree produced by the {@code superExp}
965 * labeled alternative in {@link JavaLanguageParser#expr}.
966 * @param ctx the parse tree
967 * @return the visitor result
968 */
969 T visitSuperExp(JavaLanguageParser.SuperExpContext ctx);
970 /**
971 * Visit a parse tree produced by the {@code instanceOfExp}
972 * labeled alternative in {@link JavaLanguageParser#expr}.
973 * @param ctx the parse tree
974 * @return the visitor result
975 */
976 T visitInstanceOfExp(JavaLanguageParser.InstanceOfExpContext ctx);
977 /**
978 * Visit a parse tree produced by the {@code bitShift}
979 * labeled alternative in {@link JavaLanguageParser#expr}.
980 * @param ctx the parse tree
981 * @return the visitor result
982 */
983 T visitBitShift(JavaLanguageParser.BitShiftContext ctx);
984 /**
985 * Visit a parse tree produced by the {@code newExp}
986 * labeled alternative in {@link JavaLanguageParser#expr}.
987 * @param ctx the parse tree
988 * @return the visitor result
989 */
990 T visitNewExp(JavaLanguageParser.NewExpContext ctx);
991 /**
992 * Visit a parse tree produced by the {@code prefix}
993 * labeled alternative in {@link JavaLanguageParser#expr}.
994 * @param ctx the parse tree
995 * @return the visitor result
996 */
997 T visitPrefix(JavaLanguageParser.PrefixContext ctx);
998 /**
999 * Visit a parse tree produced by the {@code castExp}
1000 * labeled alternative in {@link JavaLanguageParser#expr}.
1001 * @param ctx the parse tree
1002 * @return the visitor result
1003 */
1004 T visitCastExp(JavaLanguageParser.CastExpContext ctx);
1005 /**
1006 * Visit a parse tree produced by the {@code indexOp}
1007 * labeled alternative in {@link JavaLanguageParser#expr}.
1008 * @param ctx the parse tree
1009 * @return the visitor result
1010 */
1011 T visitIndexOp(JavaLanguageParser.IndexOpContext ctx);
1012 /**
1013 * Visit a parse tree produced by the {@code invOp}
1014 * labeled alternative in {@link JavaLanguageParser#expr}.
1015 * @param ctx the parse tree
1016 * @return the visitor result
1017 */
1018 T visitInvOp(JavaLanguageParser.InvOpContext ctx);
1019 /**
1020 * Visit a parse tree produced by the {@code initExp}
1021 * labeled alternative in {@link JavaLanguageParser#expr}.
1022 * @param ctx the parse tree
1023 * @return the visitor result
1024 */
1025 T visitInitExp(JavaLanguageParser.InitExpContext ctx);
1026 /**
1027 * Visit a parse tree produced by the {@code simpleMethodCall}
1028 * labeled alternative in {@link JavaLanguageParser#expr}.
1029 * @param ctx the parse tree
1030 * @return the visitor result
1031 */
1032 T visitSimpleMethodCall(JavaLanguageParser.SimpleMethodCallContext ctx);
1033 /**
1034 * Visit a parse tree produced by the {@code lambdaExp}
1035 * labeled alternative in {@link JavaLanguageParser#expr}.
1036 * @param ctx the parse tree
1037 * @return the visitor result
1038 */
1039 T visitLambdaExp(JavaLanguageParser.LambdaExpContext ctx);
1040 /**
1041 * Visit a parse tree produced by the {@code thisExp}
1042 * labeled alternative in {@link JavaLanguageParser#expr}.
1043 * @param ctx the parse tree
1044 * @return the visitor result
1045 */
1046 T visitThisExp(JavaLanguageParser.ThisExpContext ctx);
1047 /**
1048 * Visit a parse tree produced by the {@code primaryExp}
1049 * labeled alternative in {@link JavaLanguageParser#expr}.
1050 * @param ctx the parse tree
1051 * @return the visitor result
1052 */
1053 T visitPrimaryExp(JavaLanguageParser.PrimaryExpContext ctx);
1054 /**
1055 * Visit a parse tree produced by the {@code postfix}
1056 * labeled alternative in {@link JavaLanguageParser#expr}.
1057 * @param ctx the parse tree
1058 * @return the visitor result
1059 */
1060 T visitPostfix(JavaLanguageParser.PostfixContext ctx);
1061 /**
1062 * Visit a parse tree produced by the {@code methodRef}
1063 * labeled alternative in {@link JavaLanguageParser#expr}.
1064 * @param ctx the parse tree
1065 * @return the visitor result
1066 */
1067 T visitMethodRef(JavaLanguageParser.MethodRefContext ctx);
1068 /**
1069 * Visit a parse tree produced by the {@code ternaryOp}
1070 * labeled alternative in {@link JavaLanguageParser#expr}.
1071 * @param ctx the parse tree
1072 * @return the visitor result
1073 */
1074 T visitTernaryOp(JavaLanguageParser.TernaryOpContext ctx);
1075 /**
1076 * Visit a parse tree produced by the {@code binOp}
1077 * labeled alternative in {@link JavaLanguageParser#expr}.
1078 * @param ctx the parse tree
1079 * @return the visitor result
1080 */
1081 T visitBinOp(JavaLanguageParser.BinOpContext ctx);
1082 /**
1083 * Visit a parse tree produced by the {@code methodCall}
1084 * labeled alternative in {@link JavaLanguageParser#expr}.
1085 * @param ctx the parse tree
1086 * @return the visitor result
1087 */
1088 T visitMethodCall(JavaLanguageParser.MethodCallContext ctx);
1089 /**
1090 * Visit a parse tree produced by {@link JavaLanguageParser#typeCastParameters}.
1091 * @param ctx the parse tree
1092 * @return the visitor result
1093 */
1094 T visitTypeCastParameters(JavaLanguageParser.TypeCastParametersContext ctx);
1095 /**
1096 * Visit a parse tree produced by the {@code singleLambdaParam}
1097 * labeled alternative in {@link JavaLanguageParser#lambdaParameters}.
1098 * @param ctx the parse tree
1099 * @return the visitor result
1100 */
1101 T visitSingleLambdaParam(JavaLanguageParser.SingleLambdaParamContext ctx);
1102 /**
1103 * Visit a parse tree produced by the {@code formalLambdaParam}
1104 * labeled alternative in {@link JavaLanguageParser#lambdaParameters}.
1105 * @param ctx the parse tree
1106 * @return the visitor result
1107 */
1108 T visitFormalLambdaParam(JavaLanguageParser.FormalLambdaParamContext ctx);
1109 /**
1110 * Visit a parse tree produced by the {@code multiLambdaParam}
1111 * labeled alternative in {@link JavaLanguageParser#lambdaParameters}.
1112 * @param ctx the parse tree
1113 * @return the visitor result
1114 */
1115 T visitMultiLambdaParam(JavaLanguageParser.MultiLambdaParamContext ctx);
1116 /**
1117 * Visit a parse tree produced by {@link JavaLanguageParser#multiLambdaParams}.
1118 * @param ctx the parse tree
1119 * @return the visitor result
1120 */
1121 T visitMultiLambdaParams(JavaLanguageParser.MultiLambdaParamsContext ctx);
1122 /**
1123 * Visit a parse tree produced by the {@code switchPrimary}
1124 * labeled alternative in {@link JavaLanguageParser#primary}.
1125 * @param ctx the parse tree
1126 * @return the visitor result
1127 */
1128 T visitSwitchPrimary(JavaLanguageParser.SwitchPrimaryContext ctx);
1129 /**
1130 * Visit a parse tree produced by the {@code parenPrimary}
1131 * labeled alternative in {@link JavaLanguageParser#primary}.
1132 * @param ctx the parse tree
1133 * @return the visitor result
1134 */
1135 T visitParenPrimary(JavaLanguageParser.ParenPrimaryContext ctx);
1136 /**
1137 * Visit a parse tree produced by the {@code tokenPrimary}
1138 * labeled alternative in {@link JavaLanguageParser#primary}.
1139 * @param ctx the parse tree
1140 * @return the visitor result
1141 */
1142 T visitTokenPrimary(JavaLanguageParser.TokenPrimaryContext ctx);
1143 /**
1144 * Visit a parse tree produced by the {@code literalPrimary}
1145 * labeled alternative in {@link JavaLanguageParser#primary}.
1146 * @param ctx the parse tree
1147 * @return the visitor result
1148 */
1149 T visitLiteralPrimary(JavaLanguageParser.LiteralPrimaryContext ctx);
1150 /**
1151 * Visit a parse tree produced by the {@code classRefPrimary}
1152 * labeled alternative in {@link JavaLanguageParser#primary}.
1153 * @param ctx the parse tree
1154 * @return the visitor result
1155 */
1156 T visitClassRefPrimary(JavaLanguageParser.ClassRefPrimaryContext ctx);
1157 /**
1158 * Visit a parse tree produced by the {@code primitivePrimary}
1159 * labeled alternative in {@link JavaLanguageParser#primary}.
1160 * @param ctx the parse tree
1161 * @return the visitor result
1162 */
1163 T visitPrimitivePrimary(JavaLanguageParser.PrimitivePrimaryContext ctx);
1164 /**
1165 * Visit a parse tree produced by {@link JavaLanguageParser#classType}.
1166 * @param ctx the parse tree
1167 * @return the visitor result
1168 */
1169 T visitClassType(JavaLanguageParser.ClassTypeContext ctx);
1170 /**
1171 * Visit a parse tree produced by {@link JavaLanguageParser#creator}.
1172 * @param ctx the parse tree
1173 * @return the visitor result
1174 */
1175 T visitCreator(JavaLanguageParser.CreatorContext ctx);
1176 /**
1177 * Visit a parse tree produced by the {@code createdNameObject}
1178 * labeled alternative in {@link JavaLanguageParser#createdName}.
1179 * @param ctx the parse tree
1180 * @return the visitor result
1181 */
1182 T visitCreatedNameObject(JavaLanguageParser.CreatedNameObjectContext ctx);
1183 /**
1184 * Visit a parse tree produced by the {@code createdNamePrimitive}
1185 * labeled alternative in {@link JavaLanguageParser#createdName}.
1186 * @param ctx the parse tree
1187 * @return the visitor result
1188 */
1189 T visitCreatedNamePrimitive(JavaLanguageParser.CreatedNamePrimitiveContext ctx);
1190 /**
1191 * Visit a parse tree produced by {@link JavaLanguageParser#createdNameExtended}.
1192 * @param ctx the parse tree
1193 * @return the visitor result
1194 */
1195 T visitCreatedNameExtended(JavaLanguageParser.CreatedNameExtendedContext ctx);
1196 /**
1197 * Visit a parse tree produced by {@link JavaLanguageParser#innerCreator}.
1198 * @param ctx the parse tree
1199 * @return the visitor result
1200 */
1201 T visitInnerCreator(JavaLanguageParser.InnerCreatorContext ctx);
1202 /**
1203 * Visit a parse tree produced by {@link JavaLanguageParser#arrayCreatorRest}.
1204 * @param ctx the parse tree
1205 * @return the visitor result
1206 */
1207 T visitArrayCreatorRest(JavaLanguageParser.ArrayCreatorRestContext ctx);
1208 /**
1209 * Visit a parse tree produced by {@link JavaLanguageParser#bracketsWithExp}.
1210 * @param ctx the parse tree
1211 * @return the visitor result
1212 */
1213 T visitBracketsWithExp(JavaLanguageParser.BracketsWithExpContext ctx);
1214 /**
1215 * Visit a parse tree produced by {@link JavaLanguageParser#classCreatorRest}.
1216 * @param ctx the parse tree
1217 * @return the visitor result
1218 */
1219 T visitClassCreatorRest(JavaLanguageParser.ClassCreatorRestContext ctx);
1220 /**
1221 * Visit a parse tree produced by the {@code diamond}
1222 * labeled alternative in {@link JavaLanguageParser#typeArgumentsOrDiamond}.
1223 * @param ctx the parse tree
1224 * @return the visitor result
1225 */
1226 T visitDiamond(JavaLanguageParser.DiamondContext ctx);
1227 /**
1228 * Visit a parse tree produced by the {@code typeArgs}
1229 * labeled alternative in {@link JavaLanguageParser#typeArgumentsOrDiamond}.
1230 * @param ctx the parse tree
1231 * @return the visitor result
1232 */
1233 T visitTypeArgs(JavaLanguageParser.TypeArgsContext ctx);
1234 /**
1235 * Visit a parse tree produced by the {@code nonWildcardDiamond}
1236 * labeled alternative in {@link JavaLanguageParser#nonWildcardTypeArgumentsOrDiamond}.
1237 * @param ctx the parse tree
1238 * @return the visitor result
1239 */
1240 T visitNonWildcardDiamond(JavaLanguageParser.NonWildcardDiamondContext ctx);
1241 /**
1242 * Visit a parse tree produced by the {@code nonWildcardTypeArgs}
1243 * labeled alternative in {@link JavaLanguageParser#nonWildcardTypeArgumentsOrDiamond}.
1244 * @param ctx the parse tree
1245 * @return the visitor result
1246 */
1247 T visitNonWildcardTypeArgs(JavaLanguageParser.NonWildcardTypeArgsContext ctx);
1248 /**
1249 * Visit a parse tree produced by {@link JavaLanguageParser#nonWildcardTypeArguments}.
1250 * @param ctx the parse tree
1251 * @return the visitor result
1252 */
1253 T visitNonWildcardTypeArguments(JavaLanguageParser.NonWildcardTypeArgumentsContext ctx);
1254 /**
1255 * Visit a parse tree produced by {@link JavaLanguageParser#typeArgumentsTypeList}.
1256 * @param ctx the parse tree
1257 * @return the visitor result
1258 */
1259 T visitTypeArgumentsTypeList(JavaLanguageParser.TypeArgumentsTypeListContext ctx);
1260 /**
1261 * Visit a parse tree produced by {@link JavaLanguageParser#typeList}.
1262 * @param ctx the parse tree
1263 * @return the visitor result
1264 */
1265 T visitTypeList(JavaLanguageParser.TypeListContext ctx);
1266 /**
1267 * Visit a parse tree produced by {@link JavaLanguageParser#typeType}.
1268 * @param ctx the parse tree
1269 * @return the visitor result
1270 */
1271 T visitTypeType(JavaLanguageParser.TypeTypeContext ctx);
1272 /**
1273 * Visit a parse tree produced by {@link JavaLanguageParser#classOrInterfaceOrPrimitiveType}.
1274 * @param ctx the parse tree
1275 * @return the visitor result
1276 */
1277 T visitClassOrInterfaceOrPrimitiveType(JavaLanguageParser.ClassOrInterfaceOrPrimitiveTypeContext ctx);
1278 /**
1279 * Visit a parse tree produced by {@link JavaLanguageParser#arrayDeclarator}.
1280 * @param ctx the parse tree
1281 * @return the visitor result
1282 */
1283 T visitArrayDeclarator(JavaLanguageParser.ArrayDeclaratorContext ctx);
1284 /**
1285 * Visit a parse tree produced by {@link JavaLanguageParser#primitiveType}.
1286 * @param ctx the parse tree
1287 * @return the visitor result
1288 */
1289 T visitPrimitiveType(JavaLanguageParser.PrimitiveTypeContext ctx);
1290 /**
1291 * Visit a parse tree produced by {@link JavaLanguageParser#typeArguments}.
1292 * @param ctx the parse tree
1293 * @return the visitor result
1294 */
1295 T visitTypeArguments(JavaLanguageParser.TypeArgumentsContext ctx);
1296 /**
1297 * Visit a parse tree produced by the {@code superSuffixSimple}
1298 * labeled alternative in {@link JavaLanguageParser#superSuffix}.
1299 * @param ctx the parse tree
1300 * @return the visitor result
1301 */
1302 T visitSuperSuffixSimple(JavaLanguageParser.SuperSuffixSimpleContext ctx);
1303 /**
1304 * Visit a parse tree produced by the {@code superSuffixDot}
1305 * labeled alternative in {@link JavaLanguageParser#superSuffix}.
1306 * @param ctx the parse tree
1307 * @return the visitor result
1308 */
1309 T visitSuperSuffixDot(JavaLanguageParser.SuperSuffixDotContext ctx);
1310 /**
1311 * Visit a parse tree produced by {@link JavaLanguageParser#arguments}.
1312 * @param ctx the parse tree
1313 * @return the visitor result
1314 */
1315 T visitArguments(JavaLanguageParser.ArgumentsContext ctx);
1316 /**
1317 * Visit a parse tree produced by {@link JavaLanguageParser#pattern}.
1318 * @param ctx the parse tree
1319 * @return the visitor result
1320 */
1321 T visitPattern(JavaLanguageParser.PatternContext ctx);
1322 /**
1323 * Visit a parse tree produced by {@link JavaLanguageParser#innerPattern}.
1324 * @param ctx the parse tree
1325 * @return the visitor result
1326 */
1327 T visitInnerPattern(JavaLanguageParser.InnerPatternContext ctx);
1328 /**
1329 * Visit a parse tree produced by {@link JavaLanguageParser#guardedPattern}.
1330 * @param ctx the parse tree
1331 * @return the visitor result
1332 */
1333 T visitGuardedPattern(JavaLanguageParser.GuardedPatternContext ctx);
1334 /**
1335 * Visit a parse tree produced by {@link JavaLanguageParser#guard}.
1336 * @param ctx the parse tree
1337 * @return the visitor result
1338 */
1339 T visitGuard(JavaLanguageParser.GuardContext ctx);
1340 /**
1341 * Visit a parse tree produced by the {@code patternVariableDef}
1342 * labeled alternative in {@link JavaLanguageParser#primaryPattern}.
1343 * @param ctx the parse tree
1344 * @return the visitor result
1345 */
1346 T visitPatternVariableDef(JavaLanguageParser.PatternVariableDefContext ctx);
1347 /**
1348 * Visit a parse tree produced by the {@code recordPatternDef}
1349 * labeled alternative in {@link JavaLanguageParser#primaryPattern}.
1350 * @param ctx the parse tree
1351 * @return the visitor result
1352 */
1353 T visitRecordPatternDef(JavaLanguageParser.RecordPatternDefContext ctx);
1354 /**
1355 * Visit a parse tree produced by the {@code typePatternDef}
1356 * labeled alternative in {@link JavaLanguageParser#typePattern}.
1357 * @param ctx the parse tree
1358 * @return the visitor result
1359 */
1360 T visitTypePatternDef(JavaLanguageParser.TypePatternDefContext ctx);
1361 /**
1362 * Visit a parse tree produced by the {@code unnamedPatternDef}
1363 * labeled alternative in {@link JavaLanguageParser#typePattern}.
1364 * @param ctx the parse tree
1365 * @return the visitor result
1366 */
1367 T visitUnnamedPatternDef(JavaLanguageParser.UnnamedPatternDefContext ctx);
1368 /**
1369 * Visit a parse tree produced by {@link JavaLanguageParser#recordPattern}.
1370 * @param ctx the parse tree
1371 * @return the visitor result
1372 */
1373 T visitRecordPattern(JavaLanguageParser.RecordPatternContext ctx);
1374 /**
1375 * Visit a parse tree produced by {@link JavaLanguageParser#recordComponentPatternList}.
1376 * @param ctx the parse tree
1377 * @return the visitor result
1378 */
1379 T visitRecordComponentPatternList(JavaLanguageParser.RecordComponentPatternListContext ctx);
1380 /**
1381 * Visit a parse tree produced by {@link JavaLanguageParser#permittedSubclassesAndInterfaces}.
1382 * @param ctx the parse tree
1383 * @return the visitor result
1384 */
1385 T visitPermittedSubclassesAndInterfaces(JavaLanguageParser.PermittedSubclassesAndInterfacesContext ctx);
1386 /**
1387 * Visit a parse tree produced by {@link JavaLanguageParser#id}.
1388 * @param ctx the parse tree
1389 * @return the visitor result
1390 */
1391 T visitId(JavaLanguageParser.IdContext ctx);
1392 }