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
packageDeclaration
rule fromJavaLanguageParser.g4
:packageDeclaration : annotations[true] LITERAL_PACKAGE qualifiedName SEMI ;
We override the
visitPackageDeclaration
method generated by ANTLR inJavaLanguageParser
atvisitPackageDeclaration(JavaLanguageParser.PackageDeclarationContext)
to create a subtree based on the subrules and tokens found in thepackageDeclaration
subrule 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.java
and production rules inJavaLanguageParser.g4
should be consistent to ease maintenance.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
JavaAstVisitor.DetailAstPair
Used to swap and organize DetailAstImpl subtrees.
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
LEFT_SHIFT
String representation of the left shift operator.private static java.lang.String
RIGHT_SHIFT
String representation of the right shift operator.private org.antlr.v4.runtime.BufferedTokenStream
tokens
Token stream to check for hidden tokens.private static java.lang.String
UNSIGNED_RIGHT_SHIFT
String 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:JavaLanguageParserBaseVisitor
Visit 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:
visitCompilationUnit
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCompilationUnit
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPackageDeclaration
public DetailAstImpl visitPackageDeclaration(JavaLanguageParser.PackageDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitPackageDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPackageDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitImportDec
public DetailAstImpl visitImportDec(JavaLanguageParser.ImportDecContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theimportDec
labeled alternative inJavaLanguageParser.importDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitImportDec
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitImportDec
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSingleSemiImport
public DetailAstImpl visitSingleSemiImport(JavaLanguageParser.SingleSemiImportContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thesingleSemiImport
labeled alternative inJavaLanguageParser.importDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSingleSemiImport
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSingleSemiImport
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeDeclaration
public DetailAstImpl visitTypeDeclaration(JavaLanguageParser.TypeDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitTypeDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitModifier
public DetailAstImpl visitModifier(JavaLanguageParser.ModifierContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitModifier
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitModifier
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableModifier
public DetailAstImpl visitVariableModifier(JavaLanguageParser.VariableModifierContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitVariableModifier
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitVariableModifier
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassDeclaration
public DetailAstImpl visitClassDeclaration(JavaLanguageParser.ClassDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitClassDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitClassDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitRecordDeclaration
public DetailAstImpl visitRecordDeclaration(JavaLanguageParser.RecordDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitRecordDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitRecordDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitRecordComponentsList
public DetailAstImpl visitRecordComponentsList(JavaLanguageParser.RecordComponentsListContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitRecordComponentsList
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitRecordComponentsList
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitRecordComponents
public DetailAstImpl visitRecordComponents(JavaLanguageParser.RecordComponentsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitRecordComponents
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitRecordComponents
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitRecordComponent
public DetailAstImpl visitRecordComponent(JavaLanguageParser.RecordComponentContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitRecordComponent
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitRecordComponent
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLastRecordComponent
public DetailAstImpl visitLastRecordComponent(JavaLanguageParser.LastRecordComponentContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitLastRecordComponent
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitLastRecordComponent
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitRecordBody
public DetailAstImpl visitRecordBody(JavaLanguageParser.RecordBodyContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitRecordBody
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitRecordBody
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCompactConstructorDeclaration
public DetailAstImpl visitCompactConstructorDeclaration(JavaLanguageParser.CompactConstructorDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitCompactConstructorDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCompactConstructorDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassExtends
public DetailAstImpl visitClassExtends(JavaLanguageParser.ClassExtendsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitClassExtends
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitClassExtends
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitImplementsClause
public DetailAstImpl visitImplementsClause(JavaLanguageParser.ImplementsClauseContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitImplementsClause
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitImplementsClause
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeParameters
public DetailAstImpl visitTypeParameters(JavaLanguageParser.TypeParametersContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitTypeParameters
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeParameters
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeParameter
public DetailAstImpl visitTypeParameter(JavaLanguageParser.TypeParameterContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitTypeParameter
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeParameter
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeUpperBounds
public DetailAstImpl visitTypeUpperBounds(JavaLanguageParser.TypeUpperBoundsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitTypeUpperBounds
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeUpperBounds
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeBound
public DetailAstImpl visitTypeBound(JavaLanguageParser.TypeBoundContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitTypeBound
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeBound
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeBoundType
public DetailAstImpl visitTypeBoundType(JavaLanguageParser.TypeBoundTypeContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitTypeBoundType
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeBoundType
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnumDeclaration
public DetailAstImpl visitEnumDeclaration(JavaLanguageParser.EnumDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitEnumDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEnumDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnumBody
public DetailAstImpl visitEnumBody(JavaLanguageParser.EnumBodyContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitEnumBody
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEnumBody
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnumConstants
public DetailAstImpl visitEnumConstants(JavaLanguageParser.EnumConstantsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitEnumConstants
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEnumConstants
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnumConstant
public DetailAstImpl visitEnumConstant(JavaLanguageParser.EnumConstantContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitEnumConstant
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEnumConstant
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnumBodyDeclarations
public DetailAstImpl visitEnumBodyDeclarations(JavaLanguageParser.EnumBodyDeclarationsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitEnumBodyDeclarations
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEnumBodyDeclarations
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInterfaceDeclaration
public DetailAstImpl visitInterfaceDeclaration(JavaLanguageParser.InterfaceDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitInterfaceDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInterfaceDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInterfaceExtends
public DetailAstImpl visitInterfaceExtends(JavaLanguageParser.InterfaceExtendsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitInterfaceExtends
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInterfaceExtends
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassBody
public DetailAstImpl visitClassBody(JavaLanguageParser.ClassBodyContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitClassBody
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitClassBody
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInterfaceBody
public DetailAstImpl visitInterfaceBody(JavaLanguageParser.InterfaceBodyContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitInterfaceBody
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInterfaceBody
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEmptyClass
public DetailAstImpl visitEmptyClass(JavaLanguageParser.EmptyClassContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theemptyClass
labeled alternative inJavaLanguageParser.classBodyDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitEmptyClass
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEmptyClass
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassBlock
public DetailAstImpl visitClassBlock(JavaLanguageParser.ClassBlockContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theclassBlock
labeled alternative inJavaLanguageParser.classBodyDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitClassBlock
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitClassBlock
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMethodDeclaration
public DetailAstImpl visitMethodDeclaration(JavaLanguageParser.MethodDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitMethodDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitMethodDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMethodBody
public DetailAstImpl visitMethodBody(JavaLanguageParser.MethodBodyContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitMethodBody
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitMethodBody
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitThrowsList
public DetailAstImpl visitThrowsList(JavaLanguageParser.ThrowsListContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitThrowsList
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitThrowsList
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitConstructorDeclaration
public DetailAstImpl visitConstructorDeclaration(JavaLanguageParser.ConstructorDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitConstructorDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitConstructorDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFieldDeclaration
public DetailAstImpl visitFieldDeclaration(JavaLanguageParser.FieldDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitFieldDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitFieldDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInterfaceBodyDeclaration
public DetailAstImpl visitInterfaceBodyDeclaration(JavaLanguageParser.InterfaceBodyDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitInterfaceBodyDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInterfaceBodyDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInterfaceMethodDeclaration
public DetailAstImpl visitInterfaceMethodDeclaration(JavaLanguageParser.InterfaceMethodDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitInterfaceMethodDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInterfaceMethodDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableDeclarators
public DetailAstImpl visitVariableDeclarators(JavaLanguageParser.VariableDeclaratorsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitVariableDeclarators
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitVariableDeclarators
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableDeclarator
public DetailAstImpl visitVariableDeclarator(JavaLanguageParser.VariableDeclaratorContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitVariableDeclarator
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitVariableDeclarator
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableDeclaratorId
public DetailAstImpl visitVariableDeclaratorId(JavaLanguageParser.VariableDeclaratorIdContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitVariableDeclaratorId
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitVariableDeclaratorId
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitArrayInitializer
public DetailAstImpl visitArrayInitializer(JavaLanguageParser.ArrayInitializerContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitArrayInitializer
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitArrayInitializer
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassOrInterfaceType
public DetailAstImpl visitClassOrInterfaceType(JavaLanguageParser.ClassOrInterfaceTypeContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitClassOrInterfaceType
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitClassOrInterfaceType
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSimpleTypeArgument
public DetailAstImpl visitSimpleTypeArgument(JavaLanguageParser.SimpleTypeArgumentContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thesimpleTypeArgument
labeled alternative inJavaLanguageParser.typeArgument()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSimpleTypeArgument
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSimpleTypeArgument
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitWildCardTypeArgument
public DetailAstImpl visitWildCardTypeArgument(JavaLanguageParser.WildCardTypeArgumentContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thewildCardTypeArgument
labeled alternative inJavaLanguageParser.typeArgument()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitWildCardTypeArgument
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitWildCardTypeArgument
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitQualifiedNameList
public DetailAstImpl visitQualifiedNameList(JavaLanguageParser.QualifiedNameListContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitQualifiedNameList
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitQualifiedNameList
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFormalParameters
public DetailAstImpl visitFormalParameters(JavaLanguageParser.FormalParametersContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitFormalParameters
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitFormalParameters
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFormalParameterList
public DetailAstImpl visitFormalParameterList(JavaLanguageParser.FormalParameterListContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitFormalParameterList
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitFormalParameterList
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFormalParameter
public DetailAstImpl visitFormalParameter(JavaLanguageParser.FormalParameterContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitFormalParameter
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitFormalParameter
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLastFormalParameter
public DetailAstImpl visitLastFormalParameter(JavaLanguageParser.LastFormalParameterContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitLastFormalParameter
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitLastFormalParameter
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitQualifiedName
public DetailAstImpl visitQualifiedName(JavaLanguageParser.QualifiedNameContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitQualifiedName
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitQualifiedName
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLiteral
public DetailAstImpl visitLiteral(JavaLanguageParser.LiteralContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitLiteral
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitLiteral
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIntegerLiteral
public DetailAstImpl visitIntegerLiteral(JavaLanguageParser.IntegerLiteralContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitIntegerLiteral
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitIntegerLiteral
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFloatLiteral
public DetailAstImpl visitFloatLiteral(JavaLanguageParser.FloatLiteralContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitFloatLiteral
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitFloatLiteral
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTextBlockLiteral
public DetailAstImpl visitTextBlockLiteral(JavaLanguageParser.TextBlockLiteralContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitTextBlockLiteral
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTextBlockLiteral
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotations
public DetailAstImpl visitAnnotations(JavaLanguageParser.AnnotationsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitAnnotations
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAnnotations
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotation
public DetailAstImpl visitAnnotation(JavaLanguageParser.AnnotationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitAnnotation
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAnnotation
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitElementValuePairs
public DetailAstImpl visitElementValuePairs(JavaLanguageParser.ElementValuePairsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitElementValuePairs
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitElementValuePairs
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitElementValuePair
public DetailAstImpl visitElementValuePair(JavaLanguageParser.ElementValuePairContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitElementValuePair
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitElementValuePair
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitElementValue
public DetailAstImpl visitElementValue(JavaLanguageParser.ElementValueContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitElementValue
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitElementValue
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitElementValueArrayInitializer
public DetailAstImpl visitElementValueArrayInitializer(JavaLanguageParser.ElementValueArrayInitializerContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitElementValueArrayInitializer
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitElementValueArrayInitializer
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotationTypeDeclaration
public DetailAstImpl visitAnnotationTypeDeclaration(JavaLanguageParser.AnnotationTypeDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitAnnotationTypeDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAnnotationTypeDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotationTypeBody
public DetailAstImpl visitAnnotationTypeBody(JavaLanguageParser.AnnotationTypeBodyContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitAnnotationTypeBody
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAnnotationTypeBody
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotationTypeElementDeclaration
public DetailAstImpl visitAnnotationTypeElementDeclaration(JavaLanguageParser.AnnotationTypeElementDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitAnnotationTypeElementDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAnnotationTypeElementDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotationField
public DetailAstImpl visitAnnotationField(JavaLanguageParser.AnnotationFieldContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theannotationField
labeled 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:
visitAnnotationField
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAnnotationField
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotationType
public DetailAstImpl visitAnnotationType(JavaLanguageParser.AnnotationTypeContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theannotationType
labeled 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:
visitAnnotationType
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAnnotationType
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotationMethodRest
public DetailAstImpl visitAnnotationMethodRest(JavaLanguageParser.AnnotationMethodRestContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitAnnotationMethodRest
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAnnotationMethodRest
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDefaultValue
public DetailAstImpl visitDefaultValue(JavaLanguageParser.DefaultValueContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitDefaultValue
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitDefaultValue
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitConstructorBlock
public DetailAstImpl visitConstructorBlock(JavaLanguageParser.ConstructorBlockContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitConstructorBlock
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitConstructorBlock
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExplicitCtorCall
public DetailAstImpl visitExplicitCtorCall(JavaLanguageParser.ExplicitCtorCallContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theexplicitCtorCall
labeled alternative inJavaLanguageParser.explicitConstructorInvocation()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitExplicitCtorCall
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitExplicitCtorCall
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPrimaryCtorCall
public DetailAstImpl visitPrimaryCtorCall(JavaLanguageParser.PrimaryCtorCallContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theprimaryCtorCall
labeled alternative inJavaLanguageParser.explicitConstructorInvocation()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPrimaryCtorCall
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPrimaryCtorCall
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBlock
public DetailAstImpl visitBlock(JavaLanguageParser.BlockContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitBlock
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitBlock
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLocalVar
public DetailAstImpl visitLocalVar(JavaLanguageParser.LocalVarContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thelocalVar
labeled alternative inJavaLanguageParser.blockStatement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLocalVar
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitLocalVar
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBlockStat
public DetailAstImpl visitBlockStat(JavaLanguageParser.BlockStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theblockStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBlockStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitBlockStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAssertExp
public DetailAstImpl visitAssertExp(JavaLanguageParser.AssertExpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theassertExp
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAssertExp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAssertExp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIfStat
public DetailAstImpl visitIfStat(JavaLanguageParser.IfStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theifStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitIfStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitIfStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitForStat
public DetailAstImpl visitForStat(JavaLanguageParser.ForStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theforStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitForStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitForStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitWhileStat
public DetailAstImpl visitWhileStat(JavaLanguageParser.WhileStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thewhileStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitWhileStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitWhileStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDoStat
public DetailAstImpl visitDoStat(JavaLanguageParser.DoStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thedoStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDoStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitDoStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTryStat
public DetailAstImpl visitTryStat(JavaLanguageParser.TryStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thetryStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTryStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTryStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTryWithResourceStat
public DetailAstImpl visitTryWithResourceStat(JavaLanguageParser.TryWithResourceStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thetryWithResourceStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTryWithResourceStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTryWithResourceStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitYieldStat
public DetailAstImpl visitYieldStat(JavaLanguageParser.YieldStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theyieldStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitYieldStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitYieldStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSyncStat
public DetailAstImpl visitSyncStat(JavaLanguageParser.SyncStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thesyncStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSyncStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSyncStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitReturnStat
public DetailAstImpl visitReturnStat(JavaLanguageParser.ReturnStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thereturnStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitReturnStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitReturnStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitThrowStat
public DetailAstImpl visitThrowStat(JavaLanguageParser.ThrowStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thethrowStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitThrowStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitThrowStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBreakStat
public DetailAstImpl visitBreakStat(JavaLanguageParser.BreakStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thebreakStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBreakStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitBreakStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitContinueStat
public DetailAstImpl visitContinueStat(JavaLanguageParser.ContinueStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thecontinueStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitContinueStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitContinueStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEmptyStat
public DetailAstImpl visitEmptyStat(JavaLanguageParser.EmptyStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theemptyStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitEmptyStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEmptyStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExpStat
public DetailAstImpl visitExpStat(JavaLanguageParser.ExpStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theexpStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitExpStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitExpStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLabelStat
public DetailAstImpl visitLabelStat(JavaLanguageParser.LabelStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thelabelStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLabelStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitLabelStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchExpressionOrStatement
public DetailAstImpl visitSwitchExpressionOrStatement(JavaLanguageParser.SwitchExpressionOrStatementContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitSwitchExpressionOrStatement
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSwitchExpressionOrStatement
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchRules
public DetailAstImpl visitSwitchRules(JavaLanguageParser.SwitchRulesContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theswitchRules
labeled alternative inJavaLanguageParser.switchBlock()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSwitchRules
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSwitchRules
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchBlocks
public DetailAstImpl visitSwitchBlocks(JavaLanguageParser.SwitchBlocksContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theswitchBlocks
labeled alternative inJavaLanguageParser.switchBlock()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSwitchBlocks
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSwitchBlocks
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchLabeledExpression
public DetailAstImpl visitSwitchLabeledExpression(JavaLanguageParser.SwitchLabeledExpressionContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitSwitchLabeledExpression
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSwitchLabeledExpression
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchLabeledBlock
public DetailAstImpl visitSwitchLabeledBlock(JavaLanguageParser.SwitchLabeledBlockContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitSwitchLabeledBlock
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSwitchLabeledBlock
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchLabeledThrow
public DetailAstImpl visitSwitchLabeledThrow(JavaLanguageParser.SwitchLabeledThrowContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitSwitchLabeledThrow
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSwitchLabeledThrow
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitElseStat
public DetailAstImpl visitElseStat(JavaLanguageParser.ElseStatContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitElseStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitElseStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCatchClause
public DetailAstImpl visitCatchClause(JavaLanguageParser.CatchClauseContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitCatchClause
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCatchClause
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCatchParameter
public DetailAstImpl visitCatchParameter(JavaLanguageParser.CatchParameterContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitCatchParameter
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCatchParameter
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCatchType
public DetailAstImpl visitCatchType(JavaLanguageParser.CatchTypeContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitCatchType
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCatchType
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFinallyBlock
public DetailAstImpl visitFinallyBlock(JavaLanguageParser.FinallyBlockContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitFinallyBlock
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitFinallyBlock
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitResourceSpecification
public DetailAstImpl visitResourceSpecification(JavaLanguageParser.ResourceSpecificationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitResourceSpecification
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitResourceSpecification
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitResources
public DetailAstImpl visitResources(JavaLanguageParser.ResourcesContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitResources
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitResources
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitResourceDeclaration
public DetailAstImpl visitResourceDeclaration(JavaLanguageParser.ResourceDeclarationContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitResourceDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitResourceDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableAccess
public DetailAstImpl visitVariableAccess(JavaLanguageParser.VariableAccessContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitVariableAccess
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitVariableAccess
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchBlockStatementGroup
public DetailAstImpl visitSwitchBlockStatementGroup(JavaLanguageParser.SwitchBlockStatementGroupContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitSwitchBlockStatementGroup
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSwitchBlockStatementGroup
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCaseLabel
public DetailAstImpl visitCaseLabel(JavaLanguageParser.CaseLabelContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thecaseLabel
labeled alternative inJavaLanguageParser.switchLabel()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCaseLabel
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCaseLabel
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDefaultLabel
public DetailAstImpl visitDefaultLabel(JavaLanguageParser.DefaultLabelContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thedefaultLabel
labeled alternative inJavaLanguageParser.switchLabel()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDefaultLabel
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitDefaultLabel
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCaseConstants
public DetailAstImpl visitCaseConstants(JavaLanguageParser.CaseConstantsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitCaseConstants
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCaseConstants
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCaseConstant
public DetailAstImpl visitCaseConstant(JavaLanguageParser.CaseConstantContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitCaseConstant
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCaseConstant
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnhancedFor
public DetailAstImpl visitEnhancedFor(JavaLanguageParser.EnhancedForContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theenhancedFor
labeled alternative inJavaLanguageParser.forControl()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitEnhancedFor
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEnhancedFor
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitForFor
public DetailAstImpl visitForFor(JavaLanguageParser.ForForContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theforFor
labeled alternative inJavaLanguageParser.forControl()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitForFor
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitForFor
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitForInit
public DetailAstImpl visitForInit(JavaLanguageParser.ForInitContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitForInit
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitForInit
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnhancedForControl
public DetailAstImpl visitEnhancedForControl(JavaLanguageParser.EnhancedForControlContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitEnhancedForControl
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEnhancedForControl
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitParExpression
public DetailAstImpl visitParExpression(JavaLanguageParser.ParExpressionContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitParExpression
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitParExpression
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExpressionList
public DetailAstImpl visitExpressionList(JavaLanguageParser.ExpressionListContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitExpressionList
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitExpressionList
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExpression
public DetailAstImpl visitExpression(JavaLanguageParser.ExpressionContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitExpression
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitExpression
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitRefOp
public DetailAstImpl visitRefOp(JavaLanguageParser.RefOpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by therefOp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitRefOp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitRefOp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSuperExp
public DetailAstImpl visitSuperExp(JavaLanguageParser.SuperExpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thesuperExp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSuperExp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSuperExp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInstanceOfExp
public DetailAstImpl visitInstanceOfExp(JavaLanguageParser.InstanceOfExpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theinstanceOfExp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInstanceOfExp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInstanceOfExp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBitShift
public DetailAstImpl visitBitShift(JavaLanguageParser.BitShiftContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thebitShift
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBitShift
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitBitShift
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNewExp
public DetailAstImpl visitNewExp(JavaLanguageParser.NewExpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thenewExp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNewExp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitNewExp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPrefix
public DetailAstImpl visitPrefix(JavaLanguageParser.PrefixContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theprefix
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPrefix
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPrefix
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCastExp
public DetailAstImpl visitCastExp(JavaLanguageParser.CastExpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thecastExp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCastExp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCastExp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIndexOp
public DetailAstImpl visitIndexOp(JavaLanguageParser.IndexOpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theindexOp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitIndexOp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitIndexOp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInvOp
public DetailAstImpl visitInvOp(JavaLanguageParser.InvOpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theinvOp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInvOp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInvOp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInitExp
public DetailAstImpl visitInitExp(JavaLanguageParser.InitExpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theinitExp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInitExp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInitExp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSimpleMethodCall
public DetailAstImpl visitSimpleMethodCall(JavaLanguageParser.SimpleMethodCallContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thesimpleMethodCall
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSimpleMethodCall
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSimpleMethodCall
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLambdaExp
public DetailAstImpl visitLambdaExp(JavaLanguageParser.LambdaExpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thelambdaExp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLambdaExp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitLambdaExp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitThisExp
public DetailAstImpl visitThisExp(JavaLanguageParser.ThisExpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thethisExp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitThisExp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitThisExp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPrimaryExp
public DetailAstImpl visitPrimaryExp(JavaLanguageParser.PrimaryExpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theprimaryExp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPrimaryExp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPrimaryExp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPostfix
public DetailAstImpl visitPostfix(JavaLanguageParser.PostfixContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thepostfix
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPostfix
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPostfix
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMethodRef
public DetailAstImpl visitMethodRef(JavaLanguageParser.MethodRefContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by themethodRef
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMethodRef
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitMethodRef
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTernaryOp
public DetailAstImpl visitTernaryOp(JavaLanguageParser.TernaryOpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theternaryOp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTernaryOp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTernaryOp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBinOp
public DetailAstImpl visitBinOp(JavaLanguageParser.BinOpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thebinOp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBinOp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitBinOp
in 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:JavaLanguageParserBaseVisitor
Visit a parse tree produced by themethodCall
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMethodCall
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitMethodCall
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeCastParameters
public DetailAstImpl visitTypeCastParameters(JavaLanguageParser.TypeCastParametersContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitTypeCastParameters
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeCastParameters
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLambdaExpression
public DetailAstImpl visitLambdaExpression(JavaLanguageParser.LambdaExpressionContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitLambdaExpression
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitLambdaExpression
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSingleLambdaParam
public DetailAstImpl visitSingleLambdaParam(JavaLanguageParser.SingleLambdaParamContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thesingleLambdaParam
labeled alternative inJavaLanguageParser.lambdaParameters()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSingleLambdaParam
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSingleLambdaParam
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFormalLambdaParam
public DetailAstImpl visitFormalLambdaParam(JavaLanguageParser.FormalLambdaParamContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theformalLambdaParam
labeled alternative inJavaLanguageParser.lambdaParameters()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitFormalLambdaParam
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitFormalLambdaParam
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMultiLambdaParam
public DetailAstImpl visitMultiLambdaParam(JavaLanguageParser.MultiLambdaParamContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by themultiLambdaParam
labeled alternative inJavaLanguageParser.lambdaParameters()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMultiLambdaParam
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitMultiLambdaParam
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMultiLambdaParams
public DetailAstImpl visitMultiLambdaParams(JavaLanguageParser.MultiLambdaParamsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitMultiLambdaParams
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitMultiLambdaParams
in 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:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theparenPrimary
labeled alternative inJavaLanguageParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitParenPrimary
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitParenPrimary
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTokenPrimary
public DetailAstImpl visitTokenPrimary(JavaLanguageParser.TokenPrimaryContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thetokenPrimary
labeled alternative inJavaLanguageParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTokenPrimary
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTokenPrimary
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassRefPrimary
public DetailAstImpl visitClassRefPrimary(JavaLanguageParser.ClassRefPrimaryContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theclassRefPrimary
labeled alternative inJavaLanguageParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitClassRefPrimary
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitClassRefPrimary
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPrimitivePrimary
public DetailAstImpl visitPrimitivePrimary(JavaLanguageParser.PrimitivePrimaryContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theprimitivePrimary
labeled alternative inJavaLanguageParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPrimitivePrimary
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPrimitivePrimary
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCreator
public DetailAstImpl visitCreator(JavaLanguageParser.CreatorContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitCreator
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCreator
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCreatedNameObject
public DetailAstImpl visitCreatedNameObject(JavaLanguageParser.CreatedNameObjectContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thecreatedNameObject
labeled alternative inJavaLanguageParser.createdName()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCreatedNameObject
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCreatedNameObject
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCreatedNamePrimitive
public DetailAstImpl visitCreatedNamePrimitive(JavaLanguageParser.CreatedNamePrimitiveContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thecreatedNamePrimitive
labeled alternative inJavaLanguageParser.createdName()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCreatedNamePrimitive
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCreatedNamePrimitive
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInnerCreator
public DetailAstImpl visitInnerCreator(JavaLanguageParser.InnerCreatorContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitInnerCreator
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInnerCreator
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitArrayCreatorRest
public DetailAstImpl visitArrayCreatorRest(JavaLanguageParser.ArrayCreatorRestContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitArrayCreatorRest
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitArrayCreatorRest
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBracketsWithExp
public DetailAstImpl visitBracketsWithExp(JavaLanguageParser.BracketsWithExpContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitBracketsWithExp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitBracketsWithExp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassCreatorRest
public DetailAstImpl visitClassCreatorRest(JavaLanguageParser.ClassCreatorRestContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitClassCreatorRest
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitClassCreatorRest
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDiamond
public DetailAstImpl visitDiamond(JavaLanguageParser.DiamondContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thediamond
labeled alternative inJavaLanguageParser.typeArgumentsOrDiamond()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDiamond
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitDiamond
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeArgs
public DetailAstImpl visitTypeArgs(JavaLanguageParser.TypeArgsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thetypeArgs
labeled alternative inJavaLanguageParser.typeArgumentsOrDiamond()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTypeArgs
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeArgs
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNonWildcardDiamond
public DetailAstImpl visitNonWildcardDiamond(JavaLanguageParser.NonWildcardDiamondContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thenonWildcardDiamond
labeled alternative inJavaLanguageParser.nonWildcardTypeArgumentsOrDiamond()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNonWildcardDiamond
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitNonWildcardDiamond
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNonWildcardTypeArguments
public DetailAstImpl visitNonWildcardTypeArguments(JavaLanguageParser.NonWildcardTypeArgumentsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitNonWildcardTypeArguments
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitNonWildcardTypeArguments
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeArgumentsTypeList
public DetailAstImpl visitTypeArgumentsTypeList(JavaLanguageParser.TypeArgumentsTypeListContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitTypeArgumentsTypeList
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeArgumentsTypeList
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeList
public DetailAstImpl visitTypeList(JavaLanguageParser.TypeListContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitTypeList
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeList
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeType
public DetailAstImpl visitTypeType(JavaLanguageParser.TypeTypeContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitTypeType
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeType
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitArrayDeclarator
public DetailAstImpl visitArrayDeclarator(JavaLanguageParser.ArrayDeclaratorContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitArrayDeclarator
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitArrayDeclarator
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPrimitiveType
public DetailAstImpl visitPrimitiveType(JavaLanguageParser.PrimitiveTypeContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitPrimitiveType
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPrimitiveType
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeArguments
public DetailAstImpl visitTypeArguments(JavaLanguageParser.TypeArgumentsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitTypeArguments
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeArguments
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSuperSuffixDot
public DetailAstImpl visitSuperSuffixDot(JavaLanguageParser.SuperSuffixDotContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thesuperSuffixDot
labeled alternative inJavaLanguageParser.superSuffix()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSuperSuffixDot
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSuperSuffixDot
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitArguments
public DetailAstImpl visitArguments(JavaLanguageParser.ArgumentsContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitArguments
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitArguments
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPattern
public DetailAstImpl visitPattern(JavaLanguageParser.PatternContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitPattern
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPattern
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitGuardedPattern
public DetailAstImpl visitGuardedPattern(JavaLanguageParser.GuardedPatternContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitGuardedPattern
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitGuardedPattern
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitParenPattern
public DetailAstImpl visitParenPattern(JavaLanguageParser.ParenPatternContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theparenPattern
labeled alternative inJavaLanguageParser.primaryPattern()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitParenPattern
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitParenPattern
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypePattern
public DetailAstImpl visitTypePattern(JavaLanguageParser.TypePatternContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitTypePattern
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypePattern
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPermittedSubclassesAndInterfaces
public DetailAstImpl visitPermittedSubclassesAndInterfaces(JavaLanguageParser.PermittedSubclassesAndInterfacesContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitPermittedSubclassesAndInterfaces
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPermittedSubclassesAndInterfaces
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitId
public DetailAstImpl visitId(JavaLanguageParser.IdContext ctx)
Description copied from class:JavaLanguageParserBaseVisitor
Visit 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:
visitId
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitId
in 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:
visit
in interfaceorg.antlr.v4.runtime.tree.ParseTreeVisitor<DetailAstImpl>
- Overrides:
visit
in classorg.antlr.v4.runtime.tree.AbstractParseTreeVisitor<DetailAstImpl>
-
-