Class AstBuilder
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<java.lang.Object>,GroovyParserVisitor<java.lang.Object>
public class AstBuilder extends GroovyParserBaseVisitor<java.lang.Object>
-
Constructor Summary
Constructors Constructor Description AstBuilder(SourceUnit sourceUnit, boolean groovydocEnabled, boolean runtimeGroovydocEnabled) -
Method Summary
Methods inherited from class org.apache.groovy.parser.antlr4.GroovyParserBaseVisitor
visitAssertStmtAlt, visitBlockStmtAlt, visitBreakStmtAlt, visitBuiltInTypePrmrAlt, visitClosureOrLambdaExpressionPrmrAlt, visitConditionalStmtAlt, visitContinueStmtAlt, visitElementValuePairName, visitEmptyStmtAlt, visitExpression, visitExpressionStmtAlt, visitGstringPrmrAlt, visitListPrmrAlt, visitLiteral, visitLiteralPrmrAlt, visitLocalVariableDeclarationStmtAlt, visitLoopStatement, visitMapPrmrAlt, visitNls, visitParenPrmrAlt, visitPostfixExprAlt, visitPrimary, visitQualifiedNameElement, visitQualifiedNameElements, visitRparen, visitScriptStatement, visitSep, visitStatement, visitStatementExpression, visitStringLiteralAlt, visitTryCatchStmtAltMethods 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
-
Constructor Details
-
AstBuilder
public AstBuilder(SourceUnit sourceUnit, boolean groovydocEnabled, boolean runtimeGroovydocEnabled)
-
-
Method Details
-
buildAST
-
visitCompilationUnit
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.compilationUnit().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCompilationUnitin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitCompilationUnitin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitScriptStatements
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.scriptStatements().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitScriptStatementsin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitScriptStatementsin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPackageDeclaration
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.packageDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPackageDeclarationin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitPackageDeclarationin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImportDeclaration
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.importDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitImportDeclarationin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitImportDeclarationin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAssertStatement
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.assertStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAssertStatementin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitAssertStatementin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConditionalStatement
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.conditionalStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConditionalStatementin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitConditionalStatementin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIfElseStatement
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.ifElseStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIfElseStatementin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitIfElseStatementin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLoopStmtAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theloopStmtAltlabeled alternative inGroovyParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLoopStmtAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitLoopStmtAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForStmtAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theforStmtAltlabeled alternative inGroovyParser.loopStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForStmtAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitForStmtAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForControl
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.forControl().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForControlin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitForControlin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForInit
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.forInit().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForInitin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitForInitin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForUpdate
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.forUpdate().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForUpdatein interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitForUpdatein classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnhancedForControl
public Tuple2<Parameter,Expression> visitEnhancedForControl(GroovyParser.EnhancedForControlContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.enhancedForControl().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnhancedForControlin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitEnhancedForControlin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassicalForControl
public Tuple2<Parameter,Expression> visitClassicalForControl(GroovyParser.ClassicalForControlContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.classicalForControl().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassicalForControlin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitClassicalForControlin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWhileStmtAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thewhileStmtAltlabeled alternative inGroovyParser.loopStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitWhileStmtAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitWhileStmtAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDoWhileStmtAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thedoWhileStmtAltlabeled alternative inGroovyParser.loopStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDoWhileStmtAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitDoWhileStmtAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTryCatchStatement
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.tryCatchStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTryCatchStatementin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitTryCatchStatementin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitResources
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.resources().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitResourcesin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitResourcesin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitResourceList
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.resourceList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitResourceListin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitResourceListin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitResource
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.resource().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitResourcein interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitResourcein classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCatchClause
Multi-catch(1..*) clause will be unpacked to several normal catch clauses, so the return type is List- Specified by:
visitCatchClausein interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitCatchClausein classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- a list of CatchStatement instances
-
visitCatchType
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.catchType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCatchTypein interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitCatchTypein classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFinallyBlock
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.finallyBlock().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFinallyBlockin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitFinallyBlockin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSwitchStatement
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.switchStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchStatementin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitSwitchStatementin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSwitchBlockStatementGroup
public java.util.List<Statement> visitSwitchBlockStatementGroup(GroovyParser.SwitchBlockStatementGroupContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.switchBlockStatementGroup().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchBlockStatementGroupin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitSwitchBlockStatementGroupin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSwitchLabel
public Tuple2<org.antlr.v4.runtime.Token,Expression> visitSwitchLabel(GroovyParser.SwitchLabelContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.switchLabel().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchLabelin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitSwitchLabelin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSynchronizedStmtAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thesynchronizedStmtAltlabeled alternative inGroovyParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSynchronizedStmtAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitSynchronizedStmtAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReturnStmtAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thereturnStmtAltlabeled alternative inGroovyParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitReturnStmtAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitReturnStmtAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitThrowStmtAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thethrowStmtAltlabeled alternative inGroovyParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitThrowStmtAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitThrowStmtAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLabeledStmtAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thelabeledStmtAltlabeled alternative inGroovyParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLabeledStmtAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitLabeledStmtAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBreakStatement
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.breakStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBreakStatementin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitBreakStatementin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitContinueStatement
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.continueStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitContinueStatementin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitContinueStatementin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeDeclaration
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.typeDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeDeclarationin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitTypeDeclarationin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassDeclaration
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.classDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassDeclarationin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitClassDeclarationin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassBody
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.classBody(int).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassBodyin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitClassBodyin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumConstants
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.enumConstants().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumConstantsin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitEnumConstantsin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumConstant
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.enumConstant().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumConstantin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitEnumConstantin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassBodyDeclaration
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.classBodyDeclaration(int).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassBodyDeclarationin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitClassBodyDeclarationin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMemberDeclaration
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.memberDeclaration(int).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMemberDeclarationin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitMemberDeclarationin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeParameters
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.typeParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeParametersin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitTypeParametersin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeParameter
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.typeParameter().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeParameterin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitTypeParameterin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeBound
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.typeBound().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeBoundin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitTypeBoundin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFieldDeclaration
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.fieldDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFieldDeclarationin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitFieldDeclarationin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMethodDeclaration
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.methodDeclaration(int, int).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMethodDeclarationin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitMethodDeclarationin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMethodName
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.methodName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMethodNamein interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitMethodNamein classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReturnType
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.returnType(int).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitReturnTypein interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitReturnTypein classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMethodBody
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.methodBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMethodBodyin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitMethodBodyin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLocalVariableDeclaration
public org.apache.groovy.parser.antlr4.AstBuilder.DeclarationListStatement visitLocalVariableDeclaration(GroovyParser.LocalVariableDeclarationContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.localVariableDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLocalVariableDeclarationin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitLocalVariableDeclarationin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableDeclaration
public org.apache.groovy.parser.antlr4.AstBuilder.DeclarationListStatement visitVariableDeclaration(GroovyParser.VariableDeclarationContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.variableDeclaration(int).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableDeclarationin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitVariableDeclarationin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeNamePairs
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.typeNamePairs().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeNamePairsin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitTypeNamePairsin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeNamePair
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.typeNamePair().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeNamePairin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitTypeNamePairin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableDeclarators
public java.util.List<DeclarationExpression> visitVariableDeclarators(GroovyParser.VariableDeclaratorsContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.variableDeclarators().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableDeclaratorsin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitVariableDeclaratorsin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableDeclarator
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.variableDeclarator().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableDeclaratorin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitVariableDeclaratorin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableInitializer
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.variableInitializer().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableInitializerin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitVariableInitializerin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableInitializers
public java.util.List<Expression> visitVariableInitializers(GroovyParser.VariableInitializersContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.variableInitializers().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableInitializersin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitVariableInitializersin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArrayInitializer
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.arrayInitializer().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArrayInitializerin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitArrayInitializerin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlock
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.block().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBlockin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitBlockin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCommandExprAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thecommandExprAltlabeled alternative inGroovyParser.statementExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCommandExprAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitCommandExprAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCommandExpression
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.commandExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCommandExpressionin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitCommandExpressionin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCommandArgument
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.commandArgument().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCommandArgumentin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitCommandArgumentin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCastParExpression
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.castParExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCastParExpressionin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitCastParExpressionin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParExpression
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.parExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParExpressionin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitParExpressionin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpressionInPar
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.expressionInPar().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExpressionInParin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitExpressionInParin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnhancedStatementExpression
public Expression visitEnhancedStatementExpression(GroovyParser.EnhancedStatementExpressionContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.enhancedStatementExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnhancedStatementExpressionin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitEnhancedStatementExpressionin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPathExpression
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.pathExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPathExpressionin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitPathExpressionin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPathElement
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.pathElement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPathElementin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitPathElementin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNonWildcardTypeArguments
public GenericsType[] visitNonWildcardTypeArguments(GroovyParser.NonWildcardTypeArgumentsContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.nonWildcardTypeArguments().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNonWildcardTypeArgumentsin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitNonWildcardTypeArgumentsin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeList
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.typeList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeListin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitTypeListin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArguments
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.arguments().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArgumentsin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitArgumentsin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnhancedArgumentListInPar
public Expression visitEnhancedArgumentListInPar(GroovyParser.EnhancedArgumentListInParContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.enhancedArgumentListInPar().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnhancedArgumentListInParin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitEnhancedArgumentListInParin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnhancedArgumentListElement
public Expression visitEnhancedArgumentListElement(GroovyParser.EnhancedArgumentListElementContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.enhancedArgumentListElement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnhancedArgumentListElementin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitEnhancedArgumentListElementin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStringLiteral
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.stringLiteral().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStringLiteralin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitStringLiteralin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIndexPropertyArgs
public Tuple2<org.antlr.v4.runtime.Token,Expression> visitIndexPropertyArgs(GroovyParser.IndexPropertyArgsContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.indexPropertyArgs().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIndexPropertyArgsin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitIndexPropertyArgsin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNamedPropertyArgs
public java.util.List<MapEntryExpression> visitNamedPropertyArgs(GroovyParser.NamedPropertyArgsContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.namedPropertyArgs().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNamedPropertyArgsin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitNamedPropertyArgsin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNamePart
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.namePart().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNamePartin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitNamePartin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDynamicMemberName
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.dynamicMemberName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDynamicMemberNamein interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitDynamicMemberNamein classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPostfixExpression
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.postfixExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPostfixExpressionin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitPostfixExpressionin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnaryNotExprAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theunaryNotExprAltlabeled alternative inGroovyParser.castOperandExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitUnaryNotExprAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitUnaryNotExprAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCastExprAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thecastExprAltlabeled alternative inGroovyParser.castOperandExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCastExprAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitCastExprAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPowerExprAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thepowerExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPowerExprAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitPowerExprAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnaryAddExprAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theunaryAddExprAltlabeled alternative inGroovyParser.castOperandExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitUnaryAddExprAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitUnaryAddExprAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultiplicativeExprAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by themultiplicativeExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMultiplicativeExprAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitMultiplicativeExprAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAdditiveExprAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theadditiveExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAdditiveExprAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitAdditiveExprAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitShiftExprAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theshiftExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitShiftExprAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitShiftExprAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRelationalExprAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by therelationalExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRelationalExprAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitRelationalExprAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEqualityExprAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theequalityExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEqualityExprAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitEqualityExprAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRegexExprAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theregexExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRegexExprAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitRegexExprAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAndExprAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theandExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAndExprAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitAndExprAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExclusiveOrExprAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theexclusiveOrExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExclusiveOrExprAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitExclusiveOrExprAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInclusiveOrExprAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theinclusiveOrExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInclusiveOrExprAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitInclusiveOrExprAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLogicalAndExprAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thelogicalAndExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLogicalAndExprAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitLogicalAndExprAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLogicalOrExprAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thelogicalOrExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLogicalOrExprAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitLogicalOrExprAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConditionalExprAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theconditionalExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConditionalExprAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitConditionalExprAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultipleAssignmentExprAlt
public BinaryExpression visitMultipleAssignmentExprAlt(GroovyParser.MultipleAssignmentExprAltContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by themultipleAssignmentExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMultipleAssignmentExprAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitMultipleAssignmentExprAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAssignmentExprAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theassignmentExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAssignmentExprAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitAssignmentExprAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIdentifierPrmrAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theidentifierPrmrAltlabeled alternative inGroovyParser.commandPrimary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIdentifierPrmrAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitIdentifierPrmrAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNewPrmrAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thenewPrmrAltlabeled alternative inGroovyParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNewPrmrAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitNewPrmrAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitThisPrmrAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thethisPrmrAltlabeled alternative inGroovyParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitThisPrmrAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitThisPrmrAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSuperPrmrAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thesuperPrmrAltlabeled alternative inGroovyParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSuperPrmrAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitSuperPrmrAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCreator
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.creator(int).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCreatorin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitCreatorin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDim
public Tuple3<Expression,java.util.List<AnnotationNode>,org.antlr.v4.runtime.tree.TerminalNode> visitDim(GroovyParser.DimContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.dim().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDimin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitDimin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnonymousInnerClassDeclaration
public InnerClassNode visitAnonymousInnerClassDeclaration(GroovyParser.AnonymousInnerClassDeclarationContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.anonymousInnerClassDeclaration(int).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnonymousInnerClassDeclarationin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitAnonymousInnerClassDeclarationin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCreatedName
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.createdName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCreatedNamein interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitCreatedNamein classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMap
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.map().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMapin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitMapin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMapEntryList
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.mapEntryList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMapEntryListin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitMapEntryListin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMapEntry
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.mapEntry().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMapEntryin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitMapEntryin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMapEntryLabel
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.mapEntryLabel().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMapEntryLabelin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitMapEntryLabelin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitKeywords
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.keywords().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitKeywordsin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitKeywordsin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBuiltInType
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.builtInType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBuiltInTypein interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitBuiltInTypein classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitList
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.list().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitListin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitListin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpressionList
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.expressionList(boolean).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExpressionListin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitExpressionListin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpressionListElement
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.expressionListElement(boolean).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExpressionListElementin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitExpressionListElementin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIntegerLiteralAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theintegerLiteralAltlabeled alternative inGroovyParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIntegerLiteralAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitIntegerLiteralAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFloatingPointLiteralAlt
public ConstantExpression visitFloatingPointLiteralAlt(GroovyParser.FloatingPointLiteralAltContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thefloatingPointLiteralAltlabeled alternative inGroovyParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFloatingPointLiteralAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitFloatingPointLiteralAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBooleanLiteralAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thebooleanLiteralAltlabeled alternative inGroovyParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBooleanLiteralAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitBooleanLiteralAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNullLiteralAlt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thenullLiteralAltlabeled alternative inGroovyParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNullLiteralAltin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitNullLiteralAltin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitGstring
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.gstring().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitGstringin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitGstringin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitGstringValue
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.gstringValue().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitGstringValuein interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitGstringValuein classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitGstringPath
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.gstringPath().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitGstringPathin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitGstringPathin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStandardLambdaExpression
public LambdaExpression visitStandardLambdaExpression(GroovyParser.StandardLambdaExpressionContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.standardLambdaExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStandardLambdaExpressionin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitStandardLambdaExpressionin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStandardLambdaParameters
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.standardLambdaParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStandardLambdaParametersin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitStandardLambdaParametersin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLambdaBody
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.lambdaBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLambdaBodyin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitLambdaBodyin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClosure
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.closure().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClosurein interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitClosurein classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFormalParameters
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.formalParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFormalParametersin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitFormalParametersin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFormalParameterList
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.formalParameterList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFormalParameterListin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitFormalParameterListin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFormalParameter
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.formalParameter().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFormalParameterin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitFormalParameterin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitThisFormalParameter
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.thisFormalParameter().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitThisFormalParameterin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitThisFormalParameterin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassOrInterfaceModifiersOpt
public java.util.List<ModifierNode> visitClassOrInterfaceModifiersOpt(GroovyParser.ClassOrInterfaceModifiersOptContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.classOrInterfaceModifiersOpt().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassOrInterfaceModifiersOptin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitClassOrInterfaceModifiersOptin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassOrInterfaceModifiers
public java.util.List<ModifierNode> visitClassOrInterfaceModifiers(GroovyParser.ClassOrInterfaceModifiersContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.classOrInterfaceModifiers().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassOrInterfaceModifiersin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitClassOrInterfaceModifiersin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassOrInterfaceModifier
public ModifierNode visitClassOrInterfaceModifier(GroovyParser.ClassOrInterfaceModifierContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.classOrInterfaceModifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassOrInterfaceModifierin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitClassOrInterfaceModifierin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModifier
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.modifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitModifierin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitModifierin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModifiers
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.modifiers().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitModifiersin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitModifiersin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModifiersOpt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.modifiersOpt().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitModifiersOptin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitModifiersOptin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableModifier
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.variableModifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableModifierin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitVariableModifierin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableModifiersOpt
public java.util.List<ModifierNode> visitVariableModifiersOpt(GroovyParser.VariableModifiersOptContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.variableModifiersOpt().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableModifiersOptin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitVariableModifiersOptin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableModifiers
public java.util.List<ModifierNode> visitVariableModifiers(GroovyParser.VariableModifiersContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.variableModifiers().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableModifiersin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitVariableModifiersin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEmptyDims
public java.util.List<java.util.List<AnnotationNode>> visitEmptyDims(GroovyParser.EmptyDimsContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.emptyDims().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEmptyDimsin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitEmptyDimsin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEmptyDimsOpt
public java.util.List<java.util.List<AnnotationNode>> visitEmptyDimsOpt(GroovyParser.EmptyDimsOptContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.emptyDimsOpt().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEmptyDimsOptin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitEmptyDimsOptin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitType
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.type().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypein interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitTypein classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassOrInterfaceType
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.classOrInterfaceType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassOrInterfaceTypein interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitClassOrInterfaceTypein classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeArgumentsOrDiamond
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.typeArgumentsOrDiamond().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeArgumentsOrDiamondin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitTypeArgumentsOrDiamondin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeArguments
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.typeArguments().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeArgumentsin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitTypeArgumentsin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeArgument
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.typeArgument().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeArgumentin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitTypeArgumentin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrimitiveType
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.primitiveType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrimitiveTypein interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitPrimitiveTypein classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableDeclaratorId
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.variableDeclaratorId().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableDeclaratorIdin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitVariableDeclaratorIdin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableNames
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.variableNames().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableNamesin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitVariableNamesin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClosureOrLambdaExpression
public ClosureExpression visitClosureOrLambdaExpression(GroovyParser.ClosureOrLambdaExpressionContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.closureOrLambdaExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClosureOrLambdaExpressionin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitClosureOrLambdaExpressionin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlockStatementsOpt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.blockStatementsOpt().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBlockStatementsOptin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitBlockStatementsOptin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlockStatements
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.blockStatements().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBlockStatementsin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitBlockStatementsin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlockStatement
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.blockStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBlockStatementin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitBlockStatementin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationsOpt
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.annotationsOpt().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationsOptin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitAnnotationsOptin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotation
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.annotation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitAnnotationin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElementValues
public java.util.List<Tuple2<java.lang.String,Expression>> visitElementValues(GroovyParser.ElementValuesContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.elementValues().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValuesin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitElementValuesin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationName
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.annotationName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationNamein interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitAnnotationNamein classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElementValuePairs
public java.util.Map<java.lang.String,Expression> visitElementValuePairs(GroovyParser.ElementValuePairsContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.elementValuePairs().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValuePairsin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitElementValuePairsin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElementValuePair
public Tuple2<java.lang.String,Expression> visitElementValuePair(GroovyParser.ElementValuePairContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.elementValuePair().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValuePairin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitElementValuePairin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElementValue
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.elementValue().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValuein interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitElementValuein classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElementValueArrayInitializer
public ListExpression visitElementValueArrayInitializer(GroovyParser.ElementValueArrayInitializerContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.elementValueArrayInitializer().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValueArrayInitializerin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitElementValueArrayInitializerin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassName
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.className().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassNamein interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitClassNamein classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIdentifier
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.identifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIdentifierin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitIdentifierin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQualifiedName
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.qualifiedName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQualifiedNamein interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitQualifiedNamein classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotatedQualifiedClassName
public ClassNode visitAnnotatedQualifiedClassName(GroovyParser.AnnotatedQualifiedClassNameContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.annotatedQualifiedClassName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotatedQualifiedClassNamein interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitAnnotatedQualifiedClassNamein classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQualifiedClassNameList
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.qualifiedClassNameList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQualifiedClassNameListin interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitQualifiedClassNameListin classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQualifiedClassName
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.qualifiedClassName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQualifiedClassNamein interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitQualifiedClassNamein classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQualifiedStandardClassName
public ClassNode visitQualifiedStandardClassName(GroovyParser.QualifiedStandardClassNameContext ctx)Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.qualifiedStandardClassName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQualifiedStandardClassNamein interfaceGroovyParserVisitor<java.lang.Object>- Overrides:
visitQualifiedStandardClassNamein classGroovyParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visit
public java.lang.Object visit(org.antlr.v4.runtime.tree.ParseTree tree)Visit tree safely, no NPE occurred when the tree is null.- Specified by:
visitin interfaceorg.antlr.v4.runtime.tree.ParseTreeVisitor<java.lang.Object>- Overrides:
visitin classorg.antlr.v4.runtime.tree.AbstractParseTreeVisitor<java.lang.Object>- Parameters:
tree- an AST node- Returns:
- the visiting result
-
appendStatementsToBlockStatement
-