Class AstBuilder
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<Object>
,GroovyParserVisitor<Object>
-
Constructor Summary
ConstructorDescriptionAstBuilder
(SourceUnit sourceUnit, boolean groovydocEnabled, boolean runtimeGroovydocEnabled) -
Method Summary
Modifier and TypeMethodDescriptionappendStatementsToBlockStatement
(BlockStatement bs, Statement... statements) buildAST()
visit
(org.antlr.v4.runtime.tree.ParseTree tree) Visit tree safely, no NPE occurred when the tree is null.Visit a parse tree produced by theadditiveExprAlt
labeled alternative inGroovyParser.expression()
.Visit a parse tree produced by theandExprAlt
labeled alternative inGroovyParser.expression()
.Visit a parse tree produced byGroovyParser.annotatedQualifiedClassName()
.Visit a parse tree produced byGroovyParser.annotation()
.Visit a parse tree produced byGroovyParser.annotationName()
.Visit a parse tree produced byGroovyParser.annotationsOpt()
.Visit a parse tree produced byGroovyParser.anonymousInnerClassDeclaration(int)
.Visit a parse tree produced byGroovyParser.arguments()
.Visit a parse tree produced byGroovyParser.arrayInitializer()
.Visit a parse tree produced byGroovyParser.assertStatement()
.Visit a parse tree produced by theassignmentExprAlt
labeled alternative inGroovyParser.expression()
.Visit a parse tree produced byGroovyParser.block()
.Visit a parse tree produced byGroovyParser.blockStatement()
.Visit a parse tree produced byGroovyParser.blockStatements()
.Visit a parse tree produced byGroovyParser.blockStatementsOpt()
.Visit a parse tree produced by thebooleanLiteralAlt
labeled alternative inGroovyParser.literal()
.Visit a parse tree produced byGroovyParser.breakStatement()
.Visit a parse tree produced byGroovyParser.builtInType()
.Visit a parse tree produced by thecastExprAlt
labeled alternative inGroovyParser.castOperandExpression()
.Visit a parse tree produced byGroovyParser.castParExpression()
.Multi-catch(1..*) clause will be unpacked to several normal catch clauses, so the return type is ListVisit a parse tree produced byGroovyParser.catchType()
.Visit a parse tree produced byGroovyParser.classBody(int)
.Visit a parse tree produced byGroovyParser.classBodyDeclaration(int)
.Visit a parse tree produced byGroovyParser.classDeclaration()
.Visit a parse tree produced byGroovyParser.classicalForControl()
.Visit a parse tree produced byGroovyParser.className()
.Visit a parse tree produced byGroovyParser.classOrInterfaceModifier()
.Visit a parse tree produced byGroovyParser.classOrInterfaceModifiers()
.Visit a parse tree produced byGroovyParser.classOrInterfaceModifiersOpt()
.Visit a parse tree produced byGroovyParser.classOrInterfaceType()
.Visit a parse tree produced byGroovyParser.closure()
.Visit a parse tree produced byGroovyParser.closureOrLambdaExpression()
.Visit a parse tree produced byGroovyParser.commandArgument()
.Visit a parse tree produced by thecommandExprAlt
labeled alternative inGroovyParser.statementExpression()
.Visit a parse tree produced byGroovyParser.commandExpression()
.Visit a parse tree produced byGroovyParser.compactConstructorDeclaration()
.Visit a parse tree produced byGroovyParser.compilationUnit()
.Visit a parse tree produced by theconditionalExprAlt
labeled alternative inGroovyParser.expression()
.Visit a parse tree produced byGroovyParser.conditionalStatement()
.Visit a parse tree produced byGroovyParser.continueStatement()
.Visit a parse tree produced byGroovyParser.createdName()
.Visit a parse tree produced byGroovyParser.creator(int)
.Tuple3<Expression,
List<AnnotationNode>, org.antlr.v4.runtime.tree.TerminalNode> Visit a parse tree produced byGroovyParser.dim()
.Visit a parse tree produced by thedoWhileStmtAlt
labeled alternative inGroovyParser.loopStatement()
.Visit a parse tree produced byGroovyParser.dynamicMemberName()
.Visit a parse tree produced byGroovyParser.elementValue()
.Visit a parse tree produced byGroovyParser.elementValueArrayInitializer()
.Visit a parse tree produced byGroovyParser.elementValuePair()
.Visit a parse tree produced byGroovyParser.elementValuePairs()
.Visit a parse tree produced byGroovyParser.elementValues()
.Visit a parse tree produced byGroovyParser.emptyDims()
.Visit a parse tree produced byGroovyParser.emptyDimsOpt()
.Visit a parse tree produced byGroovyParser.enhancedArgumentListElement()
.Visit a parse tree produced byGroovyParser.enhancedArgumentListInPar()
.Visit a parse tree produced byGroovyParser.enhancedForControl()
.Visit a parse tree produced byGroovyParser.enhancedStatementExpression()
.Visit a parse tree produced byGroovyParser.enumConstant()
.Visit a parse tree produced byGroovyParser.enumConstants()
.Visit a parse tree produced by theequalityExprAlt
labeled alternative inGroovyParser.expression()
.Visit a parse tree produced by theexclusiveOrExprAlt
labeled alternative inGroovyParser.expression()
.Visit a parse tree produced byGroovyParser.expressionInPar()
.Visit a parse tree produced byGroovyParser.expressionList(boolean)
.Visit a parse tree produced byGroovyParser.expressionListElement(boolean)
.Visit a parse tree produced byGroovyParser.fieldDeclaration()
.Visit a parse tree produced byGroovyParser.finallyBlock()
.Visit a parse tree produced by thefloatingPointLiteralAlt
labeled alternative inGroovyParser.literal()
.Visit a parse tree produced byGroovyParser.forControl()
.Visit a parse tree produced byGroovyParser.forInit()
.Visit a parse tree produced byGroovyParser.formalParameter()
.Visit a parse tree produced byGroovyParser.formalParameterList()
.Visit a parse tree produced byGroovyParser.formalParameters()
.Visit a parse tree produced by theforStmtAlt
labeled alternative inGroovyParser.loopStatement()
.Visit a parse tree produced byGroovyParser.forUpdate()
.Visit a parse tree produced byGroovyParser.gstring()
.Visit a parse tree produced byGroovyParser.gstringPath()
.Visit a parse tree produced byGroovyParser.gstringValue()
.Visit a parse tree produced byGroovyParser.identifier()
.Visit a parse tree produced by theidentifierPrmrAlt
labeled alternative inGroovyParser.commandPrimary()
.Visit a parse tree produced byGroovyParser.ifElseStatement()
.Visit a parse tree produced by theimplicationExprAlt
labeled alternative inGroovyParser.expression()
.Visit a parse tree produced byGroovyParser.importDeclaration()
.Visit a parse tree produced by theinclusiveOrExprAlt
labeled alternative inGroovyParser.expression()
.Tuple2<org.antlr.v4.runtime.Token,
Expression> Visit a parse tree produced byGroovyParser.indexPropertyArgs()
.Visit a parse tree produced by theintegerLiteralAlt
labeled alternative inGroovyParser.literal()
.Visit a parse tree produced byGroovyParser.keywords()
.Visit a parse tree produced by thelabeledStmtAlt
labeled alternative inGroovyParser.statement()
.Visit a parse tree produced byGroovyParser.lambdaBody()
.Visit a parse tree produced byGroovyParser.list()
.org.apache.groovy.parser.antlr4.AstBuilder.DeclarationListStatement
Visit a parse tree produced byGroovyParser.localVariableDeclaration()
.Visit a parse tree produced by thelogicalAndExprAlt
labeled alternative inGroovyParser.expression()
.Visit a parse tree produced by thelogicalOrExprAlt
labeled alternative inGroovyParser.expression()
.Visit a parse tree produced by theloopStmtAlt
labeled alternative inGroovyParser.statement()
.Visit a parse tree produced byGroovyParser.map()
.Visit a parse tree produced byGroovyParser.mapEntry()
.Visit a parse tree produced byGroovyParser.mapEntryLabel()
.Visit a parse tree produced byGroovyParser.mapEntryList()
.Visit a parse tree produced byGroovyParser.memberDeclaration(int)
.Visit a parse tree produced byGroovyParser.methodBody()
.Visit a parse tree produced byGroovyParser.methodDeclaration(int, int)
.Visit a parse tree produced byGroovyParser.methodName()
.Visit a parse tree produced byGroovyParser.modifier()
.Visit a parse tree produced byGroovyParser.modifiers()
.Visit a parse tree produced byGroovyParser.modifiersOpt()
.Visit a parse tree produced by themultipleAssignmentExprAlt
labeled alternative inGroovyParser.expression()
.Visit a parse tree produced by themultiplicativeExprAlt
labeled alternative inGroovyParser.expression()
.Visit a parse tree produced byGroovyParser.namedPropertyArgs()
.Visit a parse tree produced byGroovyParser.namePart()
.Visit a parse tree produced by thenewPrmrAlt
labeled alternative inGroovyParser.primary()
.Visit a parse tree produced byGroovyParser.nonWildcardTypeArguments()
.Visit a parse tree produced by thenullLiteralAlt
labeled alternative inGroovyParser.literal()
.Visit a parse tree produced byGroovyParser.packageDeclaration()
.Visit a parse tree produced byGroovyParser.parExpression()
.Visit a parse tree produced byGroovyParser.pathElement()
.Visit a parse tree produced byGroovyParser.pathExpression()
.Visit a parse tree produced byGroovyParser.postfixExpression()
.Visit a parse tree produced by thepowerExprAlt
labeled alternative inGroovyParser.expression()
.Visit a parse tree produced byGroovyParser.primitiveType()
.Visit a parse tree produced byGroovyParser.qualifiedClassName()
.Visit a parse tree produced byGroovyParser.qualifiedClassNameList()
.Visit a parse tree produced byGroovyParser.qualifiedName()
.Visit a parse tree produced byGroovyParser.qualifiedStandardClassName()
.Visit a parse tree produced by theregexExprAlt
labeled alternative inGroovyParser.expression()
.Visit a parse tree produced by therelationalExprAlt
labeled alternative inGroovyParser.expression()
.Visit a parse tree produced byGroovyParser.resource()
.Visit a parse tree produced byGroovyParser.resourceList()
.Visit a parse tree produced byGroovyParser.resources()
.Visit a parse tree produced by thereturnStmtAlt
labeled alternative inGroovyParser.statement()
.Visit a parse tree produced byGroovyParser.returnType(int)
.Visit a parse tree produced byGroovyParser.scriptStatements()
.Visit a parse tree produced by theshiftExprAlt
labeled alternative inGroovyParser.expression()
.Visit a parse tree produced byGroovyParser.standardLambdaExpression()
.Visit a parse tree produced byGroovyParser.standardLambdaParameters()
.Visit a parse tree produced byGroovyParser.stringLiteral()
.Visit a parse tree produced by thesuperPrmrAlt
labeled alternative inGroovyParser.primary()
.visitSwitchBlockStatementExpressionGroup
(GroovyParser.SwitchBlockStatementExpressionGroupContext ctx) Visit a parse tree produced byGroovyParser.switchBlockStatementExpressionGroup()
.Visit a parse tree produced byGroovyParser.switchBlockStatementGroup()
.Visit a parse tree produced by theswitchExprAlt
labeled alternative inGroovyParser.expression()
.switch(a) { case 0, 1 -> 'a'; case 2 -> 'b'; default -> 'z'; }Tuple3<org.antlr.v4.runtime.Token,
List<Expression>, Integer> Visit a parse tree produced byGroovyParser.switchExpressionLabel()
.Tuple2<org.antlr.v4.runtime.Token,
Expression> Visit a parse tree produced byGroovyParser.switchLabel()
.Visit a parse tree produced byGroovyParser.switchStatement()
.Visit a parse tree produced by thesynchronizedStmtAlt
labeled alternative inGroovyParser.statement()
.Visit a parse tree produced byGroovyParser.thisFormalParameter()
.Visit a parse tree produced by thethisPrmrAlt
labeled alternative inGroovyParser.primary()
.Visit a parse tree produced by thethrowStmtAlt
labeled alternative inGroovyParser.statement()
.Visit a parse tree produced byGroovyParser.tryCatchStatement()
.Visit a parse tree produced byGroovyParser.type()
.Visit a parse tree produced byGroovyParser.typeArgument()
.Visit a parse tree produced byGroovyParser.typeArguments()
.Visit a parse tree produced byGroovyParser.typeArgumentsOrDiamond()
.Visit a parse tree produced byGroovyParser.typeBound()
.Visit a parse tree produced byGroovyParser.typeDeclaration()
.Visit a parse tree produced byGroovyParser.typeList()
.Visit a parse tree produced byGroovyParser.typeNamePair()
.Visit a parse tree produced byGroovyParser.typeNamePairs()
.Visit a parse tree produced byGroovyParser.typeParameter()
.Visit a parse tree produced byGroovyParser.typeParameters()
.Visit a parse tree produced by theunaryAddExprAlt
labeled alternative inGroovyParser.castOperandExpression()
.Visit a parse tree produced by theunaryNotExprAlt
labeled alternative inGroovyParser.castOperandExpression()
.org.apache.groovy.parser.antlr4.AstBuilder.DeclarationListStatement
Visit a parse tree produced byGroovyParser.variableDeclaration(int)
.Visit a parse tree produced byGroovyParser.variableDeclarator()
.Visit a parse tree produced byGroovyParser.variableDeclaratorId()
.Visit a parse tree produced byGroovyParser.variableDeclarators()
.Visit a parse tree produced byGroovyParser.variableInitializer()
.Visit a parse tree produced byGroovyParser.variableInitializers()
.Visit a parse tree produced byGroovyParser.variableModifier()
.Visit a parse tree produced byGroovyParser.variableModifiers()
.Visit a parse tree produced byGroovyParser.variableModifiersOpt()
.Visit a parse tree produced byGroovyParser.variableNames()
.Visit a parse tree produced by thewhileStmtAlt
labeled alternative inGroovyParser.loopStatement()
.Visit a parse tree produced byGroovyParser.yieldStatement()
.Visit a parse tree produced by theyieldStmtAlt
labeled alternative inGroovyParser.statement()
.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, visitTryCatchStmtAlt
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visitChildren, visitErrorNode, visitTerminal
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visitChildren, visitErrorNode, visitTerminal
-
Constructor Details
-
AstBuilder
-
-
Method Details
-
buildAST
-
visitCompilationUnit
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitCompilationUnit
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitCompilationUnit
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitScriptStatements
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitScriptStatements
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitScriptStatements
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPackageDeclaration
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitPackageDeclaration
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitPackageDeclaration
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitImportDeclaration
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitImportDeclaration
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitImportDeclaration
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAssertStatement
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitAssertStatement
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitAssertStatement
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitConditionalStatement
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitConditionalStatement
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitConditionalStatement
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIfElseStatement
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitIfElseStatement
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitIfElseStatement
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLoopStmtAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theloopStmtAlt
labeled alternative inGroovyParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLoopStmtAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitLoopStmtAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitForStmtAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theforStmtAlt
labeled alternative inGroovyParser.loopStatement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitForStmtAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitForStmtAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitForControl
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitForControl
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitForControl
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitForInit
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitForInit
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitForInit
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitForUpdate
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitForUpdate
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitForUpdate
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnhancedForControl
public Tuple2<Parameter,Expression> visitEnhancedForControl(GroovyParser.EnhancedForControlContext ctx) Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitEnhancedForControl
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitEnhancedForControl
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassicalForControl
public Tuple2<Parameter,Expression> visitClassicalForControl(GroovyParser.ClassicalForControlContext ctx) Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitClassicalForControl
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitClassicalForControl
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitWhileStmtAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thewhileStmtAlt
labeled alternative inGroovyParser.loopStatement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitWhileStmtAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitWhileStmtAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDoWhileStmtAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thedoWhileStmtAlt
labeled alternative inGroovyParser.loopStatement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDoWhileStmtAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitDoWhileStmtAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTryCatchStatement
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitTryCatchStatement
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitTryCatchStatement
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitResources
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitResources
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitResources
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitResourceList
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitResourceList
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitResourceList
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitResource
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitResource
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitResource
in classGroovyParserBaseVisitor<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:
visitCatchClause
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitCatchClause
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- a list of CatchStatement instances
-
visitCatchType
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitCatchType
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitCatchType
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFinallyBlock
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitFinallyBlock
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitFinallyBlock
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchStatement
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitSwitchStatement
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitSwitchStatement
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchBlockStatementGroup
public List<Statement> visitSwitchBlockStatementGroup(GroovyParser.SwitchBlockStatementGroupContext ctx) Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitSwitchBlockStatementGroup
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitSwitchBlockStatementGroup
in classGroovyParserBaseVisitor<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:GroovyParserBaseVisitor
Visit 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:
visitSwitchLabel
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitSwitchLabel
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSynchronizedStmtAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thesynchronizedStmtAlt
labeled alternative inGroovyParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSynchronizedStmtAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitSynchronizedStmtAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitReturnStmtAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thereturnStmtAlt
labeled alternative inGroovyParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitReturnStmtAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitReturnStmtAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitThrowStmtAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thethrowStmtAlt
labeled alternative inGroovyParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitThrowStmtAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitThrowStmtAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLabeledStmtAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thelabeledStmtAlt
labeled alternative inGroovyParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLabeledStmtAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitLabeledStmtAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBreakStatement
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitBreakStatement
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitBreakStatement
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitYieldStatement
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced byGroovyParser.yieldStatement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitYieldStatement
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitYieldStatement
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitYieldStmtAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theyieldStmtAlt
labeled alternative inGroovyParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitYieldStmtAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitYieldStmtAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitContinueStatement
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitContinueStatement
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitContinueStatement
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchExprAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theswitchExprAlt
labeled alternative inGroovyParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSwitchExprAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitSwitchExprAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchExpression
switch(a) { case 0, 1 -> 'a'; case 2 -> 'b'; default -> 'z'; }
the above code will be transformed to:{-> switch(a) { case 0: case 1: return 'a'; case 2: return 'b'; default: return 'z'; } }()
- Specified by:
visitSwitchExpression
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitSwitchExpression
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
MethodCallExpression
instance
-
visitSwitchBlockStatementExpressionGroup
public Tuple3<List<Statement>,Boolean, visitSwitchBlockStatementExpressionGroupBoolean> (GroovyParser.SwitchBlockStatementExpressionGroupContext ctx) Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced byGroovyParser.switchBlockStatementExpressionGroup()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSwitchBlockStatementExpressionGroup
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitSwitchBlockStatementExpressionGroup
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSwitchExpressionLabel
public Tuple3<org.antlr.v4.runtime.Token,List<Expression>, visitSwitchExpressionLabelInteger> (GroovyParser.SwitchExpressionLabelContext ctx) Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced byGroovyParser.switchExpressionLabel()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSwitchExpressionLabel
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitSwitchExpressionLabel
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeDeclaration
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitTypeDeclaration
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitTypeDeclaration
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassDeclaration
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitClassDeclaration
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitClassDeclaration
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassBody
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitClassBody
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitClassBody
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnumConstants
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitEnumConstants
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitEnumConstants
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnumConstant
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitEnumConstant
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitEnumConstant
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassBodyDeclaration
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitClassBodyDeclaration
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitClassBodyDeclaration
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMemberDeclaration
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitMemberDeclaration
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitMemberDeclaration
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeParameters
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitTypeParameters
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitTypeParameters
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeParameter
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitTypeParameter
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitTypeParameter
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeBound
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitTypeBound
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitTypeBound
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFieldDeclaration
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitFieldDeclaration
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitFieldDeclaration
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCompactConstructorDeclaration
public MethodNode visitCompactConstructorDeclaration(GroovyParser.CompactConstructorDeclarationContext ctx) Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced byGroovyParser.compactConstructorDeclaration()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCompactConstructorDeclaration
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitCompactConstructorDeclaration
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMethodDeclaration
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitMethodDeclaration
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitMethodDeclaration
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMethodName
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitMethodName
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitMethodName
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitReturnType
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitReturnType
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitReturnType
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMethodBody
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitMethodBody
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitMethodBody
in classGroovyParserBaseVisitor<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:GroovyParserBaseVisitor
Visit 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:
visitLocalVariableDeclaration
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitLocalVariableDeclaration
in classGroovyParserBaseVisitor<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:GroovyParserBaseVisitor
Visit 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:
visitVariableDeclaration
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitVariableDeclaration
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeNamePairs
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitTypeNamePairs
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitTypeNamePairs
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeNamePair
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitTypeNamePair
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitTypeNamePair
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableDeclarators
public List<DeclarationExpression> visitVariableDeclarators(GroovyParser.VariableDeclaratorsContext ctx) Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitVariableDeclarators
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitVariableDeclarators
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableDeclarator
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitVariableDeclarator
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitVariableDeclarator
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableInitializer
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitVariableInitializer
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitVariableInitializer
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableInitializers
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitVariableInitializers
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitVariableInitializers
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitArrayInitializer
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitArrayInitializer
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitArrayInitializer
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBlock
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitBlock
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitBlock
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCommandExprAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thecommandExprAlt
labeled alternative inGroovyParser.statementExpression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCommandExprAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitCommandExprAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCommandExpression
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitCommandExpression
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitCommandExpression
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCommandArgument
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitCommandArgument
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitCommandArgument
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCastParExpression
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitCastParExpression
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitCastParExpression
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitParExpression
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitParExpression
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitParExpression
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExpressionInPar
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitExpressionInPar
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitExpressionInPar
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnhancedStatementExpression
public Expression visitEnhancedStatementExpression(GroovyParser.EnhancedStatementExpressionContext ctx) Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitEnhancedStatementExpression
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitEnhancedStatementExpression
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPathExpression
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitPathExpression
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitPathExpression
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPathElement
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitPathElement
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitPathElement
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNonWildcardTypeArguments
public GenericsType[] visitNonWildcardTypeArguments(GroovyParser.NonWildcardTypeArgumentsContext ctx) Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitNonWildcardTypeArguments
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitNonWildcardTypeArguments
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeList
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitTypeList
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitTypeList
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitArguments
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitArguments
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitArguments
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnhancedArgumentListInPar
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitEnhancedArgumentListInPar
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitEnhancedArgumentListInPar
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEnhancedArgumentListElement
public Expression visitEnhancedArgumentListElement(GroovyParser.EnhancedArgumentListElementContext ctx) Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitEnhancedArgumentListElement
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitEnhancedArgumentListElement
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitStringLiteral
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitStringLiteral
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitStringLiteral
in classGroovyParserBaseVisitor<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:GroovyParserBaseVisitor
Visit 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:
visitIndexPropertyArgs
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitIndexPropertyArgs
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNamedPropertyArgs
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitNamedPropertyArgs
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitNamedPropertyArgs
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNamePart
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitNamePart
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitNamePart
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDynamicMemberName
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitDynamicMemberName
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitDynamicMemberName
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPostfixExpression
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitPostfixExpression
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitPostfixExpression
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitUnaryNotExprAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theunaryNotExprAlt
labeled alternative inGroovyParser.castOperandExpression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitUnaryNotExprAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitUnaryNotExprAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCastExprAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thecastExprAlt
labeled alternative inGroovyParser.castOperandExpression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCastExprAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitCastExprAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPowerExprAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thepowerExprAlt
labeled alternative inGroovyParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPowerExprAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitPowerExprAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitUnaryAddExprAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theunaryAddExprAlt
labeled alternative inGroovyParser.castOperandExpression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitUnaryAddExprAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitUnaryAddExprAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMultiplicativeExprAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by themultiplicativeExprAlt
labeled alternative inGroovyParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMultiplicativeExprAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitMultiplicativeExprAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAdditiveExprAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theadditiveExprAlt
labeled alternative inGroovyParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAdditiveExprAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitAdditiveExprAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitShiftExprAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theshiftExprAlt
labeled alternative inGroovyParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitShiftExprAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitShiftExprAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitRelationalExprAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by therelationalExprAlt
labeled alternative inGroovyParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitRelationalExprAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitRelationalExprAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEqualityExprAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theequalityExprAlt
labeled alternative inGroovyParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitEqualityExprAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitEqualityExprAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitRegexExprAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theregexExprAlt
labeled alternative inGroovyParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitRegexExprAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitRegexExprAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAndExprAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theandExprAlt
labeled alternative inGroovyParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAndExprAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitAndExprAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExclusiveOrExprAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theexclusiveOrExprAlt
labeled alternative inGroovyParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitExclusiveOrExprAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitExclusiveOrExprAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInclusiveOrExprAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theinclusiveOrExprAlt
labeled alternative inGroovyParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInclusiveOrExprAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitInclusiveOrExprAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLogicalAndExprAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thelogicalAndExprAlt
labeled alternative inGroovyParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLogicalAndExprAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitLogicalAndExprAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLogicalOrExprAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thelogicalOrExprAlt
labeled alternative inGroovyParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLogicalOrExprAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitLogicalOrExprAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitImplicationExprAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theimplicationExprAlt
labeled alternative inGroovyParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitImplicationExprAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitImplicationExprAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitConditionalExprAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theconditionalExprAlt
labeled alternative inGroovyParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitConditionalExprAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitConditionalExprAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMultipleAssignmentExprAlt
public BinaryExpression visitMultipleAssignmentExprAlt(GroovyParser.MultipleAssignmentExprAltContext ctx) Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by themultipleAssignmentExprAlt
labeled alternative inGroovyParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMultipleAssignmentExprAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitMultipleAssignmentExprAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAssignmentExprAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theassignmentExprAlt
labeled alternative inGroovyParser.expression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAssignmentExprAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitAssignmentExprAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIdentifierPrmrAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theidentifierPrmrAlt
labeled alternative inGroovyParser.commandPrimary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitIdentifierPrmrAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitIdentifierPrmrAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNewPrmrAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thenewPrmrAlt
labeled alternative inGroovyParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNewPrmrAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitNewPrmrAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitThisPrmrAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thethisPrmrAlt
labeled alternative inGroovyParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitThisPrmrAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitThisPrmrAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSuperPrmrAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thesuperPrmrAlt
labeled alternative inGroovyParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSuperPrmrAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitSuperPrmrAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCreator
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitCreator
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitCreator
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDim
public Tuple3<Expression,List<AnnotationNode>, visitDimorg.antlr.v4.runtime.tree.TerminalNode> (GroovyParser.DimContext ctx) Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitDim
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitDim
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnonymousInnerClassDeclaration
public InnerClassNode visitAnonymousInnerClassDeclaration(GroovyParser.AnonymousInnerClassDeclarationContext ctx) Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitAnonymousInnerClassDeclaration
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitAnonymousInnerClassDeclaration
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCreatedName
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitCreatedName
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitCreatedName
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMap
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitMap
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitMap
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMapEntryList
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitMapEntryList
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitMapEntryList
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMapEntry
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitMapEntry
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitMapEntry
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMapEntryLabel
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitMapEntryLabel
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitMapEntryLabel
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitKeywords
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitKeywords
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitKeywords
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBuiltInType
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitBuiltInType
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitBuiltInType
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitList
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitList
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitList
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExpressionList
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitExpressionList
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitExpressionList
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitExpressionListElement
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitExpressionListElement
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitExpressionListElement
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIntegerLiteralAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theintegerLiteralAlt
labeled alternative inGroovyParser.literal()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitIntegerLiteralAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitIntegerLiteralAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFloatingPointLiteralAlt
public ConstantExpression visitFloatingPointLiteralAlt(GroovyParser.FloatingPointLiteralAltContext ctx) Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thefloatingPointLiteralAlt
labeled alternative inGroovyParser.literal()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitFloatingPointLiteralAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitFloatingPointLiteralAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBooleanLiteralAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thebooleanLiteralAlt
labeled alternative inGroovyParser.literal()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBooleanLiteralAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitBooleanLiteralAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNullLiteralAlt
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thenullLiteralAlt
labeled alternative inGroovyParser.literal()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNullLiteralAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitNullLiteralAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitGstring
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitGstring
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitGstring
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitGstringValue
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitGstringValue
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitGstringValue
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitGstringPath
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitGstringPath
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitGstringPath
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitStandardLambdaExpression
public LambdaExpression visitStandardLambdaExpression(GroovyParser.StandardLambdaExpressionContext ctx) Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitStandardLambdaExpression
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitStandardLambdaExpression
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitStandardLambdaParameters
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitStandardLambdaParameters
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitStandardLambdaParameters
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLambdaBody
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitLambdaBody
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitLambdaBody
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClosure
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitClosure
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitClosure
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFormalParameters
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitFormalParameters
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitFormalParameters
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFormalParameterList
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitFormalParameterList
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitFormalParameterList
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitFormalParameter
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitFormalParameter
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitFormalParameter
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitThisFormalParameter
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitThisFormalParameter
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitThisFormalParameter
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassOrInterfaceModifiersOpt
public List<ModifierNode> visitClassOrInterfaceModifiersOpt(GroovyParser.ClassOrInterfaceModifiersOptContext ctx) Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitClassOrInterfaceModifiersOpt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitClassOrInterfaceModifiersOpt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassOrInterfaceModifiers
public List<ModifierNode> visitClassOrInterfaceModifiers(GroovyParser.ClassOrInterfaceModifiersContext ctx) Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitClassOrInterfaceModifiers
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitClassOrInterfaceModifiers
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassOrInterfaceModifier
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitClassOrInterfaceModifier
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitClassOrInterfaceModifier
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitModifier
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitModifier
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitModifier
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitModifiers
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitModifiers
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitModifiers
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitModifiersOpt
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitModifiersOpt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitModifiersOpt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableModifier
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitVariableModifier
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitVariableModifier
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableModifiersOpt
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitVariableModifiersOpt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitVariableModifiersOpt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableModifiers
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitVariableModifiers
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitVariableModifiers
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEmptyDims
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitEmptyDims
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitEmptyDims
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEmptyDimsOpt
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitEmptyDimsOpt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitEmptyDimsOpt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitType
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitType
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitType
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassOrInterfaceType
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitClassOrInterfaceType
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitClassOrInterfaceType
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeArgumentsOrDiamond
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitTypeArgumentsOrDiamond
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitTypeArgumentsOrDiamond
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeArguments
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitTypeArguments
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitTypeArguments
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeArgument
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitTypeArgument
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitTypeArgument
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPrimitiveType
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitPrimitiveType
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitPrimitiveType
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableDeclaratorId
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitVariableDeclaratorId
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitVariableDeclaratorId
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitVariableNames
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitVariableNames
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitVariableNames
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClosureOrLambdaExpression
public ClosureExpression visitClosureOrLambdaExpression(GroovyParser.ClosureOrLambdaExpressionContext ctx) Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitClosureOrLambdaExpression
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitClosureOrLambdaExpression
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBlockStatementsOpt
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitBlockStatementsOpt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitBlockStatementsOpt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBlockStatements
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitBlockStatements
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitBlockStatements
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBlockStatement
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitBlockStatement
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitBlockStatement
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotationsOpt
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitAnnotationsOpt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitAnnotationsOpt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotation
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitAnnotation
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitAnnotation
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitElementValues
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitElementValues
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitElementValues
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotationName
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitAnnotationName
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitAnnotationName
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitElementValuePairs
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitElementValuePairs
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitElementValuePairs
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitElementValuePair
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitElementValuePair
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitElementValuePair
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitElementValue
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitElementValue
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitElementValue
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitElementValueArrayInitializer
public ListExpression visitElementValueArrayInitializer(GroovyParser.ElementValueArrayInitializerContext ctx) Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitElementValueArrayInitializer
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitElementValueArrayInitializer
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClassName
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitClassName
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitClassName
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIdentifier
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitIdentifier
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitIdentifier
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitQualifiedName
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitQualifiedName
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitQualifiedName
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitAnnotatedQualifiedClassName
public ClassNode visitAnnotatedQualifiedClassName(GroovyParser.AnnotatedQualifiedClassNameContext ctx) Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitAnnotatedQualifiedClassName
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitAnnotatedQualifiedClassName
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitQualifiedClassNameList
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitQualifiedClassNameList
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitQualifiedClassNameList
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitQualifiedClassName
Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitQualifiedClassName
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitQualifiedClassName
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitQualifiedStandardClassName
public ClassNode visitQualifiedStandardClassName(GroovyParser.QualifiedStandardClassNameContext ctx) Description copied from class:GroovyParserBaseVisitor
Visit 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:
visitQualifiedStandardClassName
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitQualifiedStandardClassName
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visit
Visit tree safely, no NPE occurred when the tree is null. -
appendStatementsToBlockStatement
-