Class JavaLanguageParserBaseVisitor<T>
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor<T>
-
- Type Parameters:
T
- The return type of the visit operation. UseVoid
for operations with no return type.
- All Implemented Interfaces:
JavaLanguageParserVisitor<T>
,org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
- Direct Known Subclasses:
JavaAstVisitor
public class JavaLanguageParserBaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements JavaLanguageParserVisitor<T>
This class provides an empty implementation ofJavaLanguageParserVisitor
, which can be extended to create a visitor which only needs to handle a subset of the available methods.
-
-
Constructor Summary
Constructors Constructor Description JavaLanguageParserBaseVisitor()
-
Method Summary
-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Method Detail
-
visitCompilationUnit
public T visitCompilationUnit(JavaLanguageParser.CompilationUnitContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPackageDeclaration
public T visitPackageDeclaration(JavaLanguageParser.PackageDeclarationContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitImportDec
public T visitImportDec(JavaLanguageParser.ImportDecContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSingleSemiImport
public T visitSingleSemiImport(JavaLanguageParser.SingleSemiImportContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeDeclaration
public T visitTypeDeclaration(JavaLanguageParser.TypeDeclarationContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypes
public T visitTypes(JavaLanguageParser.TypesContext ctx)
Visit a parse tree produced byJavaLanguageParser.types(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:
visitTypes
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitModifier
public T visitModifier(JavaLanguageParser.ModifierContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableModifier
public T visitVariableModifier(JavaLanguageParser.VariableModifierContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassDeclaration
public T visitClassDeclaration(JavaLanguageParser.ClassDeclarationContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitRecordDeclaration
public T visitRecordDeclaration(JavaLanguageParser.RecordDeclarationContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitRecordComponentsList
public T visitRecordComponentsList(JavaLanguageParser.RecordComponentsListContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitRecordComponents
public T visitRecordComponents(JavaLanguageParser.RecordComponentsContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitRecordComponent
public T visitRecordComponent(JavaLanguageParser.RecordComponentContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLastRecordComponent
public T visitLastRecordComponent(JavaLanguageParser.LastRecordComponentContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitRecordBody
public T visitRecordBody(JavaLanguageParser.RecordBodyContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitRecordBodyDeclaration
public T visitRecordBodyDeclaration(JavaLanguageParser.RecordBodyDeclarationContext ctx)
Visit a parse tree produced byJavaLanguageParser.recordBodyDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitRecordBodyDeclaration
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCompactConstructorDeclaration
public T visitCompactConstructorDeclaration(JavaLanguageParser.CompactConstructorDeclarationContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassExtends
public T visitClassExtends(JavaLanguageParser.ClassExtendsContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitImplementsClause
public T visitImplementsClause(JavaLanguageParser.ImplementsClauseContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeParameters
public T visitTypeParameters(JavaLanguageParser.TypeParametersContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeParameter
public T visitTypeParameter(JavaLanguageParser.TypeParameterContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeUpperBounds
public T visitTypeUpperBounds(JavaLanguageParser.TypeUpperBoundsContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeBound
public T visitTypeBound(JavaLanguageParser.TypeBoundContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeBoundType
public T visitTypeBoundType(JavaLanguageParser.TypeBoundTypeContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnumDeclaration
public T visitEnumDeclaration(JavaLanguageParser.EnumDeclarationContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnumBody
public T visitEnumBody(JavaLanguageParser.EnumBodyContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnumConstants
public T visitEnumConstants(JavaLanguageParser.EnumConstantsContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnumConstant
public T visitEnumConstant(JavaLanguageParser.EnumConstantContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnumBodyDeclarations
public T visitEnumBodyDeclarations(JavaLanguageParser.EnumBodyDeclarationsContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInterfaceDeclaration
public T visitInterfaceDeclaration(JavaLanguageParser.InterfaceDeclarationContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInterfaceExtends
public T visitInterfaceExtends(JavaLanguageParser.InterfaceExtendsContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassBody
public T visitClassBody(JavaLanguageParser.ClassBodyContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInterfaceBody
public T visitInterfaceBody(JavaLanguageParser.InterfaceBodyContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEmptyClass
public T visitEmptyClass(JavaLanguageParser.EmptyClassContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassBlock
public T visitClassBlock(JavaLanguageParser.ClassBlockContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassDef
public T visitClassDef(JavaLanguageParser.ClassDefContext ctx)
Visit a parse tree produced by theclassDef
labeled alternative inJavaLanguageParser.classBodyDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitClassDef
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMemberDeclaration
public T visitMemberDeclaration(JavaLanguageParser.MemberDeclarationContext ctx)
Visit a parse tree produced byJavaLanguageParser.memberDeclaration(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:
visitMemberDeclaration
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMethodDeclaration
public T visitMethodDeclaration(JavaLanguageParser.MethodDeclarationContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMethodBody
public T visitMethodBody(JavaLanguageParser.MethodBodyContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitThrowsList
public T visitThrowsList(JavaLanguageParser.ThrowsListContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitConstructorDeclaration
public T visitConstructorDeclaration(JavaLanguageParser.ConstructorDeclarationContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFieldDeclaration
public T visitFieldDeclaration(JavaLanguageParser.FieldDeclarationContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInterfaceBodyDeclaration
public T visitInterfaceBodyDeclaration(JavaLanguageParser.InterfaceBodyDeclarationContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInterfaceMemberDeclaration
public T visitInterfaceMemberDeclaration(JavaLanguageParser.InterfaceMemberDeclarationContext ctx)
Visit a parse tree produced byJavaLanguageParser.interfaceMemberDeclaration(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:
visitInterfaceMemberDeclaration
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInterfaceMethodDeclaration
public T visitInterfaceMethodDeclaration(JavaLanguageParser.InterfaceMethodDeclarationContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableDeclarators
public T visitVariableDeclarators(JavaLanguageParser.VariableDeclaratorsContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableDeclarator
public T visitVariableDeclarator(JavaLanguageParser.VariableDeclaratorContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableDeclaratorId
public T visitVariableDeclaratorId(JavaLanguageParser.VariableDeclaratorIdContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableInitializer
public T visitVariableInitializer(JavaLanguageParser.VariableInitializerContext ctx)
Visit a parse tree produced byJavaLanguageParser.variableInitializer()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitVariableInitializer
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitArrayInitializer
public T visitArrayInitializer(JavaLanguageParser.ArrayInitializerContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassOrInterfaceType
public T visitClassOrInterfaceType(JavaLanguageParser.ClassOrInterfaceTypeContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassOrInterfaceTypeExtended
public T visitClassOrInterfaceTypeExtended(JavaLanguageParser.ClassOrInterfaceTypeExtendedContext ctx)
Visit a parse tree produced byJavaLanguageParser.classOrInterfaceTypeExtended()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitClassOrInterfaceTypeExtended
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSimpleTypeArgument
public T visitSimpleTypeArgument(JavaLanguageParser.SimpleTypeArgumentContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitWildCardTypeArgument
public T visitWildCardTypeArgument(JavaLanguageParser.WildCardTypeArgumentContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitQualifiedNameList
public T visitQualifiedNameList(JavaLanguageParser.QualifiedNameListContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFormalParameters
public T visitFormalParameters(JavaLanguageParser.FormalParametersContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFormalParameterList
public T visitFormalParameterList(JavaLanguageParser.FormalParameterListContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFormalParameter
public T visitFormalParameter(JavaLanguageParser.FormalParameterContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLastFormalParameter
public T visitLastFormalParameter(JavaLanguageParser.LastFormalParameterContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitQualifiedName
public T visitQualifiedName(JavaLanguageParser.QualifiedNameContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitQualifiedNameExtended
public T visitQualifiedNameExtended(JavaLanguageParser.QualifiedNameExtendedContext ctx)
Visit a parse tree produced byJavaLanguageParser.qualifiedNameExtended()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitQualifiedNameExtended
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLiteral
public T visitLiteral(JavaLanguageParser.LiteralContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIntegerLiteral
public T visitIntegerLiteral(JavaLanguageParser.IntegerLiteralContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFloatLiteral
public T visitFloatLiteral(JavaLanguageParser.FloatLiteralContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTextBlockLiteral
public T visitTextBlockLiteral(JavaLanguageParser.TextBlockLiteralContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotations
public T visitAnnotations(JavaLanguageParser.AnnotationsContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotation
public T visitAnnotation(JavaLanguageParser.AnnotationContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitElementValuePairs
public T visitElementValuePairs(JavaLanguageParser.ElementValuePairsContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitElementValuePair
public T visitElementValuePair(JavaLanguageParser.ElementValuePairContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitElementValue
public T visitElementValue(JavaLanguageParser.ElementValueContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitElementValueArrayInitializer
public T visitElementValueArrayInitializer(JavaLanguageParser.ElementValueArrayInitializerContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotationTypeDeclaration
public T visitAnnotationTypeDeclaration(JavaLanguageParser.AnnotationTypeDeclarationContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotationTypeBody
public T visitAnnotationTypeBody(JavaLanguageParser.AnnotationTypeBodyContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotationTypeElementDeclaration
public T visitAnnotationTypeElementDeclaration(JavaLanguageParser.AnnotationTypeElementDeclarationContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotationField
public T visitAnnotationField(JavaLanguageParser.AnnotationFieldContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotationType
public T visitAnnotationType(JavaLanguageParser.AnnotationTypeContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotationMethodRest
public T visitAnnotationMethodRest(JavaLanguageParser.AnnotationMethodRestContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotationConstantRest
public T visitAnnotationConstantRest(JavaLanguageParser.AnnotationConstantRestContext ctx)
Visit a parse tree produced byJavaLanguageParser.annotationConstantRest(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:
visitAnnotationConstantRest
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDefaultValue
public T visitDefaultValue(JavaLanguageParser.DefaultValueContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitConstructorBlock
public T visitConstructorBlock(JavaLanguageParser.ConstructorBlockContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExplicitCtorCall
public T visitExplicitCtorCall(JavaLanguageParser.ExplicitCtorCallContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPrimaryCtorCall
public T visitPrimaryCtorCall(JavaLanguageParser.PrimaryCtorCallContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBlock
public T visitBlock(JavaLanguageParser.BlockContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLocalVar
public T visitLocalVar(JavaLanguageParser.LocalVarContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitStat
public T visitStat(JavaLanguageParser.StatContext ctx)
Visit a parse tree produced by thestat
labeled alternative inJavaLanguageParser.blockStatement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitStat
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLocalType
public T visitLocalType(JavaLanguageParser.LocalTypeContext ctx)
Visit a parse tree produced by thelocalType
labeled alternative inJavaLanguageParser.blockStatement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLocalType
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLocalVariableDeclaration
public T visitLocalVariableDeclaration(JavaLanguageParser.LocalVariableDeclarationContext ctx)
Visit a parse tree produced byJavaLanguageParser.localVariableDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLocalVariableDeclaration
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLocalTypeDeclaration
public T visitLocalTypeDeclaration(JavaLanguageParser.LocalTypeDeclarationContext ctx)
Visit a parse tree produced byJavaLanguageParser.localTypeDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLocalTypeDeclaration
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBlockStat
public T visitBlockStat(JavaLanguageParser.BlockStatContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAssertExp
public T visitAssertExp(JavaLanguageParser.AssertExpContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIfStat
public T visitIfStat(JavaLanguageParser.IfStatContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitForStat
public T visitForStat(JavaLanguageParser.ForStatContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitWhileStat
public T visitWhileStat(JavaLanguageParser.WhileStatContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDoStat
public T visitDoStat(JavaLanguageParser.DoStatContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTryStat
public T visitTryStat(JavaLanguageParser.TryStatContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTryWithResourceStat
public T visitTryWithResourceStat(JavaLanguageParser.TryWithResourceStatContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitYieldStat
public T visitYieldStat(JavaLanguageParser.YieldStatContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchStat
public T visitSwitchStat(JavaLanguageParser.SwitchStatContext ctx)
Visit a parse tree produced by theswitchStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSwitchStat
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSyncStat
public T visitSyncStat(JavaLanguageParser.SyncStatContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitReturnStat
public T visitReturnStat(JavaLanguageParser.ReturnStatContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitThrowStat
public T visitThrowStat(JavaLanguageParser.ThrowStatContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBreakStat
public T visitBreakStat(JavaLanguageParser.BreakStatContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitContinueStat
public T visitContinueStat(JavaLanguageParser.ContinueStatContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEmptyStat
public T visitEmptyStat(JavaLanguageParser.EmptyStatContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExpStat
public T visitExpStat(JavaLanguageParser.ExpStatContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLabelStat
public T visitLabelStat(JavaLanguageParser.LabelStatContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchExpressionOrStatement
public T visitSwitchExpressionOrStatement(JavaLanguageParser.SwitchExpressionOrStatementContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchRules
public T visitSwitchRules(JavaLanguageParser.SwitchRulesContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchBlocks
public T visitSwitchBlocks(JavaLanguageParser.SwitchBlocksContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchLabeledRule
public T visitSwitchLabeledRule(JavaLanguageParser.SwitchLabeledRuleContext ctx)
Visit a parse tree produced byJavaLanguageParser.switchLabeledRule()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSwitchLabeledRule
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchLabeledExpression
public T visitSwitchLabeledExpression(JavaLanguageParser.SwitchLabeledExpressionContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchLabeledBlock
public T visitSwitchLabeledBlock(JavaLanguageParser.SwitchLabeledBlockContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchLabeledThrow
public T visitSwitchLabeledThrow(JavaLanguageParser.SwitchLabeledThrowContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitElseStat
public T visitElseStat(JavaLanguageParser.ElseStatContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCatchClause
public T visitCatchClause(JavaLanguageParser.CatchClauseContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCatchParameter
public T visitCatchParameter(JavaLanguageParser.CatchParameterContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCatchType
public T visitCatchType(JavaLanguageParser.CatchTypeContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFinallyBlock
public T visitFinallyBlock(JavaLanguageParser.FinallyBlockContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitResourceSpecification
public T visitResourceSpecification(JavaLanguageParser.ResourceSpecificationContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitResources
public T visitResources(JavaLanguageParser.ResourcesContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitResource
public T visitResource(JavaLanguageParser.ResourceContext ctx)
Visit a parse tree produced byJavaLanguageParser.resource()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitResource
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitResourceDeclaration
public T visitResourceDeclaration(JavaLanguageParser.ResourceDeclarationContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableAccess
public T visitVariableAccess(JavaLanguageParser.VariableAccessContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFieldAccessNoIdent
public T visitFieldAccessNoIdent(JavaLanguageParser.FieldAccessNoIdentContext ctx)
Visit a parse tree produced byJavaLanguageParser.fieldAccessNoIdent()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitFieldAccessNoIdent
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchBlockStatementGroup
public T visitSwitchBlockStatementGroup(JavaLanguageParser.SwitchBlockStatementGroupContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCaseLabel
public T visitCaseLabel(JavaLanguageParser.CaseLabelContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDefaultLabel
public T visitDefaultLabel(JavaLanguageParser.DefaultLabelContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCaseConstants
public T visitCaseConstants(JavaLanguageParser.CaseConstantsContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCaseConstant
public T visitCaseConstant(JavaLanguageParser.CaseConstantContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnhancedFor
public T visitEnhancedFor(JavaLanguageParser.EnhancedForContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitForFor
public T visitForFor(JavaLanguageParser.ForForContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitForInit
public T visitForInit(JavaLanguageParser.ForInitContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnhancedForControl
public T visitEnhancedForControl(JavaLanguageParser.EnhancedForControlContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitParExpression
public T visitParExpression(JavaLanguageParser.ParExpressionContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExpressionList
public T visitExpressionList(JavaLanguageParser.ExpressionListContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExpression
public T visitExpression(JavaLanguageParser.ExpressionContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitRefOp
public T visitRefOp(JavaLanguageParser.RefOpContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSuperExp
public T visitSuperExp(JavaLanguageParser.SuperExpContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInstanceOfExp
public T visitInstanceOfExp(JavaLanguageParser.InstanceOfExpContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBitShift
public T visitBitShift(JavaLanguageParser.BitShiftContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNewExp
public T visitNewExp(JavaLanguageParser.NewExpContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPrefix
public T visitPrefix(JavaLanguageParser.PrefixContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCastExp
public T visitCastExp(JavaLanguageParser.CastExpContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIndexOp
public T visitIndexOp(JavaLanguageParser.IndexOpContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInvOp
public T visitInvOp(JavaLanguageParser.InvOpContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInitExp
public T visitInitExp(JavaLanguageParser.InitExpContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSimpleMethodCall
public T visitSimpleMethodCall(JavaLanguageParser.SimpleMethodCallContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLambdaExp
public T visitLambdaExp(JavaLanguageParser.LambdaExpContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitThisExp
public T visitThisExp(JavaLanguageParser.ThisExpContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPrimaryExp
public T visitPrimaryExp(JavaLanguageParser.PrimaryExpContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPostfix
public T visitPostfix(JavaLanguageParser.PostfixContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMethodRef
public T visitMethodRef(JavaLanguageParser.MethodRefContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTernaryOp
public T visitTernaryOp(JavaLanguageParser.TernaryOpContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBinOp
public T visitBinOp(JavaLanguageParser.BinOpContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMethodCall
public T visitMethodCall(JavaLanguageParser.MethodCallContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeCastParameters
public T visitTypeCastParameters(JavaLanguageParser.TypeCastParametersContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLambdaExpression
public T visitLambdaExpression(JavaLanguageParser.LambdaExpressionContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSingleLambdaParam
public T visitSingleLambdaParam(JavaLanguageParser.SingleLambdaParamContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFormalLambdaParam
public T visitFormalLambdaParam(JavaLanguageParser.FormalLambdaParamContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMultiLambdaParam
public T visitMultiLambdaParam(JavaLanguageParser.MultiLambdaParamContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMultiLambdaParams
public T visitMultiLambdaParams(JavaLanguageParser.MultiLambdaParamsContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLambdaBody
public T visitLambdaBody(JavaLanguageParser.LambdaBodyContext ctx)
Visit a parse tree produced byJavaLanguageParser.lambdaBody()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLambdaBody
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchPrimary
public T visitSwitchPrimary(JavaLanguageParser.SwitchPrimaryContext ctx)
Visit a parse tree produced by theswitchPrimary
labeled alternative inJavaLanguageParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSwitchPrimary
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitParenPrimary
public T visitParenPrimary(JavaLanguageParser.ParenPrimaryContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTokenPrimary
public T visitTokenPrimary(JavaLanguageParser.TokenPrimaryContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLiteralPrimary
public T visitLiteralPrimary(JavaLanguageParser.LiteralPrimaryContext ctx)
Visit a parse tree produced by theliteralPrimary
labeled alternative inJavaLanguageParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLiteralPrimary
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassRefPrimary
public T visitClassRefPrimary(JavaLanguageParser.ClassRefPrimaryContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPrimitivePrimary
public T visitPrimitivePrimary(JavaLanguageParser.PrimitivePrimaryContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassType
public T visitClassType(JavaLanguageParser.ClassTypeContext ctx)
Visit a parse tree produced byJavaLanguageParser.classType()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitClassType
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCreator
public T visitCreator(JavaLanguageParser.CreatorContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCreatedNameObject
public T visitCreatedNameObject(JavaLanguageParser.CreatedNameObjectContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCreatedNamePrimitive
public T visitCreatedNamePrimitive(JavaLanguageParser.CreatedNamePrimitiveContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCreatedNameExtended
public T visitCreatedNameExtended(JavaLanguageParser.CreatedNameExtendedContext ctx)
Visit a parse tree produced byJavaLanguageParser.createdNameExtended()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCreatedNameExtended
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInnerCreator
public T visitInnerCreator(JavaLanguageParser.InnerCreatorContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitArrayCreatorRest
public T visitArrayCreatorRest(JavaLanguageParser.ArrayCreatorRestContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBracketsWithExp
public T visitBracketsWithExp(JavaLanguageParser.BracketsWithExpContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassCreatorRest
public T visitClassCreatorRest(JavaLanguageParser.ClassCreatorRestContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDiamond
public T visitDiamond(JavaLanguageParser.DiamondContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeArgs
public T visitTypeArgs(JavaLanguageParser.TypeArgsContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNonWildcardDiamond
public T visitNonWildcardDiamond(JavaLanguageParser.NonWildcardDiamondContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNonWildcardTypeArgs
public T visitNonWildcardTypeArgs(JavaLanguageParser.NonWildcardTypeArgsContext ctx)
Visit a parse tree produced by thenonWildcardTypeArgs
labeled alternative inJavaLanguageParser.nonWildcardTypeArgumentsOrDiamond()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNonWildcardTypeArgs
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNonWildcardTypeArguments
public T visitNonWildcardTypeArguments(JavaLanguageParser.NonWildcardTypeArgumentsContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeArgumentsTypeList
public T visitTypeArgumentsTypeList(JavaLanguageParser.TypeArgumentsTypeListContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeList
public T visitTypeList(JavaLanguageParser.TypeListContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeType
public T visitTypeType(JavaLanguageParser.TypeTypeContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassOrInterfaceOrPrimitiveType
public T visitClassOrInterfaceOrPrimitiveType(JavaLanguageParser.ClassOrInterfaceOrPrimitiveTypeContext ctx)
Visit a parse tree produced byJavaLanguageParser.classOrInterfaceOrPrimitiveType()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitClassOrInterfaceOrPrimitiveType
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitArrayDeclarator
public T visitArrayDeclarator(JavaLanguageParser.ArrayDeclaratorContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPrimitiveType
public T visitPrimitiveType(JavaLanguageParser.PrimitiveTypeContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeArguments
public T visitTypeArguments(JavaLanguageParser.TypeArgumentsContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSuperSuffixSimple
public T visitSuperSuffixSimple(JavaLanguageParser.SuperSuffixSimpleContext ctx)
Visit a parse tree produced by thesuperSuffixSimple
labeled alternative inJavaLanguageParser.superSuffix()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSuperSuffixSimple
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSuperSuffixDot
public T visitSuperSuffixDot(JavaLanguageParser.SuperSuffixDotContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitArguments
public T visitArguments(JavaLanguageParser.ArgumentsContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPattern
public T visitPattern(JavaLanguageParser.PatternContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitGuardedPattern
public T visitGuardedPattern(JavaLanguageParser.GuardedPatternContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPatternVariableDef
public T visitPatternVariableDef(JavaLanguageParser.PatternVariableDefContext ctx)
Visit a parse tree produced by thepatternVariableDef
labeled alternative inJavaLanguageParser.primaryPattern()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPatternVariableDef
in interfaceJavaLanguageParserVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitParenPattern
public T visitParenPattern(JavaLanguageParser.ParenPatternContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypePattern
public T visitTypePattern(JavaLanguageParser.TypePatternContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPermittedSubclassesAndInterfaces
public T visitPermittedSubclassesAndInterfaces(JavaLanguageParser.PermittedSubclassesAndInterfacesContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitId
public T visitId(JavaLanguageParser.IdContext ctx)
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<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
-