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 classUsed to swap and organize DetailAstImpl subtrees. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StringString representation of the left shift operator.private static final StringString representation of the right shift operator.private final org.antlr.v4.runtime.BufferedTokenStreamToken stream to check for hidden tokens.private static final StringString 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 voidaddLastSibling(DetailAstImpl self, DetailAstImpl sibling) Add new sibling to the end of existing siblings.private DetailAstImplcreate(int tokenType, org.antlr.v4.runtime.Token startToken) Create a DetailAstImpl from a given token and token type.private DetailAstImplcreate(org.antlr.v4.runtime.Token token) Create a DetailAstImpl from a given token.private DetailAstImplcreate(org.antlr.v4.runtime.tree.TerminalNode node) Create a DetailAstImpl from a given TerminalNode.private static DetailAstImplcreateImaginary(int tokenType) Create a DetailAstImpl from a given token and token type.private DetailAstImplCreates a 'PARAMETER_DEF' node for a lambda expression, with imaginary modifier and type nodes.private DetailAstImplcreateModifiers(List<? extends org.antlr.v4.runtime.tree.ParseTree> modifierList) Builds the modifiers AST.private DetailAstImplcreateTypeDeclaration(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 DetailAstImplflattenedTree(org.antlr.v4.runtime.ParserRuleContext ctx) Builds the AST for a particular node, then returns a "flattened" tree of siblings.private DetailAstImplgetInnerBopAst(JavaLanguageParser.BinOpContext descendant) Builds the binary operation (binOp) AST.private voidprocessChildren(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 theannotationFieldlabeled 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 theannotationTypelabeled 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 theassertExplabeled alternative inJavaLanguageParser.statement().Visit a parse tree produced by thebinOplabeled alternative inJavaLanguageParser.expr().Visit a parse tree produced by thebitShiftlabeled alternative inJavaLanguageParser.expr().Visit a parse tree produced byJavaLanguageParser.block().Visit a parse tree produced by theblockStatlabeled alternative inJavaLanguageParser.statement().Visit a parse tree produced byJavaLanguageParser.bracketsWithExp().Visit a parse tree produced by thebreakStatlabeled alternative inJavaLanguageParser.statement().Visit a parse tree produced byJavaLanguageParser.caseConstant().Visit a parse tree produced byJavaLanguageParser.caseConstants().Visit a parse tree produced by thecaseLabellabeled alternative inJavaLanguageParser.switchLabel().Visit a parse tree produced by thecastExplabeled 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 theclassBlocklabeled 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 theclassRefPrimarylabeled 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 thecontinueStatlabeled alternative inJavaLanguageParser.statement().Visit a parse tree produced by thecreatedNameObjectlabeled alternative inJavaLanguageParser.createdName().Visit a parse tree produced by thecreatedNamePrimitivelabeled alternative inJavaLanguageParser.createdName().Visit a parse tree produced byJavaLanguageParser.creator().Visit a parse tree produced by thedefaultLabellabeled alternative inJavaLanguageParser.switchLabel().Visit a parse tree produced byJavaLanguageParser.defaultValue().Visit a parse tree produced by thediamondlabeled alternative inJavaLanguageParser.typeArgumentsOrDiamond().Visit a parse tree produced by thedoStatlabeled 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 theemptyClasslabeled alternative inJavaLanguageParser.classBodyDeclaration().Visit a parse tree produced by theemptyStatlabeled alternative inJavaLanguageParser.statement().Visit a parse tree produced by theenhancedForlabeled 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 theexplicitCtorCalllabeled alternative inJavaLanguageParser.explicitConstructorInvocation().Visit a parse tree produced byJavaLanguageParser.expression().Visit a parse tree produced byJavaLanguageParser.expressionList().Visit a parse tree produced by theexpStatlabeled alternative inJavaLanguageParser.statement().Visit a parse tree produced byJavaLanguageParser.finallyBlock().Visit a parse tree produced byJavaLanguageParser.floatLiteral().Visit a parse tree produced by theforForlabeled alternative inJavaLanguageParser.forControl().Visit a parse tree produced byJavaLanguageParser.forInit().Visit a parse tree produced by theformalLambdaParamlabeled 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 theforStatlabeled alternative inJavaLanguageParser.statement().Visit a parse tree produced byJavaLanguageParser.guardedPattern().Visit a parse tree produced byJavaLanguageParser.id().Visit a parse tree produced by theifStatlabeled alternative inJavaLanguageParser.statement().Visit a parse tree produced byJavaLanguageParser.implementsClause().Visit a parse tree produced by theimportDeclabeled alternative inJavaLanguageParser.importDeclaration().Visit a parse tree produced by theindexOplabeled alternative inJavaLanguageParser.expr().Visit a parse tree produced by theinitExplabeled alternative inJavaLanguageParser.expr().Visit a parse tree produced byJavaLanguageParser.innerCreator().Visit a parse tree produced by theinstanceOfExplabeled 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 theinvOplabeled alternative inJavaLanguageParser.expr().Visit a parse tree produced by thelabelStatlabeled alternative inJavaLanguageParser.statement().Visit a parse tree produced by thelambdaExplabeled 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 thelocalVarlabeled alternative inJavaLanguageParser.blockStatement().Visit a parse tree produced byJavaLanguageParser.methodBody().Visit a parse tree produced by themethodCalllabeled alternative inJavaLanguageParser.expr().Visit a parse tree produced by themethodReflabeled alternative inJavaLanguageParser.expr().Visit a parse tree produced byJavaLanguageParser.modifier().Visit a parse tree produced by themultiLambdaParamlabeled alternative inJavaLanguageParser.lambdaParameters().Visit a parse tree produced byJavaLanguageParser.multiLambdaParams().Visit a parse tree produced by thenewExplabeled alternative inJavaLanguageParser.expr().Visit a parse tree produced by thenonWildcardDiamondlabeled alternative inJavaLanguageParser.nonWildcardTypeArgumentsOrDiamond().Visit a parse tree produced byJavaLanguageParser.nonWildcardTypeArguments().Visit a parse tree produced byJavaLanguageParser.packageDeclaration().Visit a parse tree produced by theparenPatternlabeled alternative inJavaLanguageParser.primaryPattern().Visit a parse tree produced by theparenPrimarylabeled 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 thepostfixlabeled alternative inJavaLanguageParser.expr().Visit a parse tree produced by theprefixlabeled alternative inJavaLanguageParser.expr().Visit a parse tree produced by theprimaryCtorCalllabeled alternative inJavaLanguageParser.explicitConstructorInvocation().Visit a parse tree produced by theprimaryExplabeled alternative inJavaLanguageParser.expr().Visit a parse tree produced by theprimitivePrimarylabeled 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 therefOplabeled 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 thereturnStatlabeled alternative inJavaLanguageParser.statement().Visit a parse tree produced by thesimpleMethodCalllabeled alternative inJavaLanguageParser.expr().Visit a parse tree produced by thesimpleTypeArgumentlabeled alternative inJavaLanguageParser.typeArgument().Visit a parse tree produced by thesingleLambdaParamlabeled alternative inJavaLanguageParser.lambdaParameters().Visit a parse tree produced by thesingleSemiImportlabeled alternative inJavaLanguageParser.importDeclaration().Visit a parse tree produced by thesuperExplabeled alternative inJavaLanguageParser.expr().Visit a parse tree produced by thesuperSuffixDotlabeled alternative inJavaLanguageParser.superSuffix().Visit a parse tree produced by theswitchBlockslabeled 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 theswitchRuleslabeled alternative inJavaLanguageParser.switchBlock().Visit a parse tree produced by thesyncStatlabeled alternative inJavaLanguageParser.statement().Visit a parse tree produced by theternaryOplabeled alternative inJavaLanguageParser.expr().Visit a parse tree produced byJavaLanguageParser.textBlockLiteral().Visit a parse tree produced by thethisExplabeled alternative inJavaLanguageParser.expr().Visit a parse tree produced byJavaLanguageParser.throwsList().Visit a parse tree produced by thethrowStatlabeled alternative inJavaLanguageParser.statement().Visit a parse tree produced by thetokenPrimarylabeled alternative inJavaLanguageParser.primary().Visit a parse tree produced by thetryStatlabeled alternative inJavaLanguageParser.statement().Visit a parse tree produced by thetryWithResourceStatlabeled alternative inJavaLanguageParser.statement().Visit a parse tree produced by thetypeArgslabeled 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 thewhileStatlabeled alternative inJavaLanguageParser.statement().Visit a parse tree produced by thewildCardTypeArgumentlabeled alternative inJavaLanguageParser.typeArgument().Visit a parse tree produced by theyieldStatlabeled 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, visitVariableInitializerMethods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visitChildren, visitErrorNode, visitTerminalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.compilationUnit().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCompilationUnitin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCompilationUnitin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPackageDeclaration
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.packageDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPackageDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPackageDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImportDec
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theimportDeclabeled alternative inJavaLanguageParser.importDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitImportDecin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitImportDecin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSingleSemiImport
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thesingleSemiImportlabeled alternative inJavaLanguageParser.importDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSingleSemiImportin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSingleSemiImportin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeDeclaration
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModifier
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.modifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitModifierin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitModifierin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableModifier
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.variableModifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableModifierin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitVariableModifierin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassDeclaration
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.classDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitClassDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRecordDeclaration
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.recordDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRecordDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitRecordDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRecordComponentsList
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.recordComponentsList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRecordComponentsListin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitRecordComponentsListin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRecordComponents
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.recordComponents().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRecordComponentsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitRecordComponentsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRecordComponent
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.recordComponent().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRecordComponentin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitRecordComponentin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLastRecordComponent
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.lastRecordComponent().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLastRecordComponentin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitLastRecordComponentin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRecordBody
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.recordBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRecordBodyin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitRecordBodyin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCompactConstructorDeclaration
public DetailAstImpl visitCompactConstructorDeclaration(JavaLanguageParser.CompactConstructorDeclarationContext ctx) Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.compactConstructorDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCompactConstructorDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCompactConstructorDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassExtends
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.classExtends().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassExtendsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitClassExtendsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImplementsClause
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.implementsClause().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitImplementsClausein interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitImplementsClausein classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeParameters
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeParametersin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeParametersin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeParameter
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeParameter().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeParameterin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeParameterin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeUpperBounds
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeUpperBounds().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeUpperBoundsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeUpperBoundsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeBound
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeBound().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeBoundin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeBoundin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeBoundType
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeBoundType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeBoundTypein interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeBoundTypein classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumDeclaration
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.enumDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEnumDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumBody
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.enumBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumBodyin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEnumBodyin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumConstants
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.enumConstants().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumConstantsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEnumConstantsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumConstant
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.enumConstant().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumConstantin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEnumConstantin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumBodyDeclarations
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.enumBodyDeclarations().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumBodyDeclarationsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEnumBodyDeclarationsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInterfaceDeclaration
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.interfaceDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInterfaceDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInterfaceDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInterfaceExtends
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.interfaceExtends().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInterfaceExtendsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInterfaceExtendsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassBody
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.classBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassBodyin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitClassBodyin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInterfaceBody
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.interfaceBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInterfaceBodyin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInterfaceBodyin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEmptyClass
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theemptyClasslabeled alternative inJavaLanguageParser.classBodyDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEmptyClassin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEmptyClassin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassBlock
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theclassBlocklabeled alternative inJavaLanguageParser.classBodyDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassBlockin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitClassBlockin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMethodDeclaration
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.methodDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMethodDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitMethodDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMethodBody
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.methodBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMethodBodyin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitMethodBodyin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitThrowsList
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.throwsList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitThrowsListin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitThrowsListin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConstructorDeclaration
public DetailAstImpl visitConstructorDeclaration(JavaLanguageParser.ConstructorDeclarationContext ctx) Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.constructorDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConstructorDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitConstructorDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFieldDeclaration
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.fieldDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFieldDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitFieldDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInterfaceBodyDeclaration
public DetailAstImpl visitInterfaceBodyDeclaration(JavaLanguageParser.InterfaceBodyDeclarationContext ctx) Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.interfaceBodyDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInterfaceBodyDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInterfaceBodyDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInterfaceMethodDeclaration
public DetailAstImpl visitInterfaceMethodDeclaration(JavaLanguageParser.InterfaceMethodDeclarationContext ctx) Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.interfaceMethodDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInterfaceMethodDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInterfaceMethodDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableDeclarators
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.variableDeclarators(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>, com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeTypeContext).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableDeclaratorsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitVariableDeclaratorsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableDeclarator
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.variableDeclarator(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>, com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeTypeContext).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableDeclaratorin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitVariableDeclaratorin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableDeclaratorId
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.variableDeclaratorId(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.VariableModifierContext>, org.antlr.v4.runtime.ParserRuleContext).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableDeclaratorIdin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitVariableDeclaratorIdin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArrayInitializer
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.arrayInitializer().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArrayInitializerin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitArrayInitializerin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassOrInterfaceType
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.classOrInterfaceType(boolean).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassOrInterfaceTypein interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitClassOrInterfaceTypein classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSimpleTypeArgument
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thesimpleTypeArgumentlabeled alternative inJavaLanguageParser.typeArgument().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSimpleTypeArgumentin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSimpleTypeArgumentin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWildCardTypeArgument
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thewildCardTypeArgumentlabeled alternative inJavaLanguageParser.typeArgument().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitWildCardTypeArgumentin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitWildCardTypeArgumentin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQualifiedNameList
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.qualifiedNameList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQualifiedNameListin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitQualifiedNameListin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFormalParameters
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.formalParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFormalParametersin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitFormalParametersin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFormalParameterList
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.formalParameterList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFormalParameterListin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitFormalParameterListin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFormalParameter
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.formalParameter().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFormalParameterin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitFormalParameterin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLastFormalParameter
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.lastFormalParameter().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLastFormalParameterin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitLastFormalParameterin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQualifiedName
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.qualifiedName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQualifiedNamein interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitQualifiedNamein classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLiteral
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLiteralin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitLiteralin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIntegerLiteral
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.integerLiteral().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIntegerLiteralin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitIntegerLiteralin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFloatLiteral
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.floatLiteral().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFloatLiteralin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitFloatLiteralin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTextBlockLiteral
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.textBlockLiteral().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTextBlockLiteralin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTextBlockLiteralin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotations
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.annotations(boolean).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAnnotationsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotation
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.annotation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAnnotationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElementValuePairs
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.elementValuePairs().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValuePairsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitElementValuePairsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElementValuePair
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.elementValuePair().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValuePairin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitElementValuePairin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElementValue
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.elementValue().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValuein interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitElementValuein classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElementValueArrayInitializer
public DetailAstImpl visitElementValueArrayInitializer(JavaLanguageParser.ElementValueArrayInitializerContext ctx) Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.elementValueArrayInitializer().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValueArrayInitializerin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitElementValueArrayInitializerin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationTypeDeclaration
public DetailAstImpl visitAnnotationTypeDeclaration(JavaLanguageParser.AnnotationTypeDeclarationContext ctx) Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.annotationTypeDeclaration(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationTypeDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAnnotationTypeDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationTypeBody
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.annotationTypeBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationTypeBodyin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAnnotationTypeBodyin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationTypeElementDeclaration
public DetailAstImpl visitAnnotationTypeElementDeclaration(JavaLanguageParser.AnnotationTypeElementDeclarationContext ctx) Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.annotationTypeElementDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationTypeElementDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAnnotationTypeElementDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationField
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theannotationFieldlabeled alternative inJavaLanguageParser.annotationTypeElementRest(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationFieldin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAnnotationFieldin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationType
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theannotationTypelabeled alternative inJavaLanguageParser.annotationTypeElementRest(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationTypein interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAnnotationTypein classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationMethodRest
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.annotationMethodRest(java.util.List<com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.ModifierContext>, com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TypeTypeContext).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationMethodRestin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAnnotationMethodRestin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDefaultValue
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.defaultValue().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDefaultValuein interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitDefaultValuein classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConstructorBlock
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.constructorBlock().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConstructorBlockin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitConstructorBlockin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExplicitCtorCall
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theexplicitCtorCalllabeled alternative inJavaLanguageParser.explicitConstructorInvocation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExplicitCtorCallin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitExplicitCtorCallin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrimaryCtorCall
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theprimaryCtorCalllabeled alternative inJavaLanguageParser.explicitConstructorInvocation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrimaryCtorCallin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPrimaryCtorCallin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlock
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.block().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBlockin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitBlockin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLocalVar
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thelocalVarlabeled alternative inJavaLanguageParser.blockStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLocalVarin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitLocalVarin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlockStat
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theblockStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBlockStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitBlockStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAssertExp
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theassertExplabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAssertExpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitAssertExpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIfStat
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theifStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIfStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitIfStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForStat
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theforStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitForStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWhileStat
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thewhileStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitWhileStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitWhileStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDoStat
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thedoStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDoStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitDoStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTryStat
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thetryStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTryStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTryStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTryWithResourceStat
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thetryWithResourceStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTryWithResourceStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTryWithResourceStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitYieldStat
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theyieldStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitYieldStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitYieldStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSyncStat
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thesyncStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSyncStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSyncStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReturnStat
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thereturnStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitReturnStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitReturnStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitThrowStat
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thethrowStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitThrowStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitThrowStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBreakStat
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thebreakStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBreakStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitBreakStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitContinueStat
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thecontinueStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitContinueStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitContinueStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEmptyStat
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theemptyStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEmptyStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEmptyStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpStat
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theexpStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExpStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitExpStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLabelStat
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thelabelStatlabeled alternative inJavaLanguageParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLabelStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitLabelStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSwitchExpressionOrStatement
public DetailAstImpl visitSwitchExpressionOrStatement(JavaLanguageParser.SwitchExpressionOrStatementContext ctx) Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.switchExpressionOrStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchExpressionOrStatementin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSwitchExpressionOrStatementin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSwitchRules
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theswitchRuleslabeled alternative inJavaLanguageParser.switchBlock().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchRulesin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSwitchRulesin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSwitchBlocks
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theswitchBlockslabeled alternative inJavaLanguageParser.switchBlock().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchBlocksin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSwitchBlocksin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSwitchLabeledExpression
public DetailAstImpl visitSwitchLabeledExpression(JavaLanguageParser.SwitchLabeledExpressionContext ctx) Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.switchLabeledExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchLabeledExpressionin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSwitchLabeledExpressionin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSwitchLabeledBlock
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.switchLabeledBlock().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchLabeledBlockin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSwitchLabeledBlockin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSwitchLabeledThrow
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.switchLabeledThrow().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchLabeledThrowin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSwitchLabeledThrowin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElseStat
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.elseStat().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElseStatin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitElseStatin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCatchClause
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.catchClause().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCatchClausein interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCatchClausein classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCatchParameter
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.catchParameter().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCatchParameterin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCatchParameterin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCatchType
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.catchType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCatchTypein interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCatchTypein classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFinallyBlock
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.finallyBlock().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFinallyBlockin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitFinallyBlockin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitResourceSpecification
public DetailAstImpl visitResourceSpecification(JavaLanguageParser.ResourceSpecificationContext ctx) Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.resourceSpecification().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitResourceSpecificationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitResourceSpecificationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitResources
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.resources().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitResourcesin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitResourcesin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitResourceDeclaration
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.resourceDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitResourceDeclarationin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitResourceDeclarationin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableAccess
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.variableAccess().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableAccessin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitVariableAccessin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSwitchBlockStatementGroup
public DetailAstImpl visitSwitchBlockStatementGroup(JavaLanguageParser.SwitchBlockStatementGroupContext ctx) Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.switchBlockStatementGroup().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchBlockStatementGroupin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSwitchBlockStatementGroupin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCaseLabel
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thecaseLabellabeled alternative inJavaLanguageParser.switchLabel().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCaseLabelin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCaseLabelin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDefaultLabel
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thedefaultLabellabeled alternative inJavaLanguageParser.switchLabel().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDefaultLabelin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitDefaultLabelin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCaseConstants
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.caseConstants().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCaseConstantsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCaseConstantsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCaseConstant
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.caseConstant().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCaseConstantin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCaseConstantin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnhancedFor
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theenhancedForlabeled alternative inJavaLanguageParser.forControl().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnhancedForin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEnhancedForin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForFor
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theforForlabeled alternative inJavaLanguageParser.forControl().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForForin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitForForin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForInit
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.forInit().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForInitin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitForInitin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnhancedForControl
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.enhancedForControl().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnhancedForControlin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitEnhancedForControlin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParExpression
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.parExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParExpressionin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitParExpressionin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpressionList
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.expressionList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExpressionListin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitExpressionListin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpression
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExpressionin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitExpressionin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRefOp
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by therefOplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRefOpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitRefOpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSuperExp
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thesuperExplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSuperExpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSuperExpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInstanceOfExp
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theinstanceOfExplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInstanceOfExpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInstanceOfExpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBitShift
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thebitShiftlabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBitShiftin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitBitShiftin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNewExp
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thenewExplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNewExpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitNewExpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrefix
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theprefixlabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrefixin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPrefixin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCastExp
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thecastExplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCastExpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCastExpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIndexOp
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theindexOplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIndexOpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitIndexOpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInvOp
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theinvOplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInvOpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInvOpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInitExp
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theinitExplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInitExpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInitExpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSimpleMethodCall
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thesimpleMethodCalllabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSimpleMethodCallin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSimpleMethodCallin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLambdaExp
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thelambdaExplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLambdaExpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitLambdaExpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitThisExp
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thethisExplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitThisExpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitThisExpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrimaryExp
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theprimaryExplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrimaryExpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPrimaryExpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPostfix
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thepostfixlabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPostfixin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPostfixin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMethodRef
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by themethodReflabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMethodRefin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitMethodRefin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTernaryOp
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theternaryOplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTernaryOpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTernaryOpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBinOp
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thebinOplabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBinOpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitBinOpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
getInnerBopAst
Builds the binary operation (binOp) AST.- Parameters:
descendant- the BinOpContext to build AST from- Returns:
- binOp AST
-
visitMethodCall
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by themethodCalllabeled alternative inJavaLanguageParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMethodCallin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitMethodCallin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeCastParameters
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeCastParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeCastParametersin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeCastParametersin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLambdaExpression
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.lambdaExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLambdaExpressionin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitLambdaExpressionin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSingleLambdaParam
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thesingleLambdaParamlabeled alternative inJavaLanguageParser.lambdaParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSingleLambdaParamin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSingleLambdaParamin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFormalLambdaParam
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theformalLambdaParamlabeled alternative inJavaLanguageParser.lambdaParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFormalLambdaParamin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitFormalLambdaParamin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultiLambdaParam
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by themultiLambdaParamlabeled alternative inJavaLanguageParser.lambdaParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMultiLambdaParamin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitMultiLambdaParamin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultiLambdaParams
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.multiLambdaParams().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMultiLambdaParamsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitMultiLambdaParamsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
createLambdaParameter
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:JavaLanguageParserBaseVisitorVisit a parse tree produced by theparenPrimarylabeled alternative inJavaLanguageParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParenPrimaryin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitParenPrimaryin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTokenPrimary
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thetokenPrimarylabeled alternative inJavaLanguageParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTokenPrimaryin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTokenPrimaryin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassRefPrimary
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theclassRefPrimarylabeled alternative inJavaLanguageParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassRefPrimaryin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitClassRefPrimaryin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrimitivePrimary
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theprimitivePrimarylabeled alternative inJavaLanguageParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrimitivePrimaryin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPrimitivePrimaryin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCreator
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.creator().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCreatorin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCreatorin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCreatedNameObject
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thecreatedNameObjectlabeled alternative inJavaLanguageParser.createdName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCreatedNameObjectin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCreatedNameObjectin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCreatedNamePrimitive
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thecreatedNamePrimitivelabeled alternative inJavaLanguageParser.createdName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCreatedNamePrimitivein interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitCreatedNamePrimitivein classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInnerCreator
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.innerCreator().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInnerCreatorin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitInnerCreatorin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArrayCreatorRest
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.arrayCreatorRest().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArrayCreatorRestin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitArrayCreatorRestin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBracketsWithExp
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.bracketsWithExp().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBracketsWithExpin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitBracketsWithExpin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassCreatorRest
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.classCreatorRest().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassCreatorRestin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitClassCreatorRestin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDiamond
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thediamondlabeled alternative inJavaLanguageParser.typeArgumentsOrDiamond().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDiamondin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitDiamondin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeArgs
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thetypeArgslabeled alternative inJavaLanguageParser.typeArgumentsOrDiamond().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeArgsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeArgsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNonWildcardDiamond
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thenonWildcardDiamondlabeled alternative inJavaLanguageParser.nonWildcardTypeArgumentsOrDiamond().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNonWildcardDiamondin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitNonWildcardDiamondin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNonWildcardTypeArguments
public DetailAstImpl visitNonWildcardTypeArguments(JavaLanguageParser.NonWildcardTypeArgumentsContext ctx) Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.nonWildcardTypeArguments().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNonWildcardTypeArgumentsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitNonWildcardTypeArgumentsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeArgumentsTypeList
public DetailAstImpl visitTypeArgumentsTypeList(JavaLanguageParser.TypeArgumentsTypeListContext ctx) Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeArgumentsTypeList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeArgumentsTypeListin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeArgumentsTypeListin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeList
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeListin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeListin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeType
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeType(boolean).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeTypein interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeTypein classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArrayDeclarator
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.arrayDeclarator().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArrayDeclaratorin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitArrayDeclaratorin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrimitiveType
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.primitiveType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrimitiveTypein interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPrimitiveTypein classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeArguments
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typeArguments().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeArgumentsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypeArgumentsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSuperSuffixDot
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by thesuperSuffixDotlabeled alternative inJavaLanguageParser.superSuffix().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSuperSuffixDotin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitSuperSuffixDotin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArguments
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.arguments().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArgumentsin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitArgumentsin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPattern
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.pattern().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPatternin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPatternin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitGuardedPattern
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.guardedPattern().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitGuardedPatternin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitGuardedPatternin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParenPattern
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced by theparenPatternlabeled alternative inJavaLanguageParser.primaryPattern().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParenPatternin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitParenPatternin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypePattern
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.typePattern().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypePatternin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitTypePatternin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPermittedSubclassesAndInterfaces
public DetailAstImpl visitPermittedSubclassesAndInterfaces(JavaLanguageParser.PermittedSubclassesAndInterfacesContext ctx) Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.permittedSubclassesAndInterfaces().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPermittedSubclassesAndInterfacesin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitPermittedSubclassesAndInterfacesin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitId
Description copied from class:JavaLanguageParserBaseVisitorVisit a parse tree produced byJavaLanguageParser.id().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIdin interfaceJavaLanguageParserVisitor<DetailAstImpl>- Overrides:
visitIdin classJavaLanguageParserBaseVisitor<DetailAstImpl>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
flattenedTree
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:
visitin interfaceorg.antlr.v4.runtime.tree.ParseTreeVisitor<DetailAstImpl>- Overrides:
visitin classorg.antlr.v4.runtime.tree.AbstractParseTreeVisitor<DetailAstImpl>
-