Class JavaAstVisitor
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<DetailAstImpl>
-
- com.puppycrawl.tools.checkstyle.JavaAstVisitor
-
- All Implemented Interfaces:
JavaLanguageParserVisitor<DetailAstImpl>,org.antlr.v4.runtime.tree.ParseTreeVisitor<DetailAstImpl>
public final class JavaAstVisitor extends JavaLanguageParserBaseVisitor<DetailAstImpl>
Visitor class used to build Checkstyle's Java AST from the parse tree produced byJavaLanguageParser. In eachvisit...method, we visit the children of a node (which correspond to subrules) or create terminal nodes (tokens), and return a subtree as a result.Example:
The following package declaration:
package com.puppycrawl.tools.checkstyle;
Will be parsed by the
packageDeclarationrule fromJavaLanguageParser.g4:packageDeclaration : annotations[true] LITERAL_PACKAGE qualifiedName SEMI ;We override the
visitPackageDeclarationmethod generated by ANTLR inJavaLanguageParseratvisitPackageDeclaration(JavaLanguageParser.PackageDeclarationContext)to create a subtree based on the subrules and tokens found in thepackageDeclarationsubrule accordingly, thus producing the following AST:PACKAGE_DEF -> package |--ANNOTATIONS -> ANNOTATIONS |--DOT -> . | |--DOT -> . | | |--DOT -> . | | | |--IDENT -> com | | | `--IDENT -> puppycrawl | | `--IDENT -> tools | `--IDENT -> checkstyle `--SEMI -> ;
See https://github.com/checkstyle/checkstyle/pull/10434 for a good example of how to make changes to Checkstyle's grammar and AST.
The order of
visit...methods inJavaAstVisitor.javaand production rules inJavaLanguageParser.g4should be consistent to ease maintenance.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classJavaAstVisitor.DetailAstPairUsed to swap and organize DetailAstImpl subtrees.
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringLEFT_SHIFTString representation of the left shift operator.private static java.lang.StringRIGHT_SHIFTString representation of the right shift operator.private org.antlr.v4.runtime.BufferedTokenStreamtokensToken stream to check for hidden tokens.private static java.lang.StringUNSIGNED_RIGHT_SHIFTString representation of the unsigned right shift operator.
-
Constructor Summary
Constructors Constructor Description JavaAstVisitor(org.antlr.v4.runtime.CommonTokenStream tokenStream)Constructs a JavaAstVisitor with given token stream.
-
Method Summary
-
Methods inherited from class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
visitAnnotationConstantRest, visitClassDef, visitClassOrInterfaceOrPrimitiveType, visitClassOrInterfaceTypeExtended, visitClassType, visitCreatedNameExtended, visitFieldAccessNoIdent, visitInterfaceMemberDeclaration, visitLambdaBody, visitLiteralPrimary, visitLocalType, visitLocalTypeDeclaration, visitLocalVariableDeclaration, visitMemberDeclaration, visitNonWildcardTypeArgs, visitPatternVariableDef, visitQualifiedNameExtended, visitRecordBodyDeclaration, visitResource, visitStat, visitSuperSuffixSimple, visitSwitchLabeledRule, visitSwitchPrimary, visitSwitchStat, visitTypes, visitVariableInitializer
-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Field Detail
-
LEFT_SHIFT
private static final java.lang.String LEFT_SHIFT
String representation of the left shift operator.- See Also:
- Constant Field Values
-
UNSIGNED_RIGHT_SHIFT
private static final java.lang.String UNSIGNED_RIGHT_SHIFT
String representation of the unsigned right shift operator.- See Also:
- Constant Field Values
-
RIGHT_SHIFT
private static final java.lang.String RIGHT_SHIFT
String representation of the right shift operator.- See Also:
- Constant Field Values
-
tokens
private final org.antlr.v4.runtime.BufferedTokenStream tokens
Token stream to check for hidden tokens.
-
-
Method Detail
-
visitCompilationUnit
public DetailAstImpl visitCompilationUnit(JavaLanguageParser.CompilationUnitContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.compilationUnit().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCompilationUnitin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCompilationUnitin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPackageDeclaration
public DetailAstImpl visitPackageDeclaration(JavaLanguageParser.PackageDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.packageDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPackageDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPackageDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImportDec
public DetailAstImpl visitImportDec(JavaLanguageParser.ImportDecContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theimportDeclabeled alternative inJavaLanguageParser.importDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitImportDecin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitImportDecin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSingleSemiImport
public DetailAstImpl visitSingleSemiImport(JavaLanguageParser.SingleSemiImportContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thesingleSemiImportlabeled alternative inJavaLanguageParser.importDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSingleSemiImportin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSingleSemiImportin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeDeclaration
public DetailAstImpl visitTypeDeclaration(JavaLanguageParser.TypeDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModifier
public DetailAstImpl visitModifier(JavaLanguageParser.ModifierContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.modifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitModifierin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitModifierin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableModifier
public DetailAstImpl visitVariableModifier(JavaLanguageParser.VariableModifierContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.variableModifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableModifierin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitVariableModifierin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassDeclaration
public DetailAstImpl visitClassDeclaration(JavaLanguageParser.ClassDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.classDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitClassDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRecordDeclaration
public DetailAstImpl visitRecordDeclaration(JavaLanguageParser.RecordDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.recordDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRecordDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitRecordDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRecordComponentsList
public DetailAstImpl visitRecordComponentsList(JavaLanguageParser.RecordComponentsListContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.recordComponentsList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRecordComponentsListin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitRecordComponentsListin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRecordComponents
public DetailAstImpl visitRecordComponents(JavaLanguageParser.RecordComponentsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.recordComponents().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRecordComponentsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitRecordComponentsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRecordComponent
public DetailAstImpl visitRecordComponent(JavaLanguageParser.RecordComponentContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.recordComponent().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRecordComponentin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitRecordComponentin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLastRecordComponent
public DetailAstImpl visitLastRecordComponent(JavaLanguageParser.LastRecordComponentContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.lastRecordComponent().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLastRecordComponentin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitLastRecordComponentin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRecordBody
public DetailAstImpl visitRecordBody(JavaLanguageParser.RecordBodyContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.recordBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRecordBodyin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitRecordBodyin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCompactConstructorDeclaration
public DetailAstImpl visitCompactConstructorDeclaration(JavaLanguageParser.CompactConstructorDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.compactConstructorDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCompactConstructorDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCompactConstructorDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassExtends
public DetailAstImpl visitClassExtends(JavaLanguageParser.ClassExtendsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.classExtends().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassExtendsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitClassExtendsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImplementsClause
public DetailAstImpl visitImplementsClause(JavaLanguageParser.ImplementsClauseContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.implementsClause().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitImplementsClausein interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitImplementsClausein classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeParameters
public DetailAstImpl visitTypeParameters(JavaLanguageParser.TypeParametersContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeParametersin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeParametersin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeParameter
public DetailAstImpl visitTypeParameter(JavaLanguageParser.TypeParameterContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeParameter().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeParameterin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeParameterin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeUpperBounds
public DetailAstImpl visitTypeUpperBounds(JavaLanguageParser.TypeUpperBoundsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeUpperBounds().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeUpperBoundsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeUpperBoundsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeBound
public DetailAstImpl visitTypeBound(JavaLanguageParser.TypeBoundContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeBound().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeBoundin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeBoundin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeBoundType
public DetailAstImpl visitTypeBoundType(JavaLanguageParser.TypeBoundTypeContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeBoundType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeBoundTypein interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeBoundTypein classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumDeclaration
public DetailAstImpl visitEnumDeclaration(JavaLanguageParser.EnumDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.enumDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEnumDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumBody
public DetailAstImpl visitEnumBody(JavaLanguageParser.EnumBodyContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.enumBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumBodyin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEnumBodyin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumConstants
public DetailAstImpl visitEnumConstants(JavaLanguageParser.EnumConstantsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.enumConstants().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumConstantsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEnumConstantsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumConstant
public DetailAstImpl visitEnumConstant(JavaLanguageParser.EnumConstantContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.enumConstant().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumConstantin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEnumConstantin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumBodyDeclarations
public DetailAstImpl visitEnumBodyDeclarations(JavaLanguageParser.EnumBodyDeclarationsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.enumBodyDeclarations().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumBodyDeclarationsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEnumBodyDeclarationsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInterfaceDeclaration
public DetailAstImpl visitInterfaceDeclaration(JavaLanguageParser.InterfaceDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.interfaceDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInterfaceDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInterfaceDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInterfaceExtends
public DetailAstImpl visitInterfaceExtends(JavaLanguageParser.InterfaceExtendsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.interfaceExtends().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInterfaceExtendsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInterfaceExtendsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassBody
public DetailAstImpl visitClassBody(JavaLanguageParser.ClassBodyContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.classBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassBodyin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitClassBodyin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInterfaceBody
public DetailAstImpl visitInterfaceBody(JavaLanguageParser.InterfaceBodyContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.interfaceBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInterfaceBodyin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInterfaceBodyin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEmptyClass
public DetailAstImpl visitEmptyClass(JavaLanguageParser.EmptyClassContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theemptyClasslabeled alternative inJavaLanguageParser.classBodyDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEmptyClassin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEmptyClassin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassBlock
public DetailAstImpl visitClassBlock(JavaLanguageParser.ClassBlockContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theclassBlocklabeled alternative inJavaLanguageParser.classBodyDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassBlockin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitClassBlockin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMethodDeclaration
public DetailAstImpl visitMethodDeclaration(JavaLanguageParser.MethodDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.methodDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMethodDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitMethodDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMethodBody
public DetailAstImpl visitMethodBody(JavaLanguageParser.MethodBodyContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.methodBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMethodBodyin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitMethodBodyin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitThrowsList
public DetailAstImpl visitThrowsList(JavaLanguageParser.ThrowsListContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.throwsList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitThrowsListin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitThrowsListin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConstructorDeclaration
public DetailAstImpl visitConstructorDeclaration(JavaLanguageParser.ConstructorDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.constructorDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConstructorDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitConstructorDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFieldDeclaration
public DetailAstImpl visitFieldDeclaration(JavaLanguageParser.FieldDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.fieldDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFieldDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitFieldDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInterfaceBodyDeclaration
public DetailAstImpl visitInterfaceBodyDeclaration(JavaLanguageParser.InterfaceBodyDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.interfaceBodyDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInterfaceBodyDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInterfaceBodyDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInterfaceMethodDeclaration
public DetailAstImpl visitInterfaceMethodDeclaration(JavaLanguageParser.InterfaceMethodDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.interfaceMethodDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInterfaceMethodDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInterfaceMethodDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableDeclarators
public DetailAstImpl visitVariableDeclarators(JavaLanguageParser.VariableDeclaratorsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.variableDeclarators(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>, com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeTypeContext).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableDeclaratorsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitVariableDeclaratorsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableDeclarator
public DetailAstImpl visitVariableDeclarator(JavaLanguageParser.VariableDeclaratorContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.variableDeclarator(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>, com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeTypeContext).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableDeclaratorin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitVariableDeclaratorin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableDeclaratorId
public DetailAstImpl visitVariableDeclaratorId(JavaLanguageParser.VariableDeclaratorIdContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.variableDeclaratorId(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.VariableModifierContext>, org.antlr.v4.runtime.ParserRuleContext).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableDeclaratorIdin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitVariableDeclaratorIdin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArrayInitializer
public DetailAstImpl visitArrayInitializer(JavaLanguageParser.ArrayInitializerContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.arrayInitializer().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArrayInitializerin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitArrayInitializerin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassOrInterfaceType
public DetailAstImpl visitClassOrInterfaceType(JavaLanguageParser.ClassOrInterfaceTypeContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.classOrInterfaceType(boolean).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassOrInterfaceTypein interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitClassOrInterfaceTypein classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSimpleTypeArgument
public DetailAstImpl visitSimpleTypeArgument(JavaLanguageParser.SimpleTypeArgumentContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thesimpleTypeArgumentlabeled alternative inJavaLanguageParser.typeArgument().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSimpleTypeArgumentin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSimpleTypeArgumentin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWildCardTypeArgument
public DetailAstImpl visitWildCardTypeArgument(JavaLanguageParser.WildCardTypeArgumentContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thewildCardTypeArgumentlabeled alternative inJavaLanguageParser.typeArgument().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitWildCardTypeArgumentin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitWildCardTypeArgumentin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQualifiedNameList
public DetailAstImpl visitQualifiedNameList(JavaLanguageParser.QualifiedNameListContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.qualifiedNameList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQualifiedNameListin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitQualifiedNameListin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFormalParameters
public DetailAstImpl visitFormalParameters(JavaLanguageParser.FormalParametersContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.formalParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFormalParametersin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitFormalParametersin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFormalParameterList
public DetailAstImpl visitFormalParameterList(JavaLanguageParser.FormalParameterListContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.formalParameterList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFormalParameterListin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitFormalParameterListin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFormalParameter
public DetailAstImpl visitFormalParameter(JavaLanguageParser.FormalParameterContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.formalParameter().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFormalParameterin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitFormalParameterin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLastFormalParameter
public DetailAstImpl visitLastFormalParameter(JavaLanguageParser.LastFormalParameterContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.lastFormalParameter().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLastFormalParameterin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitLastFormalParameterin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQualifiedName
public DetailAstImpl visitQualifiedName(JavaLanguageParser.QualifiedNameContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.qualifiedName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQualifiedNamein interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitQualifiedNamein classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLiteral
public DetailAstImpl visitLiteral(JavaLanguageParser.LiteralContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLiteralin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitLiteralin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIntegerLiteral
public DetailAstImpl visitIntegerLiteral(JavaLanguageParser.IntegerLiteralContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.integerLiteral().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIntegerLiteralin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitIntegerLiteralin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFloatLiteral
public DetailAstImpl visitFloatLiteral(JavaLanguageParser.FloatLiteralContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.floatLiteral().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFloatLiteralin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitFloatLiteralin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTextBlockLiteral
public DetailAstImpl visitTextBlockLiteral(JavaLanguageParser.TextBlockLiteralContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.textBlockLiteral().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTextBlockLiteralin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTextBlockLiteralin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotations
public DetailAstImpl visitAnnotations(JavaLanguageParser.AnnotationsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.annotations(boolean).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAnnotationsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotation
public DetailAstImpl visitAnnotation(JavaLanguageParser.AnnotationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.annotation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAnnotationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElementValuePairs
public DetailAstImpl visitElementValuePairs(JavaLanguageParser.ElementValuePairsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.elementValuePairs().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValuePairsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitElementValuePairsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElementValuePair
public DetailAstImpl visitElementValuePair(JavaLanguageParser.ElementValuePairContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.elementValuePair().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValuePairin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitElementValuePairin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElementValue
public DetailAstImpl visitElementValue(JavaLanguageParser.ElementValueContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.elementValue().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValuein interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitElementValuein classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElementValueArrayInitializer
public DetailAstImpl visitElementValueArrayInitializer(JavaLanguageParser.ElementValueArrayInitializerContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.elementValueArrayInitializer().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValueArrayInitializerin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitElementValueArrayInitializerin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationTypeDeclaration
public DetailAstImpl visitAnnotationTypeDeclaration(JavaLanguageParser.AnnotationTypeDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.annotationTypeDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationTypeDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAnnotationTypeDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationTypeBody
public DetailAstImpl visitAnnotationTypeBody(JavaLanguageParser.AnnotationTypeBodyContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.annotationTypeBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationTypeBodyin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAnnotationTypeBodyin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationTypeElementDeclaration
public DetailAstImpl visitAnnotationTypeElementDeclaration(JavaLanguageParser.AnnotationTypeElementDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.annotationTypeElementDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationTypeElementDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAnnotationTypeElementDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationField
public DetailAstImpl visitAnnotationField(JavaLanguageParser.AnnotationFieldContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theannotationFieldlabeled alternative inJavaLanguageParser.annotationTypeElementRest(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationFieldin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAnnotationFieldin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationType
public DetailAstImpl visitAnnotationType(JavaLanguageParser.AnnotationTypeContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theannotationTypelabeled alternative inJavaLanguageParser.annotationTypeElementRest(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationTypein interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAnnotationTypein classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationMethodRest
public DetailAstImpl visitAnnotationMethodRest(JavaLanguageParser.AnnotationMethodRestContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.annotationMethodRest(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>, com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeTypeContext).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationMethodRestin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAnnotationMethodRestin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDefaultValue
public DetailAstImpl visitDefaultValue(JavaLanguageParser.DefaultValueContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.defaultValue().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDefaultValuein interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitDefaultValuein classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConstructorBlock
public DetailAstImpl visitConstructorBlock(JavaLanguageParser.ConstructorBlockContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.constructorBlock().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConstructorBlockin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitConstructorBlockin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExplicitCtorCall
public DetailAstImpl visitExplicitCtorCall(JavaLanguageParser.ExplicitCtorCallContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theexplicitCtorCalllabeled alternative inJavaLanguageParser.explicitConstructorInvocation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExplicitCtorCallin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitExplicitCtorCallin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrimaryCtorCall
public DetailAstImpl visitPrimaryCtorCall(JavaLanguageParser.PrimaryCtorCallContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theprimaryCtorCalllabeled alternative inJavaLanguageParser.explicitConstructorInvocation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrimaryCtorCallin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPrimaryCtorCallin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlock
public DetailAstImpl visitBlock(JavaLanguageParser.BlockContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.block().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBlockin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitBlockin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLocalVar
public DetailAstImpl visitLocalVar(JavaLanguageParser.LocalVarContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thelocalVarlabeled alternative inJavaLanguageParser.blockStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLocalVarin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitLocalVarin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlockStat
public DetailAstImpl visitBlockStat(JavaLanguageParser.BlockStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theblockStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBlockStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitBlockStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAssertExp
public DetailAstImpl visitAssertExp(JavaLanguageParser.AssertExpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theassertExplabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAssertExpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAssertExpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIfStat
public DetailAstImpl visitIfStat(JavaLanguageParser.IfStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theifStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIfStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitIfStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForStat
public DetailAstImpl visitForStat(JavaLanguageParser.ForStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theforStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitForStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWhileStat
public DetailAstImpl visitWhileStat(JavaLanguageParser.WhileStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thewhileStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitWhileStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitWhileStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDoStat
public DetailAstImpl visitDoStat(JavaLanguageParser.DoStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thedoStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDoStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitDoStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTryStat
public DetailAstImpl visitTryStat(JavaLanguageParser.TryStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thetryStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTryStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTryStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTryWithResourceStat
public DetailAstImpl visitTryWithResourceStat(JavaLanguageParser.TryWithResourceStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thetryWithResourceStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTryWithResourceStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTryWithResourceStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitYieldStat
public DetailAstImpl visitYieldStat(JavaLanguageParser.YieldStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theyieldStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitYieldStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitYieldStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSyncStat
public DetailAstImpl visitSyncStat(JavaLanguageParser.SyncStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thesyncStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSyncStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSyncStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReturnStat
public DetailAstImpl visitReturnStat(JavaLanguageParser.ReturnStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thereturnStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitReturnStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitReturnStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitThrowStat
public DetailAstImpl visitThrowStat(JavaLanguageParser.ThrowStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thethrowStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitThrowStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitThrowStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBreakStat
public DetailAstImpl visitBreakStat(JavaLanguageParser.BreakStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thebreakStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBreakStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitBreakStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitContinueStat
public DetailAstImpl visitContinueStat(JavaLanguageParser.ContinueStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thecontinueStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitContinueStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitContinueStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEmptyStat
public DetailAstImpl visitEmptyStat(JavaLanguageParser.EmptyStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theemptyStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEmptyStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEmptyStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpStat
public DetailAstImpl visitExpStat(JavaLanguageParser.ExpStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theexpStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExpStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitExpStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLabelStat
public DetailAstImpl visitLabelStat(JavaLanguageParser.LabelStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thelabelStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLabelStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitLabelStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSwitchExpressionOrStatement
public DetailAstImpl visitSwitchExpressionOrStatement(JavaLanguageParser.SwitchExpressionOrStatementContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.switchExpressionOrStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchExpressionOrStatementin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSwitchExpressionOrStatementin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSwitchRules
public DetailAstImpl visitSwitchRules(JavaLanguageParser.SwitchRulesContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theswitchRuleslabeled alternative inJavaLanguageParser.switchBlock().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchRulesin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSwitchRulesin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSwitchBlocks
public DetailAstImpl visitSwitchBlocks(JavaLanguageParser.SwitchBlocksContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theswitchBlockslabeled alternative inJavaLanguageParser.switchBlock().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchBlocksin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSwitchBlocksin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSwitchLabeledExpression
public DetailAstImpl visitSwitchLabeledExpression(JavaLanguageParser.SwitchLabeledExpressionContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.switchLabeledExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchLabeledExpressionin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSwitchLabeledExpressionin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSwitchLabeledBlock
public DetailAstImpl visitSwitchLabeledBlock(JavaLanguageParser.SwitchLabeledBlockContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.switchLabeledBlock().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchLabeledBlockin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSwitchLabeledBlockin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSwitchLabeledThrow
public DetailAstImpl visitSwitchLabeledThrow(JavaLanguageParser.SwitchLabeledThrowContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.switchLabeledThrow().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchLabeledThrowin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSwitchLabeledThrowin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElseStat
public DetailAstImpl visitElseStat(JavaLanguageParser.ElseStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.elseStat().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElseStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitElseStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCatchClause
public DetailAstImpl visitCatchClause(JavaLanguageParser.CatchClauseContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.catchClause().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCatchClausein interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCatchClausein classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCatchParameter
public DetailAstImpl visitCatchParameter(JavaLanguageParser.CatchParameterContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.catchParameter().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCatchParameterin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCatchParameterin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCatchType
public DetailAstImpl visitCatchType(JavaLanguageParser.CatchTypeContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.catchType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCatchTypein interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCatchTypein classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFinallyBlock
public DetailAstImpl visitFinallyBlock(JavaLanguageParser.FinallyBlockContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.finallyBlock().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFinallyBlockin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitFinallyBlockin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitResourceSpecification
public DetailAstImpl visitResourceSpecification(JavaLanguageParser.ResourceSpecificationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.resourceSpecification().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitResourceSpecificationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitResourceSpecificationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitResources
public DetailAstImpl visitResources(JavaLanguageParser.ResourcesContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.resources().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitResourcesin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitResourcesin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitResourceDeclaration
public DetailAstImpl visitResourceDeclaration(JavaLanguageParser.ResourceDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.resourceDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitResourceDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitResourceDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableAccess
public DetailAstImpl visitVariableAccess(JavaLanguageParser.VariableAccessContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.variableAccess().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableAccessin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitVariableAccessin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSwitchBlockStatementGroup
public DetailAstImpl visitSwitchBlockStatementGroup(JavaLanguageParser.SwitchBlockStatementGroupContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.switchBlockStatementGroup().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchBlockStatementGroupin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSwitchBlockStatementGroupin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCaseLabel
public DetailAstImpl visitCaseLabel(JavaLanguageParser.CaseLabelContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thecaseLabellabeled alternative inJavaLanguageParser.switchLabel().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCaseLabelin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCaseLabelin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDefaultLabel
public DetailAstImpl visitDefaultLabel(JavaLanguageParser.DefaultLabelContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thedefaultLabellabeled alternative inJavaLanguageParser.switchLabel().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDefaultLabelin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitDefaultLabelin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCaseConstants
public DetailAstImpl visitCaseConstants(JavaLanguageParser.CaseConstantsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.caseConstants().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCaseConstantsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCaseConstantsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCaseConstant
public DetailAstImpl visitCaseConstant(JavaLanguageParser.CaseConstantContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.caseConstant().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCaseConstantin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCaseConstantin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnhancedFor
public DetailAstImpl visitEnhancedFor(JavaLanguageParser.EnhancedForContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theenhancedForlabeled alternative inJavaLanguageParser.forControl().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnhancedForin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEnhancedForin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForFor
public DetailAstImpl visitForFor(JavaLanguageParser.ForForContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theforForlabeled alternative inJavaLanguageParser.forControl().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForForin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitForForin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForInit
public DetailAstImpl visitForInit(JavaLanguageParser.ForInitContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.forInit().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForInitin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitForInitin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnhancedForControl
public DetailAstImpl visitEnhancedForControl(JavaLanguageParser.EnhancedForControlContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.enhancedForControl().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnhancedForControlin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEnhancedForControlin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParExpression
public DetailAstImpl visitParExpression(JavaLanguageParser.ParExpressionContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.parExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParExpressionin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitParExpressionin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpressionList
public DetailAstImpl visitExpressionList(JavaLanguageParser.ExpressionListContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.expressionList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExpressionListin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitExpressionListin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpression
public DetailAstImpl visitExpression(JavaLanguageParser.ExpressionContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExpressionin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitExpressionin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRefOp
public DetailAstImpl visitRefOp(JavaLanguageParser.RefOpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by therefOplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRefOpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitRefOpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSuperExp
public DetailAstImpl visitSuperExp(JavaLanguageParser.SuperExpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thesuperExplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSuperExpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSuperExpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInstanceOfExp
public DetailAstImpl visitInstanceOfExp(JavaLanguageParser.InstanceOfExpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theinstanceOfExplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInstanceOfExpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInstanceOfExpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBitShift
public DetailAstImpl visitBitShift(JavaLanguageParser.BitShiftContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thebitShiftlabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBitShiftin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitBitShiftin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNewExp
public DetailAstImpl visitNewExp(JavaLanguageParser.NewExpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thenewExplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNewExpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitNewExpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrefix
public DetailAstImpl visitPrefix(JavaLanguageParser.PrefixContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theprefixlabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrefixin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPrefixin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCastExp
public DetailAstImpl visitCastExp(JavaLanguageParser.CastExpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thecastExplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCastExpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCastExpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIndexOp
public DetailAstImpl visitIndexOp(JavaLanguageParser.IndexOpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theindexOplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIndexOpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitIndexOpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInvOp
public DetailAstImpl visitInvOp(JavaLanguageParser.InvOpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theinvOplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInvOpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInvOpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInitExp
public DetailAstImpl visitInitExp(JavaLanguageParser.InitExpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theinitExplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInitExpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInitExpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSimpleMethodCall
public DetailAstImpl visitSimpleMethodCall(JavaLanguageParser.SimpleMethodCallContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thesimpleMethodCalllabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSimpleMethodCallin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSimpleMethodCallin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLambdaExp
public DetailAstImpl visitLambdaExp(JavaLanguageParser.LambdaExpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thelambdaExplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLambdaExpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitLambdaExpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitThisExp
public DetailAstImpl visitThisExp(JavaLanguageParser.ThisExpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thethisExplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitThisExpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitThisExpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrimaryExp
public DetailAstImpl visitPrimaryExp(JavaLanguageParser.PrimaryExpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theprimaryExplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrimaryExpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPrimaryExpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPostfix
public DetailAstImpl visitPostfix(JavaLanguageParser.PostfixContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thepostfixlabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPostfixin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPostfixin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMethodRef
public DetailAstImpl visitMethodRef(JavaLanguageParser.MethodRefContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by themethodReflabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMethodRefin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitMethodRefin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTernaryOp
public DetailAstImpl visitTernaryOp(JavaLanguageParser.TernaryOpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theternaryOplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTernaryOpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTernaryOpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBinOp
public DetailAstImpl visitBinOp(JavaLanguageParser.BinOpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thebinOplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBinOpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitBinOpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
getInnerBopAst
private DetailAstImpl getInnerBopAst(JavaLanguageParser.BinOpContext descendant)
Builds the binary operation (binOp) AST.- Parameters:
descendant- the BinOpContext to build AST from- Returns:
- binOp AST
-
visitMethodCall
public DetailAstImpl visitMethodCall(JavaLanguageParser.MethodCallContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by themethodCalllabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMethodCallin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitMethodCallin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeCastParameters
public DetailAstImpl visitTypeCastParameters(JavaLanguageParser.TypeCastParametersContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeCastParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeCastParametersin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeCastParametersin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLambdaExpression
public DetailAstImpl visitLambdaExpression(JavaLanguageParser.LambdaExpressionContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.lambdaExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLambdaExpressionin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitLambdaExpressionin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSingleLambdaParam
public DetailAstImpl visitSingleLambdaParam(JavaLanguageParser.SingleLambdaParamContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thesingleLambdaParamlabeled alternative inJavaLanguageParser.lambdaParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSingleLambdaParamin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSingleLambdaParamin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFormalLambdaParam
public DetailAstImpl visitFormalLambdaParam(JavaLanguageParser.FormalLambdaParamContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theformalLambdaParamlabeled alternative inJavaLanguageParser.lambdaParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFormalLambdaParamin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitFormalLambdaParamin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultiLambdaParam
public DetailAstImpl visitMultiLambdaParam(JavaLanguageParser.MultiLambdaParamContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by themultiLambdaParamlabeled alternative inJavaLanguageParser.lambdaParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMultiLambdaParamin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitMultiLambdaParamin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultiLambdaParams
public DetailAstImpl visitMultiLambdaParams(JavaLanguageParser.MultiLambdaParamsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.multiLambdaParams().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMultiLambdaParamsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitMultiLambdaParamsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
createLambdaParameter
private DetailAstImpl createLambdaParameter(JavaLanguageParser.IdContext ctx)
Creates a 'PARAMETER_DEF' node for a lambda expression, with imaginary modifier and type nodes.- Parameters:
ctx- the IdContext to create imaginary nodes for- Returns:
- DetailAstImpl of lambda parameter
-
visitParenPrimary
public DetailAstImpl visitParenPrimary(JavaLanguageParser.ParenPrimaryContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theparenPrimarylabeled alternative inJavaLanguageParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParenPrimaryin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitParenPrimaryin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTokenPrimary
public DetailAstImpl visitTokenPrimary(JavaLanguageParser.TokenPrimaryContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thetokenPrimarylabeled alternative inJavaLanguageParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTokenPrimaryin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTokenPrimaryin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassRefPrimary
public DetailAstImpl visitClassRefPrimary(JavaLanguageParser.ClassRefPrimaryContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theclassRefPrimarylabeled alternative inJavaLanguageParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassRefPrimaryin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitClassRefPrimaryin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrimitivePrimary
public DetailAstImpl visitPrimitivePrimary(JavaLanguageParser.PrimitivePrimaryContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theprimitivePrimarylabeled alternative inJavaLanguageParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrimitivePrimaryin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPrimitivePrimaryin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCreator
public DetailAstImpl visitCreator(JavaLanguageParser.CreatorContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.creator().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCreatorin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCreatorin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCreatedNameObject
public DetailAstImpl visitCreatedNameObject(JavaLanguageParser.CreatedNameObjectContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thecreatedNameObjectlabeled alternative inJavaLanguageParser.createdName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCreatedNameObjectin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCreatedNameObjectin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCreatedNamePrimitive
public DetailAstImpl visitCreatedNamePrimitive(JavaLanguageParser.CreatedNamePrimitiveContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thecreatedNamePrimitivelabeled alternative inJavaLanguageParser.createdName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCreatedNamePrimitivein interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCreatedNamePrimitivein classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInnerCreator
public DetailAstImpl visitInnerCreator(JavaLanguageParser.InnerCreatorContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.innerCreator().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInnerCreatorin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInnerCreatorin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArrayCreatorRest
public DetailAstImpl visitArrayCreatorRest(JavaLanguageParser.ArrayCreatorRestContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.arrayCreatorRest().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArrayCreatorRestin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitArrayCreatorRestin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBracketsWithExp
public DetailAstImpl visitBracketsWithExp(JavaLanguageParser.BracketsWithExpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.bracketsWithExp().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBracketsWithExpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitBracketsWithExpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassCreatorRest
public DetailAstImpl visitClassCreatorRest(JavaLanguageParser.ClassCreatorRestContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.classCreatorRest().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassCreatorRestin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitClassCreatorRestin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDiamond
public DetailAstImpl visitDiamond(JavaLanguageParser.DiamondContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thediamondlabeled alternative inJavaLanguageParser.typeArgumentsOrDiamond().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDiamondin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitDiamondin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeArgs
public DetailAstImpl visitTypeArgs(JavaLanguageParser.TypeArgsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thetypeArgslabeled alternative inJavaLanguageParser.typeArgumentsOrDiamond().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeArgsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeArgsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNonWildcardDiamond
public DetailAstImpl visitNonWildcardDiamond(JavaLanguageParser.NonWildcardDiamondContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thenonWildcardDiamondlabeled alternative inJavaLanguageParser.nonWildcardTypeArgumentsOrDiamond().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNonWildcardDiamondin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitNonWildcardDiamondin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNonWildcardTypeArguments
public DetailAstImpl visitNonWildcardTypeArguments(JavaLanguageParser.NonWildcardTypeArgumentsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.nonWildcardTypeArguments().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNonWildcardTypeArgumentsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitNonWildcardTypeArgumentsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeArgumentsTypeList
public DetailAstImpl visitTypeArgumentsTypeList(JavaLanguageParser.TypeArgumentsTypeListContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeArgumentsTypeList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeArgumentsTypeListin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeArgumentsTypeListin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeList
public DetailAstImpl visitTypeList(JavaLanguageParser.TypeListContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeListin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeListin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeType
public DetailAstImpl visitTypeType(JavaLanguageParser.TypeTypeContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeType(boolean).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeTypein interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeTypein classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArrayDeclarator
public DetailAstImpl visitArrayDeclarator(JavaLanguageParser.ArrayDeclaratorContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.arrayDeclarator().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArrayDeclaratorin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitArrayDeclaratorin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrimitiveType
public DetailAstImpl visitPrimitiveType(JavaLanguageParser.PrimitiveTypeContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.primitiveType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrimitiveTypein interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPrimitiveTypein classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeArguments
public DetailAstImpl visitTypeArguments(JavaLanguageParser.TypeArgumentsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeArguments().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeArgumentsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeArgumentsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSuperSuffixDot
public DetailAstImpl visitSuperSuffixDot(JavaLanguageParser.SuperSuffixDotContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thesuperSuffixDotlabeled alternative inJavaLanguageParser.superSuffix().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSuperSuffixDotin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSuperSuffixDotin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArguments
public DetailAstImpl visitArguments(JavaLanguageParser.ArgumentsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.arguments().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArgumentsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitArgumentsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPattern
public DetailAstImpl visitPattern(JavaLanguageParser.PatternContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.pattern().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPatternin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPatternin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitGuardedPattern
public DetailAstImpl visitGuardedPattern(JavaLanguageParser.GuardedPatternContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.guardedPattern().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitGuardedPatternin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitGuardedPatternin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParenPattern
public DetailAstImpl visitParenPattern(JavaLanguageParser.ParenPatternContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theparenPatternlabeled alternative inJavaLanguageParser.primaryPattern().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParenPatternin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitParenPatternin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypePattern
public DetailAstImpl visitTypePattern(JavaLanguageParser.TypePatternContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typePattern().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypePatternin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypePatternin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPermittedSubclassesAndInterfaces
public DetailAstImpl visitPermittedSubclassesAndInterfaces(JavaLanguageParser.PermittedSubclassesAndInterfacesContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.permittedSubclassesAndInterfaces().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPermittedSubclassesAndInterfacesin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPermittedSubclassesAndInterfacesin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitId
public DetailAstImpl visitId(JavaLanguageParser.IdContext ctx)
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.id().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIdin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitIdin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
flattenedTree
private DetailAstImpl flattenedTree(org.antlr.v4.runtime.ParserRuleContext ctx)
Builds the AST for a particular node, then returns a "flattened" tree of siblings. This method should be used in rule contexts such asvariableDeclarators, where we have both terminals and non-terminals.- Parameters:
ctx- the ParserRuleContext to base tree on- Returns:
- flattened DetailAstImpl
-
processChildren
private void processChildren(DetailAstImpl parent, java.util.List<? extends org.antlr.v4.runtime.tree.ParseTree> children)
Adds all the children from the given ParseTree or JavaParserContext list to the parent DetailAstImpl.- Parameters:
parent- the DetailAstImpl to add children tochildren- the list of children to add
-
createImaginary
private static DetailAstImpl createImaginary(int tokenType)
Create a DetailAstImpl from a given token and token type. This method should be used for imaginary nodes only, i.e. 'OBJBLOCK -> OBJBLOCK', where the text on the RHS matches the text on the LHS.- Parameters:
tokenType- the token type of this DetailAstImpl- Returns:
- new DetailAstImpl of given type
-
create
private DetailAstImpl create(int tokenType, org.antlr.v4.runtime.Token startToken)
Create a DetailAstImpl from a given token and token type. This method should be used for literal nodes only, i.e. 'PACKAGE_DEF -> package'.- Parameters:
tokenType- the token type of this DetailAstImplstartToken- the first token that appears in this DetailAstImpl.- Returns:
- new DetailAstImpl of given type
-
create
private DetailAstImpl create(org.antlr.v4.runtime.Token token)
Create a DetailAstImpl from a given token. This method should be used for terminal nodes, i.e.LCURLY, when we are building an AST for a specific token, regardless of position.- Parameters:
token- the token to build the DetailAstImpl from- Returns:
- new DetailAstImpl of given type
-
create
private DetailAstImpl create(org.antlr.v4.runtime.tree.TerminalNode node)
Create a DetailAstImpl from a given TerminalNode. This method should be used for terminal nodes, i.e.@.- Parameters:
node- the TerminalNode to build the DetailAstImpl from- Returns:
- new DetailAstImpl of given type
-
createTypeDeclaration
private DetailAstImpl createTypeDeclaration(org.antlr.v4.runtime.ParserRuleContext ctx, int type, java.util.List<? extends org.antlr.v4.runtime.tree.ParseTree> modifierList)
Creates a type declaration DetailAstImpl from a given rule context.- Parameters:
ctx- ParserRuleContext we are intype- the type declaration to createmodifierList- respective modifiers- Returns:
- type declaration DetailAstImpl
-
createModifiers
private DetailAstImpl createModifiers(java.util.List<? extends org.antlr.v4.runtime.tree.ParseTree> modifierList)
Builds the modifiers AST.- Parameters:
modifierList- the list of modifier contexts- Returns:
- "MODIFIERS" ast
-
addLastSibling
private static void addLastSibling(DetailAstImpl self, DetailAstImpl sibling)
Add new sibling to the end of existing siblings.- Parameters:
self- DetailAstImpl to add last sibling tosibling- DetailAstImpl sibling to add
-
visit
public DetailAstImpl visit(org.antlr.v4.runtime.tree.ParseTree tree)
- Specified by:
visitin interfaceorg.antlr.v4.runtime.tree.ParseTreeVisitor<DetailAstImpl>- Overrides:
visitin classorg.antlr.v4.runtime.tree.AbstractParseTreeVisitor<DetailAstImpl>
-
-