Class JavaAstVisitor
- All Implemented Interfaces:
JavaLanguageParserVisitor<DetailAstImpl>
,org.antlr.v4.runtime.tree.ParseTreeVisitor<DetailAstImpl>
JavaLanguageParser
. In each visit...
method, we visit the children of a node
(which correspond to subrules) or create terminal nodes (tokens), and return a subtree as a
result.
Example:
The following package declaration:
package com.puppycrawl.tools.checkstyle;
Will be parsed by the packageDeclaration
rule from JavaLanguageParser.g4
:
packageDeclaration : annotations[true] LITERAL_PACKAGE qualifiedName SEMI ;
We override the visitPackageDeclaration
method generated by ANTLR in
JavaLanguageParser
at
visitPackageDeclaration(JavaLanguageParser.PackageDeclarationContext)
to create a subtree based on the subrules and tokens found in the packageDeclaration
subrule accordingly, thus producing the following AST:
PACKAGE_DEF -> package |--ANNOTATIONS -> ANNOTATIONS |--DOT -> . | |--DOT -> . | | |--DOT -> . | | | |--IDENT -> com | | | `--IDENT -> puppycrawl | | `--IDENT -> tools | `--IDENT -> checkstyle `--SEMI -> ;
See https://github.com/checkstyle/checkstyle/pull/10434 for a good example of how to make changes to Checkstyle's grammar and AST.
The order of visit...
methods in JavaAstVisitor.java
and production rules in
JavaLanguageParser.g4
should be consistent to ease maintenance.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
Used to swap and organize DetailAstImpl subtrees. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
String representation of the left shift operator.private static final String
String representation of the right shift operator.private final org.antlr.v4.runtime.BufferedTokenStream
Token stream to check for hidden tokens.private static final String
String representation of the unsigned right shift operator. -
Constructor Summary
ConstructorsConstructorDescriptionJavaAstVisitor
(org.antlr.v4.runtime.CommonTokenStream tokenStream) Constructs a JavaAstVisitor with given token stream. -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
addLastSibling
(DetailAstImpl self, DetailAstImpl sibling) Add new sibling to the end of existing siblings.private DetailAstImpl
create
(int tokenType, org.antlr.v4.runtime.Token startToken) Create a DetailAstImpl from a given token and token type.private DetailAstImpl
create
(org.antlr.v4.runtime.Token token) Create a DetailAstImpl from a given token.private DetailAstImpl
create
(org.antlr.v4.runtime.tree.TerminalNode node) Create a DetailAstImpl from a given TerminalNode.private static DetailAstImpl
createImaginary
(int tokenType) Create a DetailAstImpl from a given token and token type.private DetailAstImpl
Creates a 'PARAMETER_DEF' node for a lambda expression, with imaginary modifier and type nodes.private DetailAstImpl
createModifiers
(List<? extends org.antlr.v4.runtime.tree.ParseTree> modifierList) Builds the modifiers AST.private DetailAstImpl
createTypeDeclaration
(org.antlr.v4.runtime.ParserRuleContext ctx, int type, List<? extends org.antlr.v4.runtime.tree.ParseTree> modifierList) Creates a type declaration DetailAstImpl from a given rule context.private DetailAstImpl
flattenedTree
(org.antlr.v4.runtime.ParserRuleContext ctx) Builds the AST for a particular node, then returns a "flattened" tree of siblings.private DetailAstImpl
getInnerBopAst
(JavaLanguageParser.BinOpContext descendant) Builds the binary operation (binOp) AST.private void
processChildren
(DetailAstImpl parent, List<? extends org.antlr.v4.runtime.tree.ParseTree> children) Adds all the children from the given ParseTree or JavaParserContext list to the parent DetailAstImpl.visit
(org.antlr.v4.runtime.tree.ParseTree tree) Visit a parse tree produced byJavaLanguageParser.annotation()
.Visit a parse tree produced by theannotationField
labeled alternative inJavaLanguageParser.annotationTypeElementRest(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>)
.Visit a parse tree produced byJavaLanguageParser.annotations(boolean)
.Visit a parse tree produced by theannotationType
labeled alternative inJavaLanguageParser.annotationTypeElementRest(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>)
.Visit a parse tree produced byJavaLanguageParser.annotationTypeBody()
.visitAnnotationTypeElementDeclaration
(JavaLanguageParser.AnnotationTypeElementDeclarationContext ctx) Visit a parse tree produced byJavaLanguageParser.annotationTypeElementDeclaration()
.Visit a parse tree produced byJavaLanguageParser.arguments()
.Visit a parse tree produced byJavaLanguageParser.arrayCreatorRest()
.Visit a parse tree produced byJavaLanguageParser.arrayDeclarator()
.Visit a parse tree produced byJavaLanguageParser.arrayInitializer()
.Visit a parse tree produced by theassertExp
labeled alternative inJavaLanguageParser.statement()
.Visit a parse tree produced by thebinOp
labeled alternative inJavaLanguageParser.expr()
.Visit a parse tree produced by thebitShift
labeled alternative inJavaLanguageParser.expr()
.Visit a parse tree produced byJavaLanguageParser.block()
.Visit a parse tree produced by theblockStat
labeled alternative inJavaLanguageParser.statement()
.Visit a parse tree produced byJavaLanguageParser.bracketsWithExp()
.Visit a parse tree produced by thebreakStat
labeled alternative inJavaLanguageParser.statement()
.Visit a parse tree produced byJavaLanguageParser.caseConstant()
.Visit a parse tree produced byJavaLanguageParser.caseConstants()
.Visit a parse tree produced by thecaseLabel
labeled alternative inJavaLanguageParser.switchLabel()
.Visit a parse tree produced by thecastExp
labeled alternative inJavaLanguageParser.expr()
.Visit a parse tree produced byJavaLanguageParser.catchClause()
.Visit a parse tree produced byJavaLanguageParser.catchParameter()
.Visit a parse tree produced byJavaLanguageParser.catchType()
.Visit a parse tree produced by theclassBlock
labeled alternative inJavaLanguageParser.classBodyDeclaration()
.Visit a parse tree produced byJavaLanguageParser.classBody()
.Visit a parse tree produced byJavaLanguageParser.classCreatorRest()
.Visit a parse tree produced byJavaLanguageParser.classExtends()
.Visit a parse tree produced byJavaLanguageParser.classOrInterfaceType(boolean)
.Visit a parse tree produced by theclassRefPrimary
labeled alternative inJavaLanguageParser.primary()
.Visit a parse tree produced byJavaLanguageParser.compactConstructorDeclaration()
.Visit a parse tree produced byJavaLanguageParser.compilationUnit()
.Visit a parse tree produced byJavaLanguageParser.constructorBlock()
.Visit a parse tree produced by thecontinueStat
labeled alternative inJavaLanguageParser.statement()
.Visit a parse tree produced by thecreatedNameObject
labeled alternative inJavaLanguageParser.createdName()
.Visit a parse tree produced by thecreatedNamePrimitive
labeled alternative inJavaLanguageParser.createdName()
.Visit a parse tree produced byJavaLanguageParser.creator()
.Visit a parse tree produced by thedefaultLabel
labeled alternative inJavaLanguageParser.switchLabel()
.Visit a parse tree produced byJavaLanguageParser.defaultValue()
.Visit a parse tree produced by thediamond
labeled alternative inJavaLanguageParser.typeArgumentsOrDiamond()
.Visit a parse tree produced by thedoStat
labeled alternative inJavaLanguageParser.statement()
.Visit a parse tree produced byJavaLanguageParser.elementValue()
.Visit a parse tree produced byJavaLanguageParser.elementValueArrayInitializer()
.Visit a parse tree produced byJavaLanguageParser.elementValuePair()
.Visit a parse tree produced byJavaLanguageParser.elementValuePairs()
.Visit a parse tree produced byJavaLanguageParser.elseStat()
.Visit a parse tree produced by theemptyClass
labeled alternative inJavaLanguageParser.classBodyDeclaration()
.Visit a parse tree produced by theemptyStat
labeled alternative inJavaLanguageParser.statement()
.Visit a parse tree produced by theenhancedFor
labeled alternative inJavaLanguageParser.forControl()
.Visit a parse tree produced byJavaLanguageParser.enhancedForControl()
.Visit a parse tree produced byJavaLanguageParser.enumBody()
.Visit a parse tree produced byJavaLanguageParser.enumBodyDeclarations()
.Visit a parse tree produced byJavaLanguageParser.enumConstant()
.Visit a parse tree produced byJavaLanguageParser.enumConstants()
.Visit a parse tree produced by theexplicitCtorCall
labeled alternative inJavaLanguageParser.explicitConstructorInvocation()
.Visit a parse tree produced byJavaLanguageParser.expression()
.Visit a parse tree produced byJavaLanguageParser.expressionList()
.Visit a parse tree produced by theexpStat
labeled alternative inJavaLanguageParser.statement()
.Visit a parse tree produced byJavaLanguageParser.finallyBlock()
.Visit a parse tree produced byJavaLanguageParser.floatLiteral()
.Visit a parse tree produced by theforFor
labeled alternative inJavaLanguageParser.forControl()
.Visit a parse tree produced byJavaLanguageParser.forInit()
.Visit a parse tree produced by theformalLambdaParam
labeled alternative inJavaLanguageParser.lambdaParameters()
.Visit a parse tree produced byJavaLanguageParser.formalParameter()
.Visit a parse tree produced byJavaLanguageParser.formalParameterList()
.Visit a parse tree produced byJavaLanguageParser.formalParameters()
.Visit a parse tree produced by theforStat
labeled alternative inJavaLanguageParser.statement()
.Visit a parse tree produced byJavaLanguageParser.guardedPattern()
.Visit a parse tree produced byJavaLanguageParser.id()
.Visit a parse tree produced by theifStat
labeled alternative inJavaLanguageParser.statement()
.Visit a parse tree produced byJavaLanguageParser.implementsClause()
.Visit a parse tree produced by theimportDec
labeled alternative inJavaLanguageParser.importDeclaration()
.Visit a parse tree produced by theindexOp
labeled alternative inJavaLanguageParser.expr()
.Visit a parse tree produced by theinitExp
labeled alternative inJavaLanguageParser.expr()
.Visit a parse tree produced byJavaLanguageParser.innerCreator()
.Visit a parse tree produced by theinstanceOfExp
labeled alternative inJavaLanguageParser.expr()
.Visit a parse tree produced byJavaLanguageParser.integerLiteral()
.Visit a parse tree produced byJavaLanguageParser.interfaceBody()
.Visit a parse tree produced byJavaLanguageParser.interfaceBodyDeclaration()
.Visit a parse tree produced byJavaLanguageParser.interfaceExtends()
.Visit a parse tree produced by theinvOp
labeled alternative inJavaLanguageParser.expr()
.Visit a parse tree produced by thelabelStat
labeled alternative inJavaLanguageParser.statement()
.Visit a parse tree produced by thelambdaExp
labeled alternative inJavaLanguageParser.expr()
.Visit a parse tree produced byJavaLanguageParser.lambdaExpression()
.Visit a parse tree produced byJavaLanguageParser.lastFormalParameter()
.Visit a parse tree produced byJavaLanguageParser.lastRecordComponent()
.Visit a parse tree produced byJavaLanguageParser.literal()
.Visit a parse tree produced by thelocalVar
labeled alternative inJavaLanguageParser.blockStatement()
.Visit a parse tree produced byJavaLanguageParser.methodBody()
.Visit a parse tree produced by themethodCall
labeled alternative inJavaLanguageParser.expr()
.Visit a parse tree produced by themethodRef
labeled alternative inJavaLanguageParser.expr()
.Visit a parse tree produced byJavaLanguageParser.modifier()
.Visit a parse tree produced by themultiLambdaParam
labeled alternative inJavaLanguageParser.lambdaParameters()
.Visit a parse tree produced byJavaLanguageParser.multiLambdaParams()
.Visit a parse tree produced by thenewExp
labeled alternative inJavaLanguageParser.expr()
.Visit a parse tree produced by thenonWildcardDiamond
labeled alternative inJavaLanguageParser.nonWildcardTypeArgumentsOrDiamond()
.Visit a parse tree produced byJavaLanguageParser.nonWildcardTypeArguments()
.Visit a parse tree produced byJavaLanguageParser.packageDeclaration()
.Visit a parse tree produced by theparenPattern
labeled alternative inJavaLanguageParser.primaryPattern()
.Visit a parse tree produced by theparenPrimary
labeled alternative inJavaLanguageParser.primary()
.Visit a parse tree produced byJavaLanguageParser.parExpression()
.Visit a parse tree produced byJavaLanguageParser.pattern()
.visitPermittedSubclassesAndInterfaces
(JavaLanguageParser.PermittedSubclassesAndInterfacesContext ctx) Visit a parse tree produced byJavaLanguageParser.permittedSubclassesAndInterfaces()
.Visit a parse tree produced by thepostfix
labeled alternative inJavaLanguageParser.expr()
.Visit a parse tree produced by theprefix
labeled alternative inJavaLanguageParser.expr()
.Visit a parse tree produced by theprimaryCtorCall
labeled alternative inJavaLanguageParser.explicitConstructorInvocation()
.Visit a parse tree produced by theprimaryExp
labeled alternative inJavaLanguageParser.expr()
.Visit a parse tree produced by theprimitivePrimary
labeled alternative inJavaLanguageParser.primary()
.Visit a parse tree produced byJavaLanguageParser.primitiveType()
.Visit a parse tree produced byJavaLanguageParser.qualifiedName()
.Visit a parse tree produced byJavaLanguageParser.qualifiedNameList()
.Visit a parse tree produced byJavaLanguageParser.recordBody()
.Visit a parse tree produced byJavaLanguageParser.recordComponent()
.Visit a parse tree produced byJavaLanguageParser.recordComponents()
.Visit a parse tree produced byJavaLanguageParser.recordComponentsList()
.Visit a parse tree produced by therefOp
labeled alternative inJavaLanguageParser.expr()
.Visit a parse tree produced byJavaLanguageParser.resourceDeclaration()
.Visit a parse tree produced byJavaLanguageParser.resources()
.Visit a parse tree produced byJavaLanguageParser.resourceSpecification()
.Visit a parse tree produced by thereturnStat
labeled alternative inJavaLanguageParser.statement()
.Visit a parse tree produced by thesimpleMethodCall
labeled alternative inJavaLanguageParser.expr()
.Visit a parse tree produced by thesimpleTypeArgument
labeled alternative inJavaLanguageParser.typeArgument()
.Visit a parse tree produced by thesingleLambdaParam
labeled alternative inJavaLanguageParser.lambdaParameters()
.Visit a parse tree produced by thesingleSemiImport
labeled alternative inJavaLanguageParser.importDeclaration()
.Visit a parse tree produced by thesuperExp
labeled alternative inJavaLanguageParser.expr()
.Visit a parse tree produced by thesuperSuffixDot
labeled alternative inJavaLanguageParser.superSuffix()
.Visit a parse tree produced by theswitchBlocks
labeled alternative inJavaLanguageParser.switchBlock()
.Visit a parse tree produced byJavaLanguageParser.switchBlockStatementGroup()
.Visit a parse tree produced byJavaLanguageParser.switchExpressionOrStatement()
.Visit a parse tree produced byJavaLanguageParser.switchLabeledBlock()
.Visit a parse tree produced byJavaLanguageParser.switchLabeledExpression()
.Visit a parse tree produced byJavaLanguageParser.switchLabeledThrow()
.Visit a parse tree produced by theswitchRules
labeled alternative inJavaLanguageParser.switchBlock()
.Visit a parse tree produced by thesyncStat
labeled alternative inJavaLanguageParser.statement()
.Visit a parse tree produced by theternaryOp
labeled alternative inJavaLanguageParser.expr()
.Visit a parse tree produced byJavaLanguageParser.textBlockLiteral()
.Visit a parse tree produced by thethisExp
labeled alternative inJavaLanguageParser.expr()
.Visit a parse tree produced byJavaLanguageParser.throwsList()
.Visit a parse tree produced by thethrowStat
labeled alternative inJavaLanguageParser.statement()
.Visit a parse tree produced by thetokenPrimary
labeled alternative inJavaLanguageParser.primary()
.Visit a parse tree produced by thetryStat
labeled alternative inJavaLanguageParser.statement()
.Visit a parse tree produced by thetryWithResourceStat
labeled alternative inJavaLanguageParser.statement()
.Visit a parse tree produced by thetypeArgs
labeled alternative inJavaLanguageParser.typeArgumentsOrDiamond()
.Visit a parse tree produced byJavaLanguageParser.typeArguments()
.Visit a parse tree produced byJavaLanguageParser.typeArgumentsTypeList()
.Visit a parse tree produced byJavaLanguageParser.typeBound()
.Visit a parse tree produced byJavaLanguageParser.typeBoundType()
.Visit a parse tree produced byJavaLanguageParser.typeCastParameters()
.Visit a parse tree produced byJavaLanguageParser.typeDeclaration()
.Visit a parse tree produced byJavaLanguageParser.typeList()
.Visit a parse tree produced byJavaLanguageParser.typeParameter()
.Visit a parse tree produced byJavaLanguageParser.typeParameters()
.Visit a parse tree produced byJavaLanguageParser.typePattern()
.Visit a parse tree produced byJavaLanguageParser.typeType(boolean)
.Visit a parse tree produced byJavaLanguageParser.typeUpperBounds()
.Visit a parse tree produced byJavaLanguageParser.variableAccess()
.Visit a parse tree produced byJavaLanguageParser.variableModifier()
.Visit a parse tree produced by thewhileStat
labeled alternative inJavaLanguageParser.statement()
.Visit a parse tree produced by thewildCardTypeArgument
labeled alternative inJavaLanguageParser.typeArgument()
.Visit a parse tree produced by theyieldStat
labeled alternative inJavaLanguageParser.statement()
.Methods inherited from class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParserBaseVisitor
visitAnnotationConstantRest, visitClassDef, visitClassOrInterfaceOrPrimitiveType, visitClassOrInterfaceTypeExtended, visitClassType, visitCreatedNameExtended, visitFieldAccessNoIdent, visitInterfaceMemberDeclaration, visitLambdaBody, visitLiteralPrimary, visitLocalType, visitLocalTypeDeclaration, visitLocalVariableDeclaration, visitMemberDeclaration, visitNonWildcardTypeArgs, visitPatternVariableDef, visitQualifiedNameExtended, visitRecordBodyDeclaration, visitResource, visitStat, visitSuperSuffixSimple, visitSwitchLabeledRule, visitSwitchPrimary, visitSwitchStat, visitTypes, visitVariableInitializer
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visitChildren, visitErrorNode, visitTerminal
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visitChildren, visitErrorNode, visitTerminal
-
Field Details
-
LEFT_SHIFT
String representation of the left shift operator.- See Also:
-
UNSIGNED_RIGHT_SHIFT
String representation of the unsigned right shift operator.- See Also:
-
RIGHT_SHIFT
String representation of the right shift operator.- See Also:
-
tokens
private final org.antlr.v4.runtime.BufferedTokenStream tokensToken stream to check for hidden tokens.
-
-
Constructor Details
-
JavaAstVisitor
public JavaAstVisitor(org.antlr.v4.runtime.CommonTokenStream tokenStream) Constructs a JavaAstVisitor with given token stream.- Parameters:
tokenStream
- the token stream to check for hidden tokens
-
-
Method Details
-
visitCompilationUnit
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.compilationUnit()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCompilationUnit
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCompilationUnit
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPackageDeclaration
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.packageDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPackageDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPackageDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitImportDec
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theimportDec
labeled alternative inJavaLanguageParser.importDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitImportDec
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitImportDec
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSingleSemiImport
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thesingleSemiImport
labeled alternative inJavaLanguageParser.importDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSingleSemiImport
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSingleSemiImport
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeDeclaration
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.typeDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTypeDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitModifier
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.modifier()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitModifier
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitModifier
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableModifier
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.variableModifier()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitVariableModifier
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitVariableModifier
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassDeclaration
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.classDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>)
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitClassDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitClassDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitRecordDeclaration
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.recordDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>)
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitRecordDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitRecordDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitRecordComponentsList
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.recordComponentsList()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitRecordComponentsList
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitRecordComponentsList
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitRecordComponents
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.recordComponents()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitRecordComponents
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitRecordComponents
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitRecordComponent
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.recordComponent()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitRecordComponent
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitRecordComponent
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLastRecordComponent
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.lastRecordComponent()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLastRecordComponent
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitLastRecordComponent
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitRecordBody
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.recordBody()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitRecordBody
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitRecordBody
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCompactConstructorDeclaration
public DetailAstImpl visitCompactConstructorDeclaration(JavaLanguageParser.CompactConstructorDeclarationContext ctx) Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.compactConstructorDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCompactConstructorDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCompactConstructorDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassExtends
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.classExtends()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitClassExtends
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitClassExtends
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitImplementsClause
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.implementsClause()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitImplementsClause
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitImplementsClause
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeParameters
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.typeParameters()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTypeParameters
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeParameters
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeParameter
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.typeParameter()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTypeParameter
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeParameter
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeUpperBounds
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.typeUpperBounds()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTypeUpperBounds
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeUpperBounds
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeBound
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.typeBound()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTypeBound
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeBound
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeBoundType
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.typeBoundType()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTypeBoundType
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeBoundType
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnumDeclaration
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.enumDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>)
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitEnumDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEnumDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnumBody
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.enumBody()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitEnumBody
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEnumBody
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnumConstants
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.enumConstants()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitEnumConstants
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEnumConstants
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnumConstant
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.enumConstant()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitEnumConstant
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEnumConstant
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnumBodyDeclarations
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.enumBodyDeclarations()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitEnumBodyDeclarations
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEnumBodyDeclarations
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInterfaceDeclaration
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.interfaceDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>)
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInterfaceDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInterfaceDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInterfaceExtends
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.interfaceExtends()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInterfaceExtends
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInterfaceExtends
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassBody
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.classBody()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitClassBody
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitClassBody
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInterfaceBody
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.interfaceBody()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInterfaceBody
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInterfaceBody
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEmptyClass
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theemptyClass
labeled alternative inJavaLanguageParser.classBodyDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitEmptyClass
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEmptyClass
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassBlock
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theclassBlock
labeled alternative inJavaLanguageParser.classBodyDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitClassBlock
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitClassBlock
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMethodDeclaration
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.methodDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>)
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMethodDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitMethodDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMethodBody
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.methodBody()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMethodBody
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitMethodBody
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitThrowsList
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.throwsList()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitThrowsList
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitThrowsList
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitConstructorDeclaration
public DetailAstImpl visitConstructorDeclaration(JavaLanguageParser.ConstructorDeclarationContext ctx) Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.constructorDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>)
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitConstructorDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitConstructorDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFieldDeclaration
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.fieldDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>)
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitFieldDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitFieldDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInterfaceBodyDeclaration
public DetailAstImpl visitInterfaceBodyDeclaration(JavaLanguageParser.InterfaceBodyDeclarationContext ctx) Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.interfaceBodyDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInterfaceBodyDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInterfaceBodyDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInterfaceMethodDeclaration
public DetailAstImpl visitInterfaceMethodDeclaration(JavaLanguageParser.InterfaceMethodDeclarationContext ctx) Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.interfaceMethodDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>)
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInterfaceMethodDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInterfaceMethodDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableDeclarators
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.variableDeclarators(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>, com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeTypeContext)
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitVariableDeclarators
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitVariableDeclarators
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableDeclarator
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.variableDeclarator(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>, com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeTypeContext)
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitVariableDeclarator
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitVariableDeclarator
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableDeclaratorId
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.variableDeclaratorId(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.VariableModifierContext>, org.antlr.v4.runtime.ParserRuleContext)
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitVariableDeclaratorId
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitVariableDeclaratorId
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitArrayInitializer
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.arrayInitializer()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitArrayInitializer
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitArrayInitializer
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassOrInterfaceType
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.classOrInterfaceType(boolean)
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitClassOrInterfaceType
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitClassOrInterfaceType
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSimpleTypeArgument
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thesimpleTypeArgument
labeled alternative inJavaLanguageParser.typeArgument()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSimpleTypeArgument
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSimpleTypeArgument
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitWildCardTypeArgument
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thewildCardTypeArgument
labeled alternative inJavaLanguageParser.typeArgument()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitWildCardTypeArgument
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitWildCardTypeArgument
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitQualifiedNameList
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.qualifiedNameList()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitQualifiedNameList
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitQualifiedNameList
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFormalParameters
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.formalParameters()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitFormalParameters
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitFormalParameters
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFormalParameterList
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.formalParameterList()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitFormalParameterList
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitFormalParameterList
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFormalParameter
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.formalParameter()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitFormalParameter
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitFormalParameter
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLastFormalParameter
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.lastFormalParameter()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLastFormalParameter
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitLastFormalParameter
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitQualifiedName
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.qualifiedName()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitQualifiedName
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitQualifiedName
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLiteral
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.literal()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLiteral
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitLiteral
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIntegerLiteral
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.integerLiteral()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitIntegerLiteral
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitIntegerLiteral
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFloatLiteral
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.floatLiteral()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitFloatLiteral
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitFloatLiteral
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTextBlockLiteral
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.textBlockLiteral()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTextBlockLiteral
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTextBlockLiteral
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotations
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.annotations(boolean)
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAnnotations
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAnnotations
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotation
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.annotation()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAnnotation
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAnnotation
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitElementValuePairs
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.elementValuePairs()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitElementValuePairs
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitElementValuePairs
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitElementValuePair
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.elementValuePair()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitElementValuePair
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitElementValuePair
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitElementValue
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.elementValue()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitElementValue
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitElementValue
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitElementValueArrayInitializer
public DetailAstImpl visitElementValueArrayInitializer(JavaLanguageParser.ElementValueArrayInitializerContext ctx) Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.elementValueArrayInitializer()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitElementValueArrayInitializer
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitElementValueArrayInitializer
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotationTypeDeclaration
public DetailAstImpl visitAnnotationTypeDeclaration(JavaLanguageParser.AnnotationTypeDeclarationContext ctx) Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.annotationTypeDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>)
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAnnotationTypeDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAnnotationTypeDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotationTypeBody
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.annotationTypeBody()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAnnotationTypeBody
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAnnotationTypeBody
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotationTypeElementDeclaration
public DetailAstImpl visitAnnotationTypeElementDeclaration(JavaLanguageParser.AnnotationTypeElementDeclarationContext ctx) Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.annotationTypeElementDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAnnotationTypeElementDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAnnotationTypeElementDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotationField
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theannotationField
labeled alternative inJavaLanguageParser.annotationTypeElementRest(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>)
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAnnotationField
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAnnotationField
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotationType
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theannotationType
labeled alternative inJavaLanguageParser.annotationTypeElementRest(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>)
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAnnotationType
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAnnotationType
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotationMethodRest
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.annotationMethodRest(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>, com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeTypeContext)
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAnnotationMethodRest
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAnnotationMethodRest
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDefaultValue
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.defaultValue()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDefaultValue
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitDefaultValue
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitConstructorBlock
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.constructorBlock()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitConstructorBlock
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitConstructorBlock
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExplicitCtorCall
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theexplicitCtorCall
labeled alternative inJavaLanguageParser.explicitConstructorInvocation()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitExplicitCtorCall
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitExplicitCtorCall
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPrimaryCtorCall
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theprimaryCtorCall
labeled alternative inJavaLanguageParser.explicitConstructorInvocation()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPrimaryCtorCall
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPrimaryCtorCall
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBlock
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.block()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBlock
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitBlock
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLocalVar
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thelocalVar
labeled alternative inJavaLanguageParser.blockStatement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLocalVar
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitLocalVar
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBlockStat
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theblockStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBlockStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitBlockStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAssertExp
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theassertExp
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAssertExp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitAssertExp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIfStat
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theifStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitIfStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitIfStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitForStat
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theforStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitForStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitForStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitWhileStat
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thewhileStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitWhileStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitWhileStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDoStat
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thedoStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDoStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitDoStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTryStat
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thetryStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTryStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTryStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTryWithResourceStat
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thetryWithResourceStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTryWithResourceStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTryWithResourceStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitYieldStat
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theyieldStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitYieldStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitYieldStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSyncStat
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thesyncStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSyncStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSyncStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitReturnStat
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thereturnStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitReturnStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitReturnStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitThrowStat
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thethrowStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitThrowStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitThrowStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBreakStat
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thebreakStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBreakStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitBreakStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitContinueStat
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thecontinueStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitContinueStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitContinueStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEmptyStat
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theemptyStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitEmptyStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEmptyStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExpStat
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theexpStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitExpStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitExpStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLabelStat
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thelabelStat
labeled alternative inJavaLanguageParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLabelStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitLabelStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchExpressionOrStatement
public DetailAstImpl visitSwitchExpressionOrStatement(JavaLanguageParser.SwitchExpressionOrStatementContext ctx) Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.switchExpressionOrStatement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSwitchExpressionOrStatement
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSwitchExpressionOrStatement
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchRules
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theswitchRules
labeled alternative inJavaLanguageParser.switchBlock()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSwitchRules
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSwitchRules
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchBlocks
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theswitchBlocks
labeled alternative inJavaLanguageParser.switchBlock()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSwitchBlocks
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSwitchBlocks
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchLabeledExpression
public DetailAstImpl visitSwitchLabeledExpression(JavaLanguageParser.SwitchLabeledExpressionContext ctx) Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.switchLabeledExpression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSwitchLabeledExpression
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSwitchLabeledExpression
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchLabeledBlock
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.switchLabeledBlock()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSwitchLabeledBlock
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSwitchLabeledBlock
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchLabeledThrow
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.switchLabeledThrow()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSwitchLabeledThrow
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSwitchLabeledThrow
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitElseStat
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.elseStat()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitElseStat
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitElseStat
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCatchClause
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.catchClause()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCatchClause
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCatchClause
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCatchParameter
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.catchParameter()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCatchParameter
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCatchParameter
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCatchType
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.catchType()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCatchType
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCatchType
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFinallyBlock
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.finallyBlock()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitFinallyBlock
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitFinallyBlock
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitResourceSpecification
public DetailAstImpl visitResourceSpecification(JavaLanguageParser.ResourceSpecificationContext ctx) Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.resourceSpecification()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitResourceSpecification
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitResourceSpecification
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitResources
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.resources()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitResources
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitResources
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitResourceDeclaration
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.resourceDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitResourceDeclaration
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitResourceDeclaration
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableAccess
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.variableAccess()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitVariableAccess
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitVariableAccess
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchBlockStatementGroup
public DetailAstImpl visitSwitchBlockStatementGroup(JavaLanguageParser.SwitchBlockStatementGroupContext ctx) Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.switchBlockStatementGroup()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSwitchBlockStatementGroup
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSwitchBlockStatementGroup
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCaseLabel
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thecaseLabel
labeled alternative inJavaLanguageParser.switchLabel()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCaseLabel
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCaseLabel
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDefaultLabel
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thedefaultLabel
labeled alternative inJavaLanguageParser.switchLabel()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDefaultLabel
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitDefaultLabel
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCaseConstants
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.caseConstants()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCaseConstants
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCaseConstants
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCaseConstant
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.caseConstant()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCaseConstant
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCaseConstant
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnhancedFor
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theenhancedFor
labeled alternative inJavaLanguageParser.forControl()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitEnhancedFor
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEnhancedFor
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitForFor
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theforFor
labeled alternative inJavaLanguageParser.forControl()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitForFor
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitForFor
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitForInit
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.forInit()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitForInit
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitForInit
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnhancedForControl
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.enhancedForControl()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitEnhancedForControl
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitEnhancedForControl
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitParExpression
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.parExpression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitParExpression
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitParExpression
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExpressionList
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.expressionList()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitExpressionList
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitExpressionList
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExpression
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitExpression
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitExpression
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitRefOp
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by therefOp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitRefOp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitRefOp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSuperExp
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thesuperExp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSuperExp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSuperExp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInstanceOfExp
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theinstanceOfExp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInstanceOfExp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInstanceOfExp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBitShift
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thebitShift
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBitShift
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitBitShift
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNewExp
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thenewExp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNewExp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitNewExp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPrefix
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theprefix
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPrefix
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPrefix
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCastExp
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thecastExp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCastExp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCastExp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIndexOp
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theindexOp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitIndexOp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitIndexOp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInvOp
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theinvOp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInvOp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInvOp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInitExp
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theinitExp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInitExp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInitExp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSimpleMethodCall
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thesimpleMethodCall
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSimpleMethodCall
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSimpleMethodCall
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLambdaExp
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thelambdaExp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLambdaExp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitLambdaExp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitThisExp
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thethisExp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitThisExp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitThisExp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPrimaryExp
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theprimaryExp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPrimaryExp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPrimaryExp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPostfix
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thepostfix
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPostfix
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPostfix
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMethodRef
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by themethodRef
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMethodRef
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitMethodRef
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTernaryOp
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theternaryOp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTernaryOp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTernaryOp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBinOp
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thebinOp
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBinOp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitBinOp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
getInnerBopAst
Builds the binary operation (binOp) AST.- Parameters:
descendant
- the BinOpContext to build AST from- Returns:
- binOp AST
-
visitMethodCall
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by themethodCall
labeled alternative inJavaLanguageParser.expr()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMethodCall
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitMethodCall
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeCastParameters
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.typeCastParameters()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTypeCastParameters
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeCastParameters
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLambdaExpression
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.lambdaExpression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLambdaExpression
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitLambdaExpression
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSingleLambdaParam
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thesingleLambdaParam
labeled alternative inJavaLanguageParser.lambdaParameters()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSingleLambdaParam
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSingleLambdaParam
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFormalLambdaParam
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theformalLambdaParam
labeled alternative inJavaLanguageParser.lambdaParameters()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitFormalLambdaParam
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitFormalLambdaParam
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMultiLambdaParam
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by themultiLambdaParam
labeled alternative inJavaLanguageParser.lambdaParameters()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMultiLambdaParam
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitMultiLambdaParam
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMultiLambdaParams
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.multiLambdaParams()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMultiLambdaParams
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitMultiLambdaParams
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
createLambdaParameter
Creates a 'PARAMETER_DEF' node for a lambda expression, with imaginary modifier and type nodes.- Parameters:
ctx
- the IdContext to create imaginary nodes for- Returns:
- DetailAstImpl of lambda parameter
-
visitParenPrimary
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theparenPrimary
labeled alternative inJavaLanguageParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitParenPrimary
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitParenPrimary
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTokenPrimary
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thetokenPrimary
labeled alternative inJavaLanguageParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTokenPrimary
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTokenPrimary
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassRefPrimary
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theclassRefPrimary
labeled alternative inJavaLanguageParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitClassRefPrimary
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitClassRefPrimary
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPrimitivePrimary
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theprimitivePrimary
labeled alternative inJavaLanguageParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPrimitivePrimary
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPrimitivePrimary
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCreator
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.creator()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCreator
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCreator
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCreatedNameObject
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thecreatedNameObject
labeled alternative inJavaLanguageParser.createdName()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCreatedNameObject
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCreatedNameObject
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCreatedNamePrimitive
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thecreatedNamePrimitive
labeled alternative inJavaLanguageParser.createdName()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCreatedNamePrimitive
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitCreatedNamePrimitive
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInnerCreator
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.innerCreator()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInnerCreator
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitInnerCreator
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitArrayCreatorRest
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.arrayCreatorRest()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitArrayCreatorRest
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitArrayCreatorRest
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBracketsWithExp
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.bracketsWithExp()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBracketsWithExp
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitBracketsWithExp
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassCreatorRest
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.classCreatorRest()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitClassCreatorRest
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitClassCreatorRest
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDiamond
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thediamond
labeled alternative inJavaLanguageParser.typeArgumentsOrDiamond()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDiamond
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitDiamond
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeArgs
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thetypeArgs
labeled alternative inJavaLanguageParser.typeArgumentsOrDiamond()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTypeArgs
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeArgs
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNonWildcardDiamond
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thenonWildcardDiamond
labeled alternative inJavaLanguageParser.nonWildcardTypeArgumentsOrDiamond()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNonWildcardDiamond
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitNonWildcardDiamond
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNonWildcardTypeArguments
public DetailAstImpl visitNonWildcardTypeArguments(JavaLanguageParser.NonWildcardTypeArgumentsContext ctx) Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.nonWildcardTypeArguments()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNonWildcardTypeArguments
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitNonWildcardTypeArguments
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeArgumentsTypeList
public DetailAstImpl visitTypeArgumentsTypeList(JavaLanguageParser.TypeArgumentsTypeListContext ctx) Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.typeArgumentsTypeList()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTypeArgumentsTypeList
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeArgumentsTypeList
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeList
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.typeList()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTypeList
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeList
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeType
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.typeType(boolean)
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTypeType
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeType
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitArrayDeclarator
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.arrayDeclarator()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitArrayDeclarator
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitArrayDeclarator
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPrimitiveType
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.primitiveType()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPrimitiveType
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPrimitiveType
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeArguments
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.typeArguments()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTypeArguments
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypeArguments
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSuperSuffixDot
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by thesuperSuffixDot
labeled alternative inJavaLanguageParser.superSuffix()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSuperSuffixDot
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitSuperSuffixDot
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitArguments
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.arguments()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitArguments
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitArguments
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPattern
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.pattern()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPattern
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPattern
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitGuardedPattern
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.guardedPattern()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitGuardedPattern
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitGuardedPattern
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitParenPattern
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced by theparenPattern
labeled alternative inJavaLanguageParser.primaryPattern()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitParenPattern
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitParenPattern
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypePattern
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.typePattern()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTypePattern
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitTypePattern
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPermittedSubclassesAndInterfaces
public DetailAstImpl visitPermittedSubclassesAndInterfaces(JavaLanguageParser.PermittedSubclassesAndInterfacesContext ctx) Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.permittedSubclassesAndInterfaces()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPermittedSubclassesAndInterfaces
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitPermittedSubclassesAndInterfaces
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitId
Description copied from class:JavaLanguageParserBaseVisitor
Visit a parse tree produced byJavaLanguageParser.id()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitId
in interfaceJavaLanguageParserVisitor<DetailAstImpl>
- Overrides:
visitId
in classJavaLanguageParserBaseVisitor<DetailAstImpl>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
flattenedTree
Builds the AST for a particular node, then returns a "flattened" tree of siblings. This method should be used in rule contexts such asvariableDeclarators
, where we have both terminals and non-terminals.- Parameters:
ctx
- the ParserRuleContext to base tree on- Returns:
- flattened DetailAstImpl
-
processChildren
private void processChildren(DetailAstImpl parent, List<? extends org.antlr.v4.runtime.tree.ParseTree> children) Adds all the children from the given ParseTree or JavaParserContext list to the parent DetailAstImpl.- Parameters:
parent
- the DetailAstImpl to add children tochildren
- the list of children to add
-
createImaginary
Create a DetailAstImpl from a given token and token type. This method should be used for imaginary nodes only, i.e. 'OBJBLOCK -> OBJBLOCK', where the text on the RHS matches the text on the LHS.- Parameters:
tokenType
- the token type of this DetailAstImpl- Returns:
- new DetailAstImpl of given type
-
create
Create a DetailAstImpl from a given token and token type. This method should be used for literal nodes only, i.e. 'PACKAGE_DEF -> package'.- Parameters:
tokenType
- the token type of this DetailAstImplstartToken
- the first token that appears in this DetailAstImpl.- Returns:
- new DetailAstImpl of given type
-
create
Create a DetailAstImpl from a given token. This method should be used for terminal nodes, i.e.LCURLY
, when we are building an AST for a specific token, regardless of position.- Parameters:
token
- the token to build the DetailAstImpl from- Returns:
- new DetailAstImpl of given type
-
create
Create a DetailAstImpl from a given TerminalNode. This method should be used for terminal nodes, i.e.@
.- Parameters:
node
- the TerminalNode to build the DetailAstImpl from- Returns:
- new DetailAstImpl of given type
-
createTypeDeclaration
private DetailAstImpl createTypeDeclaration(org.antlr.v4.runtime.ParserRuleContext ctx, int type, List<? extends org.antlr.v4.runtime.tree.ParseTree> modifierList) Creates a type declaration DetailAstImpl from a given rule context.- Parameters:
ctx
- ParserRuleContext we are intype
- the type declaration to createmodifierList
- respective modifiers- Returns:
- type declaration DetailAstImpl
-
createModifiers
private DetailAstImpl createModifiers(List<? extends org.antlr.v4.runtime.tree.ParseTree> modifierList) Builds the modifiers AST.- Parameters:
modifierList
- the list of modifier contexts- Returns:
- "MODIFIERS" ast
-
addLastSibling
Add new sibling to the end of existing siblings.- Parameters:
self
- DetailAstImpl to add last sibling tosibling
- DetailAstImpl sibling to add
-
visit
- Specified by:
visit
in interfaceorg.antlr.v4.runtime.tree.ParseTreeVisitor<DetailAstImpl>
- Overrides:
visit
in classorg.antlr.v4.runtime.tree.AbstractParseTreeVisitor<DetailAstImpl>
-