public class AstBuilder extends GroovyParserBaseVisitor<Object>
Constructor and Description |
---|
AstBuilder(SourceUnit sourceUnit,
boolean groovydocEnabled,
boolean runtimeGroovydocEnabled) |
visitAssertStmtAlt, visitBlockStmtAlt, visitBreakStmtAlt, visitBuiltInTypePrmrAlt, visitClosureOrLambdaExpressionPrmrAlt, visitConditionalStmtAlt, visitContinueStmtAlt, visitElementValuePairName, visitEmptyStmtAlt, visitExpression, visitExpressionStmtAlt, visitGstringPrmrAlt, visitListPrmrAlt, visitLiteral, visitLiteralPrmrAlt, visitLocalVariableDeclarationStmtAlt, visitLoopStatement, visitMapPrmrAlt, visitMethodDeclarationStmtAlt, visitNls, visitParenPrmrAlt, visitPostfixExprAlt, visitPrimary, visitQualifiedNameElement, visitQualifiedNameElements, visitRparen, visitScriptStatement, visitSep, visitStatement, visitStatementExpression, visitStringLiteralAlt, visitTryCatchStmtAlt
aggregateResult, defaultResult, shouldVisitNextChild, visitChildren, visitErrorNode, visitTerminal
public AstBuilder(SourceUnit sourceUnit, boolean groovydocEnabled, boolean runtimeGroovydocEnabled)
public ModuleNode buildAST()
public ModuleNode visitCompilationUnit(GroovyParser.CompilationUnitContext ctx)
GroovyParserBaseVisitor
GroovyParser.compilationUnit()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCompilationUnit
in interface GroovyParserVisitor<Object>
visitCompilationUnit
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<ASTNode> visitScriptStatements(GroovyParser.ScriptStatementsContext ctx)
GroovyParserBaseVisitor
GroovyParser.scriptStatements()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitScriptStatements
in interface GroovyParserVisitor<Object>
visitScriptStatements
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic PackageNode visitPackageDeclaration(GroovyParser.PackageDeclarationContext ctx)
GroovyParserBaseVisitor
GroovyParser.packageDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitPackageDeclaration
in interface GroovyParserVisitor<Object>
visitPackageDeclaration
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ImportNode visitImportDeclaration(GroovyParser.ImportDeclarationContext ctx)
GroovyParserBaseVisitor
GroovyParser.importDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitImportDeclaration
in interface GroovyParserVisitor<Object>
visitImportDeclaration
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic AssertStatement visitAssertStatement(GroovyParser.AssertStatementContext ctx)
GroovyParserBaseVisitor
GroovyParser.assertStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAssertStatement
in interface GroovyParserVisitor<Object>
visitAssertStatement
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Statement visitConditionalStatement(GroovyParser.ConditionalStatementContext ctx)
GroovyParserBaseVisitor
GroovyParser.conditionalStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitConditionalStatement
in interface GroovyParserVisitor<Object>
visitConditionalStatement
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic IfStatement visitIfElseStatement(GroovyParser.IfElseStatementContext ctx)
GroovyParserBaseVisitor
GroovyParser.ifElseStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitIfElseStatement
in interface GroovyParserVisitor<Object>
visitIfElseStatement
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Statement visitLoopStmtAlt(GroovyParser.LoopStmtAltContext ctx)
GroovyParserBaseVisitor
loopStmtAlt
labeled alternative in GroovyParser.statement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitLoopStmtAlt
in interface GroovyParserVisitor<Object>
visitLoopStmtAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ForStatement visitForStmtAlt(GroovyParser.ForStmtAltContext ctx)
GroovyParserBaseVisitor
forStmtAlt
labeled alternative in GroovyParser.loopStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitForStmtAlt
in interface GroovyParserVisitor<Object>
visitForStmtAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Tuple2<Parameter,Expression> visitForControl(GroovyParser.ForControlContext ctx)
GroovyParserBaseVisitor
GroovyParser.forControl()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitForControl
in interface GroovyParserVisitor<Object>
visitForControl
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitForInit(GroovyParser.ForInitContext ctx)
GroovyParserBaseVisitor
GroovyParser.forInit()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitForInit
in interface GroovyParserVisitor<Object>
visitForInit
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitForUpdate(GroovyParser.ForUpdateContext ctx)
GroovyParserBaseVisitor
GroovyParser.forUpdate()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitForUpdate
in interface GroovyParserVisitor<Object>
visitForUpdate
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Tuple2<Parameter,Expression> visitEnhancedForControl(GroovyParser.EnhancedForControlContext ctx)
GroovyParserBaseVisitor
GroovyParser.enhancedForControl()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitEnhancedForControl
in interface GroovyParserVisitor<Object>
visitEnhancedForControl
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Tuple2<Parameter,Expression> visitClassicalForControl(GroovyParser.ClassicalForControlContext ctx)
GroovyParserBaseVisitor
GroovyParser.classicalForControl()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitClassicalForControl
in interface GroovyParserVisitor<Object>
visitClassicalForControl
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic WhileStatement visitWhileStmtAlt(GroovyParser.WhileStmtAltContext ctx)
GroovyParserBaseVisitor
whileStmtAlt
labeled alternative in GroovyParser.loopStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitWhileStmtAlt
in interface GroovyParserVisitor<Object>
visitWhileStmtAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic DoWhileStatement visitDoWhileStmtAlt(GroovyParser.DoWhileStmtAltContext ctx)
GroovyParserBaseVisitor
doWhileStmtAlt
labeled alternative in GroovyParser.loopStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitDoWhileStmtAlt
in interface GroovyParserVisitor<Object>
visitDoWhileStmtAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Statement visitTryCatchStatement(GroovyParser.TryCatchStatementContext ctx)
GroovyParserBaseVisitor
GroovyParser.tryCatchStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitTryCatchStatement
in interface GroovyParserVisitor<Object>
visitTryCatchStatement
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<ExpressionStatement> visitResources(GroovyParser.ResourcesContext ctx)
GroovyParserBaseVisitor
GroovyParser.resources()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitResources
in interface GroovyParserVisitor<Object>
visitResources
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<ExpressionStatement> visitResourceList(GroovyParser.ResourceListContext ctx)
GroovyParserBaseVisitor
GroovyParser.resourceList()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitResourceList
in interface GroovyParserVisitor<Object>
visitResourceList
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ExpressionStatement visitResource(GroovyParser.ResourceContext ctx)
GroovyParserBaseVisitor
GroovyParser.resource()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitResource
in interface GroovyParserVisitor<Object>
visitResource
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<CatchStatement> visitCatchClause(GroovyParser.CatchClauseContext ctx)
visitCatchClause
in interface GroovyParserVisitor<Object>
visitCatchClause
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<ClassNode> visitCatchType(GroovyParser.CatchTypeContext ctx)
GroovyParserBaseVisitor
GroovyParser.catchType()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCatchType
in interface GroovyParserVisitor<Object>
visitCatchType
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Statement visitFinallyBlock(GroovyParser.FinallyBlockContext ctx)
GroovyParserBaseVisitor
GroovyParser.finallyBlock()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFinallyBlock
in interface GroovyParserVisitor<Object>
visitFinallyBlock
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic SwitchStatement visitSwitchStatement(GroovyParser.SwitchStatementContext ctx)
GroovyParserBaseVisitor
GroovyParser.switchStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitSwitchStatement
in interface GroovyParserVisitor<Object>
visitSwitchStatement
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<Statement> visitSwitchBlockStatementGroup(GroovyParser.SwitchBlockStatementGroupContext ctx)
GroovyParserBaseVisitor
GroovyParser.switchBlockStatementGroup()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitSwitchBlockStatementGroup
in interface GroovyParserVisitor<Object>
visitSwitchBlockStatementGroup
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Tuple2<org.antlr.v4.runtime.Token,Expression> visitSwitchLabel(GroovyParser.SwitchLabelContext ctx)
GroovyParserBaseVisitor
GroovyParser.switchLabel()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitSwitchLabel
in interface GroovyParserVisitor<Object>
visitSwitchLabel
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic SynchronizedStatement visitSynchronizedStmtAlt(GroovyParser.SynchronizedStmtAltContext ctx)
GroovyParserBaseVisitor
synchronizedStmtAlt
labeled alternative in GroovyParser.statement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitSynchronizedStmtAlt
in interface GroovyParserVisitor<Object>
visitSynchronizedStmtAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ReturnStatement visitReturnStmtAlt(GroovyParser.ReturnStmtAltContext ctx)
GroovyParserBaseVisitor
returnStmtAlt
labeled alternative in GroovyParser.statement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitReturnStmtAlt
in interface GroovyParserVisitor<Object>
visitReturnStmtAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ThrowStatement visitThrowStmtAlt(GroovyParser.ThrowStmtAltContext ctx)
GroovyParserBaseVisitor
throwStmtAlt
labeled alternative in GroovyParser.statement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitThrowStmtAlt
in interface GroovyParserVisitor<Object>
visitThrowStmtAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Statement visitLabeledStmtAlt(GroovyParser.LabeledStmtAltContext ctx)
GroovyParserBaseVisitor
labeledStmtAlt
labeled alternative in GroovyParser.statement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitLabeledStmtAlt
in interface GroovyParserVisitor<Object>
visitLabeledStmtAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic BreakStatement visitBreakStatement(GroovyParser.BreakStatementContext ctx)
GroovyParserBaseVisitor
GroovyParser.breakStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitBreakStatement
in interface GroovyParserVisitor<Object>
visitBreakStatement
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ContinueStatement visitContinueStatement(GroovyParser.ContinueStatementContext ctx)
GroovyParserBaseVisitor
GroovyParser.continueStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitContinueStatement
in interface GroovyParserVisitor<Object>
visitContinueStatement
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ClassNode visitTypeDeclaration(GroovyParser.TypeDeclarationContext ctx)
GroovyParserBaseVisitor
GroovyParser.typeDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitTypeDeclaration
in interface GroovyParserVisitor<Object>
visitTypeDeclaration
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ClassNode visitClassDeclaration(GroovyParser.ClassDeclarationContext ctx)
GroovyParserBaseVisitor
GroovyParser.classDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitClassDeclaration
in interface GroovyParserVisitor<Object>
visitClassDeclaration
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Void visitClassBody(GroovyParser.ClassBodyContext ctx)
GroovyParserBaseVisitor
GroovyParser.classBody(int)
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitClassBody
in interface GroovyParserVisitor<Object>
visitClassBody
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<FieldNode> visitEnumConstants(GroovyParser.EnumConstantsContext ctx)
GroovyParserBaseVisitor
GroovyParser.enumConstants()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitEnumConstants
in interface GroovyParserVisitor<Object>
visitEnumConstants
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic FieldNode visitEnumConstant(GroovyParser.EnumConstantContext ctx)
GroovyParserBaseVisitor
GroovyParser.enumConstant()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitEnumConstant
in interface GroovyParserVisitor<Object>
visitEnumConstant
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Void visitClassBodyDeclaration(GroovyParser.ClassBodyDeclarationContext ctx)
GroovyParserBaseVisitor
GroovyParser.classBodyDeclaration(int)
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitClassBodyDeclaration
in interface GroovyParserVisitor<Object>
visitClassBodyDeclaration
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Void visitMemberDeclaration(GroovyParser.MemberDeclarationContext ctx)
GroovyParserBaseVisitor
GroovyParser.memberDeclaration(int)
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitMemberDeclaration
in interface GroovyParserVisitor<Object>
visitMemberDeclaration
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic GenericsType[] visitTypeParameters(GroovyParser.TypeParametersContext ctx)
GroovyParserBaseVisitor
GroovyParser.typeParameters()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitTypeParameters
in interface GroovyParserVisitor<Object>
visitTypeParameters
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic GenericsType visitTypeParameter(GroovyParser.TypeParameterContext ctx)
GroovyParserBaseVisitor
GroovyParser.typeParameter()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitTypeParameter
in interface GroovyParserVisitor<Object>
visitTypeParameter
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ClassNode[] visitTypeBound(GroovyParser.TypeBoundContext ctx)
GroovyParserBaseVisitor
GroovyParser.typeBound()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitTypeBound
in interface GroovyParserVisitor<Object>
visitTypeBound
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Void visitFieldDeclaration(GroovyParser.FieldDeclarationContext ctx)
GroovyParserBaseVisitor
GroovyParser.fieldDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFieldDeclaration
in interface GroovyParserVisitor<Object>
visitFieldDeclaration
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic MethodNode visitMethodDeclaration(GroovyParser.MethodDeclarationContext ctx)
GroovyParserBaseVisitor
GroovyParser.methodDeclaration(int, int)
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitMethodDeclaration
in interface GroovyParserVisitor<Object>
visitMethodDeclaration
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic String visitMethodName(GroovyParser.MethodNameContext ctx)
GroovyParserBaseVisitor
GroovyParser.methodName()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitMethodName
in interface GroovyParserVisitor<Object>
visitMethodName
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ClassNode visitReturnType(GroovyParser.ReturnTypeContext ctx)
GroovyParserBaseVisitor
GroovyParser.returnType(int)
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitReturnType
in interface GroovyParserVisitor<Object>
visitReturnType
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Statement visitMethodBody(GroovyParser.MethodBodyContext ctx)
GroovyParserBaseVisitor
GroovyParser.methodBody()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitMethodBody
in interface GroovyParserVisitor<Object>
visitMethodBody
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic org.apache.groovy.parser.antlr4.AstBuilder.DeclarationListStatement visitLocalVariableDeclaration(GroovyParser.LocalVariableDeclarationContext ctx)
GroovyParserBaseVisitor
GroovyParser.localVariableDeclaration()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitLocalVariableDeclaration
in interface GroovyParserVisitor<Object>
visitLocalVariableDeclaration
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<ModifierNode> visitClassifiedModifiers(GroovyParser.ClassifiedModifiersContext ctx)
GroovyParserBaseVisitor
GroovyParser.classifiedModifiers(int)
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitClassifiedModifiers
in interface GroovyParserVisitor<Object>
visitClassifiedModifiers
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic org.apache.groovy.parser.antlr4.AstBuilder.DeclarationListStatement visitVariableDeclaration(GroovyParser.VariableDeclarationContext ctx)
GroovyParserBaseVisitor
GroovyParser.variableDeclaration(int)
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariableDeclaration
in interface GroovyParserVisitor<Object>
visitVariableDeclaration
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<Expression> visitTypeNamePairs(GroovyParser.TypeNamePairsContext ctx)
GroovyParserBaseVisitor
GroovyParser.typeNamePairs()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitTypeNamePairs
in interface GroovyParserVisitor<Object>
visitTypeNamePairs
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic VariableExpression visitTypeNamePair(GroovyParser.TypeNamePairContext ctx)
GroovyParserBaseVisitor
GroovyParser.typeNamePair()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitTypeNamePair
in interface GroovyParserVisitor<Object>
visitTypeNamePair
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<DeclarationExpression> visitVariableDeclarators(GroovyParser.VariableDeclaratorsContext ctx)
GroovyParserBaseVisitor
GroovyParser.variableDeclarators()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariableDeclarators
in interface GroovyParserVisitor<Object>
visitVariableDeclarators
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic DeclarationExpression visitVariableDeclarator(GroovyParser.VariableDeclaratorContext ctx)
GroovyParserBaseVisitor
GroovyParser.variableDeclarator()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariableDeclarator
in interface GroovyParserVisitor<Object>
visitVariableDeclarator
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitVariableInitializer(GroovyParser.VariableInitializerContext ctx)
GroovyParserBaseVisitor
GroovyParser.variableInitializer()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariableInitializer
in interface GroovyParserVisitor<Object>
visitVariableInitializer
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<Expression> visitVariableInitializers(GroovyParser.VariableInitializersContext ctx)
GroovyParserBaseVisitor
GroovyParser.variableInitializers()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariableInitializers
in interface GroovyParserVisitor<Object>
visitVariableInitializers
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<Expression> visitArrayInitializer(GroovyParser.ArrayInitializerContext ctx)
GroovyParserBaseVisitor
GroovyParser.arrayInitializer()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitArrayInitializer
in interface GroovyParserVisitor<Object>
visitArrayInitializer
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Statement visitBlock(GroovyParser.BlockContext ctx)
GroovyParserBaseVisitor
GroovyParser.block()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitBlock
in interface GroovyParserVisitor<Object>
visitBlock
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ExpressionStatement visitCommandExprAlt(GroovyParser.CommandExprAltContext ctx)
GroovyParserBaseVisitor
commandExprAlt
labeled alternative in GroovyParser.statementExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCommandExprAlt
in interface GroovyParserVisitor<Object>
visitCommandExprAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitCommandExpression(GroovyParser.CommandExpressionContext ctx)
GroovyParserBaseVisitor
GroovyParser.commandExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCommandExpression
in interface GroovyParserVisitor<Object>
visitCommandExpression
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitCommandArgument(GroovyParser.CommandArgumentContext ctx)
GroovyParserBaseVisitor
GroovyParser.commandArgument()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCommandArgument
in interface GroovyParserVisitor<Object>
visitCommandArgument
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ClassNode visitCastParExpression(GroovyParser.CastParExpressionContext ctx)
GroovyParserBaseVisitor
GroovyParser.castParExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCastParExpression
in interface GroovyParserVisitor<Object>
visitCastParExpression
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitParExpression(GroovyParser.ParExpressionContext ctx)
GroovyParserBaseVisitor
GroovyParser.parExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitParExpression
in interface GroovyParserVisitor<Object>
visitParExpression
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitExpressionInPar(GroovyParser.ExpressionInParContext ctx)
GroovyParserBaseVisitor
GroovyParser.expressionInPar()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitExpressionInPar
in interface GroovyParserVisitor<Object>
visitExpressionInPar
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitEnhancedStatementExpression(GroovyParser.EnhancedStatementExpressionContext ctx)
GroovyParserBaseVisitor
GroovyParser.enhancedStatementExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitEnhancedStatementExpression
in interface GroovyParserVisitor<Object>
visitEnhancedStatementExpression
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitPathExpression(GroovyParser.PathExpressionContext ctx)
GroovyParserBaseVisitor
GroovyParser.pathExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitPathExpression
in interface GroovyParserVisitor<Object>
visitPathExpression
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitPathElement(GroovyParser.PathElementContext ctx)
GroovyParserBaseVisitor
GroovyParser.pathElement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitPathElement
in interface GroovyParserVisitor<Object>
visitPathElement
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic GenericsType[] visitNonWildcardTypeArguments(GroovyParser.NonWildcardTypeArgumentsContext ctx)
GroovyParserBaseVisitor
GroovyParser.nonWildcardTypeArguments()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitNonWildcardTypeArguments
in interface GroovyParserVisitor<Object>
visitNonWildcardTypeArguments
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ClassNode[] visitTypeList(GroovyParser.TypeListContext ctx)
GroovyParserBaseVisitor
GroovyParser.typeList()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitTypeList
in interface GroovyParserVisitor<Object>
visitTypeList
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitArguments(GroovyParser.ArgumentsContext ctx)
GroovyParserBaseVisitor
GroovyParser.arguments()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitArguments
in interface GroovyParserVisitor<Object>
visitArguments
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitEnhancedArgumentList(GroovyParser.EnhancedArgumentListContext ctx)
GroovyParserBaseVisitor
GroovyParser.enhancedArgumentList()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitEnhancedArgumentList
in interface GroovyParserVisitor<Object>
visitEnhancedArgumentList
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitEnhancedArgumentListElement(GroovyParser.EnhancedArgumentListElementContext ctx)
GroovyParserBaseVisitor
GroovyParser.enhancedArgumentListElement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitEnhancedArgumentListElement
in interface GroovyParserVisitor<Object>
visitEnhancedArgumentListElement
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ConstantExpression visitStringLiteral(GroovyParser.StringLiteralContext ctx)
GroovyParserBaseVisitor
GroovyParser.stringLiteral()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitStringLiteral
in interface GroovyParserVisitor<Object>
visitStringLiteral
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Tuple2<org.antlr.v4.runtime.Token,Expression> visitIndexPropertyArgs(GroovyParser.IndexPropertyArgsContext ctx)
GroovyParserBaseVisitor
GroovyParser.indexPropertyArgs()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitIndexPropertyArgs
in interface GroovyParserVisitor<Object>
visitIndexPropertyArgs
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<MapEntryExpression> visitNamedPropertyArgs(GroovyParser.NamedPropertyArgsContext ctx)
GroovyParserBaseVisitor
GroovyParser.namedPropertyArgs()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitNamedPropertyArgs
in interface GroovyParserVisitor<Object>
visitNamedPropertyArgs
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitNamePart(GroovyParser.NamePartContext ctx)
GroovyParserBaseVisitor
GroovyParser.namePart()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitNamePart
in interface GroovyParserVisitor<Object>
visitNamePart
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitDynamicMemberName(GroovyParser.DynamicMemberNameContext ctx)
GroovyParserBaseVisitor
GroovyParser.dynamicMemberName()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitDynamicMemberName
in interface GroovyParserVisitor<Object>
visitDynamicMemberName
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitPostfixExpression(GroovyParser.PostfixExpressionContext ctx)
GroovyParserBaseVisitor
GroovyParser.postfixExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitPostfixExpression
in interface GroovyParserVisitor<Object>
visitPostfixExpression
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitUnaryNotExprAlt(GroovyParser.UnaryNotExprAltContext ctx)
GroovyParserBaseVisitor
unaryNotExprAlt
labeled alternative in GroovyParser.castOperandExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitUnaryNotExprAlt
in interface GroovyParserVisitor<Object>
visitUnaryNotExprAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic CastExpression visitCastExprAlt(GroovyParser.CastExprAltContext ctx)
GroovyParserBaseVisitor
castExprAlt
labeled alternative in GroovyParser.castOperandExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCastExprAlt
in interface GroovyParserVisitor<Object>
visitCastExprAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic BinaryExpression visitPowerExprAlt(GroovyParser.PowerExprAltContext ctx)
GroovyParserBaseVisitor
powerExprAlt
labeled alternative in GroovyParser.expression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitPowerExprAlt
in interface GroovyParserVisitor<Object>
visitPowerExprAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitUnaryAddExprAlt(GroovyParser.UnaryAddExprAltContext ctx)
GroovyParserBaseVisitor
unaryAddExprAlt
labeled alternative in GroovyParser.castOperandExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitUnaryAddExprAlt
in interface GroovyParserVisitor<Object>
visitUnaryAddExprAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic BinaryExpression visitMultiplicativeExprAlt(GroovyParser.MultiplicativeExprAltContext ctx)
GroovyParserBaseVisitor
multiplicativeExprAlt
labeled alternative in GroovyParser.expression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitMultiplicativeExprAlt
in interface GroovyParserVisitor<Object>
visitMultiplicativeExprAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic BinaryExpression visitAdditiveExprAlt(GroovyParser.AdditiveExprAltContext ctx)
GroovyParserBaseVisitor
additiveExprAlt
labeled alternative in GroovyParser.expression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAdditiveExprAlt
in interface GroovyParserVisitor<Object>
visitAdditiveExprAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitShiftExprAlt(GroovyParser.ShiftExprAltContext ctx)
GroovyParserBaseVisitor
shiftExprAlt
labeled alternative in GroovyParser.expression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitShiftExprAlt
in interface GroovyParserVisitor<Object>
visitShiftExprAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitRelationalExprAlt(GroovyParser.RelationalExprAltContext ctx)
GroovyParserBaseVisitor
relationalExprAlt
labeled alternative in GroovyParser.expression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitRelationalExprAlt
in interface GroovyParserVisitor<Object>
visitRelationalExprAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic BinaryExpression visitEqualityExprAlt(GroovyParser.EqualityExprAltContext ctx)
GroovyParserBaseVisitor
equalityExprAlt
labeled alternative in GroovyParser.expression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitEqualityExprAlt
in interface GroovyParserVisitor<Object>
visitEqualityExprAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic BinaryExpression visitRegexExprAlt(GroovyParser.RegexExprAltContext ctx)
GroovyParserBaseVisitor
regexExprAlt
labeled alternative in GroovyParser.expression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitRegexExprAlt
in interface GroovyParserVisitor<Object>
visitRegexExprAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic BinaryExpression visitAndExprAlt(GroovyParser.AndExprAltContext ctx)
GroovyParserBaseVisitor
andExprAlt
labeled alternative in GroovyParser.expression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAndExprAlt
in interface GroovyParserVisitor<Object>
visitAndExprAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic BinaryExpression visitExclusiveOrExprAlt(GroovyParser.ExclusiveOrExprAltContext ctx)
GroovyParserBaseVisitor
exclusiveOrExprAlt
labeled alternative in GroovyParser.expression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitExclusiveOrExprAlt
in interface GroovyParserVisitor<Object>
visitExclusiveOrExprAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic BinaryExpression visitInclusiveOrExprAlt(GroovyParser.InclusiveOrExprAltContext ctx)
GroovyParserBaseVisitor
inclusiveOrExprAlt
labeled alternative in GroovyParser.expression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitInclusiveOrExprAlt
in interface GroovyParserVisitor<Object>
visitInclusiveOrExprAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic BinaryExpression visitLogicalAndExprAlt(GroovyParser.LogicalAndExprAltContext ctx)
GroovyParserBaseVisitor
logicalAndExprAlt
labeled alternative in GroovyParser.expression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitLogicalAndExprAlt
in interface GroovyParserVisitor<Object>
visitLogicalAndExprAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic BinaryExpression visitLogicalOrExprAlt(GroovyParser.LogicalOrExprAltContext ctx)
GroovyParserBaseVisitor
logicalOrExprAlt
labeled alternative in GroovyParser.expression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitLogicalOrExprAlt
in interface GroovyParserVisitor<Object>
visitLogicalOrExprAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitConditionalExprAlt(GroovyParser.ConditionalExprAltContext ctx)
GroovyParserBaseVisitor
conditionalExprAlt
labeled alternative in GroovyParser.expression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitConditionalExprAlt
in interface GroovyParserVisitor<Object>
visitConditionalExprAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic BinaryExpression visitMultipleAssignmentExprAlt(GroovyParser.MultipleAssignmentExprAltContext ctx)
GroovyParserBaseVisitor
multipleAssignmentExprAlt
labeled alternative in GroovyParser.expression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitMultipleAssignmentExprAlt
in interface GroovyParserVisitor<Object>
visitMultipleAssignmentExprAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic BinaryExpression visitAssignmentExprAlt(GroovyParser.AssignmentExprAltContext ctx)
GroovyParserBaseVisitor
assignmentExprAlt
labeled alternative in GroovyParser.expression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAssignmentExprAlt
in interface GroovyParserVisitor<Object>
visitAssignmentExprAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitIdentifierPrmrAlt(GroovyParser.IdentifierPrmrAltContext ctx)
GroovyParserBaseVisitor
identifierPrmrAlt
labeled alternative in GroovyParser.primary()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitIdentifierPrmrAlt
in interface GroovyParserVisitor<Object>
visitIdentifierPrmrAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitNewPrmrAlt(GroovyParser.NewPrmrAltContext ctx)
GroovyParserBaseVisitor
newPrmrAlt
labeled alternative in GroovyParser.primary()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitNewPrmrAlt
in interface GroovyParserVisitor<Object>
visitNewPrmrAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic VariableExpression visitThisPrmrAlt(GroovyParser.ThisPrmrAltContext ctx)
GroovyParserBaseVisitor
thisPrmrAlt
labeled alternative in GroovyParser.primary()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitThisPrmrAlt
in interface GroovyParserVisitor<Object>
visitThisPrmrAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic VariableExpression visitSuperPrmrAlt(GroovyParser.SuperPrmrAltContext ctx)
GroovyParserBaseVisitor
superPrmrAlt
labeled alternative in GroovyParser.primary()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitSuperPrmrAlt
in interface GroovyParserVisitor<Object>
visitSuperPrmrAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitCreator(GroovyParser.CreatorContext ctx)
GroovyParserBaseVisitor
GroovyParser.creator(int)
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCreator
in interface GroovyParserVisitor<Object>
visitCreator
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Tuple3<Expression,List<AnnotationNode>,org.antlr.v4.runtime.tree.TerminalNode> visitDim(GroovyParser.DimContext ctx)
GroovyParserBaseVisitor
GroovyParser.dim()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitDim
in interface GroovyParserVisitor<Object>
visitDim
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic InnerClassNode visitAnonymousInnerClassDeclaration(GroovyParser.AnonymousInnerClassDeclarationContext ctx)
GroovyParserBaseVisitor
GroovyParser.anonymousInnerClassDeclaration(int)
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAnonymousInnerClassDeclaration
in interface GroovyParserVisitor<Object>
visitAnonymousInnerClassDeclaration
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ClassNode visitCreatedName(GroovyParser.CreatedNameContext ctx)
GroovyParserBaseVisitor
GroovyParser.createdName()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitCreatedName
in interface GroovyParserVisitor<Object>
visitCreatedName
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic MapExpression visitMap(GroovyParser.MapContext ctx)
GroovyParserBaseVisitor
GroovyParser.map()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitMap
in interface GroovyParserVisitor<Object>
visitMap
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<MapEntryExpression> visitMapEntryList(GroovyParser.MapEntryListContext ctx)
GroovyParserBaseVisitor
GroovyParser.mapEntryList()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitMapEntryList
in interface GroovyParserVisitor<Object>
visitMapEntryList
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic MapEntryExpression visitMapEntry(GroovyParser.MapEntryContext ctx)
GroovyParserBaseVisitor
GroovyParser.mapEntry()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitMapEntry
in interface GroovyParserVisitor<Object>
visitMapEntry
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitMapEntryLabel(GroovyParser.MapEntryLabelContext ctx)
GroovyParserBaseVisitor
GroovyParser.mapEntryLabel()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitMapEntryLabel
in interface GroovyParserVisitor<Object>
visitMapEntryLabel
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ConstantExpression visitKeywords(GroovyParser.KeywordsContext ctx)
GroovyParserBaseVisitor
GroovyParser.keywords()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitKeywords
in interface GroovyParserVisitor<Object>
visitKeywords
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic VariableExpression visitBuiltInType(GroovyParser.BuiltInTypeContext ctx)
GroovyParserBaseVisitor
GroovyParser.builtInType()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitBuiltInType
in interface GroovyParserVisitor<Object>
visitBuiltInType
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ListExpression visitList(GroovyParser.ListContext ctx)
GroovyParserBaseVisitor
GroovyParser.list()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitList
in interface GroovyParserVisitor<Object>
visitList
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<Expression> visitExpressionList(GroovyParser.ExpressionListContext ctx)
GroovyParserBaseVisitor
GroovyParser.expressionList(boolean)
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitExpressionList
in interface GroovyParserVisitor<Object>
visitExpressionList
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitExpressionListElement(GroovyParser.ExpressionListElementContext ctx)
GroovyParserBaseVisitor
GroovyParser.expressionListElement(boolean)
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitExpressionListElement
in interface GroovyParserVisitor<Object>
visitExpressionListElement
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ConstantExpression visitIntegerLiteralAlt(GroovyParser.IntegerLiteralAltContext ctx)
GroovyParserBaseVisitor
integerLiteralAlt
labeled alternative in GroovyParser.literal()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitIntegerLiteralAlt
in interface GroovyParserVisitor<Object>
visitIntegerLiteralAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ConstantExpression visitFloatingPointLiteralAlt(GroovyParser.FloatingPointLiteralAltContext ctx)
GroovyParserBaseVisitor
floatingPointLiteralAlt
labeled alternative in GroovyParser.literal()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFloatingPointLiteralAlt
in interface GroovyParserVisitor<Object>
visitFloatingPointLiteralAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ConstantExpression visitBooleanLiteralAlt(GroovyParser.BooleanLiteralAltContext ctx)
GroovyParserBaseVisitor
booleanLiteralAlt
labeled alternative in GroovyParser.literal()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitBooleanLiteralAlt
in interface GroovyParserVisitor<Object>
visitBooleanLiteralAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ConstantExpression visitNullLiteralAlt(GroovyParser.NullLiteralAltContext ctx)
GroovyParserBaseVisitor
nullLiteralAlt
labeled alternative in GroovyParser.literal()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitNullLiteralAlt
in interface GroovyParserVisitor<Object>
visitNullLiteralAlt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic GStringExpression visitGstring(GroovyParser.GstringContext ctx)
GroovyParserBaseVisitor
GroovyParser.gstring()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitGstring
in interface GroovyParserVisitor<Object>
visitGstring
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitGstringValue(GroovyParser.GstringValueContext ctx)
GroovyParserBaseVisitor
GroovyParser.gstringValue()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitGstringValue
in interface GroovyParserVisitor<Object>
visitGstringValue
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitGstringPath(GroovyParser.GstringPathContext ctx)
GroovyParserBaseVisitor
GroovyParser.gstringPath()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitGstringPath
in interface GroovyParserVisitor<Object>
visitGstringPath
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic LambdaExpression visitStandardLambdaExpression(GroovyParser.StandardLambdaExpressionContext ctx)
GroovyParserBaseVisitor
GroovyParser.standardLambdaExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitStandardLambdaExpression
in interface GroovyParserVisitor<Object>
visitStandardLambdaExpression
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Parameter[] visitStandardLambdaParameters(GroovyParser.StandardLambdaParametersContext ctx)
GroovyParserBaseVisitor
GroovyParser.standardLambdaParameters()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitStandardLambdaParameters
in interface GroovyParserVisitor<Object>
visitStandardLambdaParameters
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Statement visitLambdaBody(GroovyParser.LambdaBodyContext ctx)
GroovyParserBaseVisitor
GroovyParser.lambdaBody()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitLambdaBody
in interface GroovyParserVisitor<Object>
visitLambdaBody
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ClosureExpression visitClosure(GroovyParser.ClosureContext ctx)
GroovyParserBaseVisitor
GroovyParser.closure()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitClosure
in interface GroovyParserVisitor<Object>
visitClosure
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Parameter[] visitFormalParameters(GroovyParser.FormalParametersContext ctx)
GroovyParserBaseVisitor
GroovyParser.formalParameters()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFormalParameters
in interface GroovyParserVisitor<Object>
visitFormalParameters
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Parameter[] visitFormalParameterList(GroovyParser.FormalParameterListContext ctx)
GroovyParserBaseVisitor
GroovyParser.formalParameterList()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFormalParameterList
in interface GroovyParserVisitor<Object>
visitFormalParameterList
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Parameter visitFormalParameter(GroovyParser.FormalParameterContext ctx)
GroovyParserBaseVisitor
GroovyParser.formalParameter()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitFormalParameter
in interface GroovyParserVisitor<Object>
visitFormalParameter
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Parameter visitThisFormalParameter(GroovyParser.ThisFormalParameterContext ctx)
GroovyParserBaseVisitor
GroovyParser.thisFormalParameter()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitThisFormalParameter
in interface GroovyParserVisitor<Object>
visitThisFormalParameter
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<ModifierNode> visitClassOrInterfaceModifiersOpt(GroovyParser.ClassOrInterfaceModifiersOptContext ctx)
GroovyParserBaseVisitor
GroovyParser.classOrInterfaceModifiersOpt()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitClassOrInterfaceModifiersOpt
in interface GroovyParserVisitor<Object>
visitClassOrInterfaceModifiersOpt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<ModifierNode> visitClassOrInterfaceModifiers(GroovyParser.ClassOrInterfaceModifiersContext ctx)
GroovyParserBaseVisitor
GroovyParser.classOrInterfaceModifiers()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitClassOrInterfaceModifiers
in interface GroovyParserVisitor<Object>
visitClassOrInterfaceModifiers
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ModifierNode visitClassOrInterfaceModifier(GroovyParser.ClassOrInterfaceModifierContext ctx)
GroovyParserBaseVisitor
GroovyParser.classOrInterfaceModifier()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitClassOrInterfaceModifier
in interface GroovyParserVisitor<Object>
visitClassOrInterfaceModifier
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ModifierNode visitModifier(GroovyParser.ModifierContext ctx)
GroovyParserBaseVisitor
GroovyParser.modifier()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitModifier
in interface GroovyParserVisitor<Object>
visitModifier
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<ModifierNode> visitModifiers(GroovyParser.ModifiersContext ctx)
GroovyParserBaseVisitor
GroovyParser.modifiers()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitModifiers
in interface GroovyParserVisitor<Object>
visitModifiers
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<ModifierNode> visitModifiersOpt(GroovyParser.ModifiersOptContext ctx)
GroovyParserBaseVisitor
GroovyParser.modifiersOpt()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitModifiersOpt
in interface GroovyParserVisitor<Object>
visitModifiersOpt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ModifierNode visitVariableModifier(GroovyParser.VariableModifierContext ctx)
GroovyParserBaseVisitor
GroovyParser.variableModifier()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariableModifier
in interface GroovyParserVisitor<Object>
visitVariableModifier
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<ModifierNode> visitVariableModifiersOpt(GroovyParser.VariableModifiersOptContext ctx)
GroovyParserBaseVisitor
GroovyParser.variableModifiersOpt()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariableModifiersOpt
in interface GroovyParserVisitor<Object>
visitVariableModifiersOpt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<ModifierNode> visitVariableModifiers(GroovyParser.VariableModifiersContext ctx)
GroovyParserBaseVisitor
GroovyParser.variableModifiers()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariableModifiers
in interface GroovyParserVisitor<Object>
visitVariableModifiers
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<List<AnnotationNode>> visitEmptyDims(GroovyParser.EmptyDimsContext ctx)
GroovyParserBaseVisitor
GroovyParser.emptyDims()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitEmptyDims
in interface GroovyParserVisitor<Object>
visitEmptyDims
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<List<AnnotationNode>> visitEmptyDimsOpt(GroovyParser.EmptyDimsOptContext ctx)
GroovyParserBaseVisitor
GroovyParser.emptyDimsOpt()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitEmptyDimsOpt
in interface GroovyParserVisitor<Object>
visitEmptyDimsOpt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ClassNode visitType(GroovyParser.TypeContext ctx)
GroovyParserBaseVisitor
GroovyParser.type()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitType
in interface GroovyParserVisitor<Object>
visitType
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ClassNode visitClassOrInterfaceType(GroovyParser.ClassOrInterfaceTypeContext ctx)
GroovyParserBaseVisitor
GroovyParser.classOrInterfaceType()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitClassOrInterfaceType
in interface GroovyParserVisitor<Object>
visitClassOrInterfaceType
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic GenericsType[] visitTypeArgumentsOrDiamond(GroovyParser.TypeArgumentsOrDiamondContext ctx)
GroovyParserBaseVisitor
GroovyParser.typeArgumentsOrDiamond()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitTypeArgumentsOrDiamond
in interface GroovyParserVisitor<Object>
visitTypeArgumentsOrDiamond
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic GenericsType[] visitTypeArguments(GroovyParser.TypeArgumentsContext ctx)
GroovyParserBaseVisitor
GroovyParser.typeArguments()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitTypeArguments
in interface GroovyParserVisitor<Object>
visitTypeArguments
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic GenericsType visitTypeArgument(GroovyParser.TypeArgumentContext ctx)
GroovyParserBaseVisitor
GroovyParser.typeArgument()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitTypeArgument
in interface GroovyParserVisitor<Object>
visitTypeArgument
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ClassNode visitPrimitiveType(GroovyParser.PrimitiveTypeContext ctx)
GroovyParserBaseVisitor
GroovyParser.primitiveType()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitPrimitiveType
in interface GroovyParserVisitor<Object>
visitPrimitiveType
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic VariableExpression visitVariableDeclaratorId(GroovyParser.VariableDeclaratorIdContext ctx)
GroovyParserBaseVisitor
GroovyParser.variableDeclaratorId()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariableDeclaratorId
in interface GroovyParserVisitor<Object>
visitVariableDeclaratorId
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic TupleExpression visitVariableNames(GroovyParser.VariableNamesContext ctx)
GroovyParserBaseVisitor
GroovyParser.variableNames()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitVariableNames
in interface GroovyParserVisitor<Object>
visitVariableNames
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ClosureExpression visitClosureOrLambdaExpression(GroovyParser.ClosureOrLambdaExpressionContext ctx)
GroovyParserBaseVisitor
GroovyParser.closureOrLambdaExpression()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitClosureOrLambdaExpression
in interface GroovyParserVisitor<Object>
visitClosureOrLambdaExpression
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic BlockStatement visitBlockStatementsOpt(GroovyParser.BlockStatementsOptContext ctx)
GroovyParserBaseVisitor
GroovyParser.blockStatementsOpt()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitBlockStatementsOpt
in interface GroovyParserVisitor<Object>
visitBlockStatementsOpt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic BlockStatement visitBlockStatements(GroovyParser.BlockStatementsContext ctx)
GroovyParserBaseVisitor
GroovyParser.blockStatements()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitBlockStatements
in interface GroovyParserVisitor<Object>
visitBlockStatements
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Statement visitBlockStatement(GroovyParser.BlockStatementContext ctx)
GroovyParserBaseVisitor
GroovyParser.blockStatement()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitBlockStatement
in interface GroovyParserVisitor<Object>
visitBlockStatement
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<AnnotationNode> visitAnnotationsOpt(GroovyParser.AnnotationsOptContext ctx)
GroovyParserBaseVisitor
GroovyParser.annotationsOpt()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAnnotationsOpt
in interface GroovyParserVisitor<Object>
visitAnnotationsOpt
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic AnnotationNode visitAnnotation(GroovyParser.AnnotationContext ctx)
GroovyParserBaseVisitor
GroovyParser.annotation()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAnnotation
in interface GroovyParserVisitor<Object>
visitAnnotation
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic List<Tuple2<String,Expression>> visitElementValues(GroovyParser.ElementValuesContext ctx)
GroovyParserBaseVisitor
GroovyParser.elementValues()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitElementValues
in interface GroovyParserVisitor<Object>
visitElementValues
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic String visitAnnotationName(GroovyParser.AnnotationNameContext ctx)
GroovyParserBaseVisitor
GroovyParser.annotationName()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAnnotationName
in interface GroovyParserVisitor<Object>
visitAnnotationName
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Map<String,Expression> visitElementValuePairs(GroovyParser.ElementValuePairsContext ctx)
GroovyParserBaseVisitor
GroovyParser.elementValuePairs()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitElementValuePairs
in interface GroovyParserVisitor<Object>
visitElementValuePairs
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Tuple2<String,Expression> visitElementValuePair(GroovyParser.ElementValuePairContext ctx)
GroovyParserBaseVisitor
GroovyParser.elementValuePair()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitElementValuePair
in interface GroovyParserVisitor<Object>
visitElementValuePair
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Expression visitElementValue(GroovyParser.ElementValueContext ctx)
GroovyParserBaseVisitor
GroovyParser.elementValue()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitElementValue
in interface GroovyParserVisitor<Object>
visitElementValue
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ListExpression visitElementValueArrayInitializer(GroovyParser.ElementValueArrayInitializerContext ctx)
GroovyParserBaseVisitor
GroovyParser.elementValueArrayInitializer()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitElementValueArrayInitializer
in interface GroovyParserVisitor<Object>
visitElementValueArrayInitializer
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic String visitClassName(GroovyParser.ClassNameContext ctx)
GroovyParserBaseVisitor
GroovyParser.className()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitClassName
in interface GroovyParserVisitor<Object>
visitClassName
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic String visitIdentifier(GroovyParser.IdentifierContext ctx)
GroovyParserBaseVisitor
GroovyParser.identifier()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitIdentifier
in interface GroovyParserVisitor<Object>
visitIdentifier
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic String visitQualifiedName(GroovyParser.QualifiedNameContext ctx)
GroovyParserBaseVisitor
GroovyParser.qualifiedName()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitQualifiedName
in interface GroovyParserVisitor<Object>
visitQualifiedName
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ClassNode visitAnnotatedQualifiedClassName(GroovyParser.AnnotatedQualifiedClassNameContext ctx)
GroovyParserBaseVisitor
GroovyParser.annotatedQualifiedClassName()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAnnotatedQualifiedClassName
in interface GroovyParserVisitor<Object>
visitAnnotatedQualifiedClassName
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ClassNode[] visitQualifiedClassNameList(GroovyParser.QualifiedClassNameListContext ctx)
GroovyParserBaseVisitor
GroovyParser.qualifiedClassNameList()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitQualifiedClassNameList
in interface GroovyParserVisitor<Object>
visitQualifiedClassNameList
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ClassNode visitQualifiedClassName(GroovyParser.QualifiedClassNameContext ctx)
GroovyParserBaseVisitor
GroovyParser.qualifiedClassName()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitQualifiedClassName
in interface GroovyParserVisitor<Object>
visitQualifiedClassName
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic ClassNode visitQualifiedStandardClassName(GroovyParser.QualifiedStandardClassNameContext ctx)
GroovyParserBaseVisitor
GroovyParser.qualifiedStandardClassName()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitQualifiedStandardClassName
in interface GroovyParserVisitor<Object>
visitQualifiedStandardClassName
in class GroovyParserBaseVisitor<Object>
ctx
- the parse treepublic Object visit(org.antlr.v4.runtime.tree.ParseTree tree)
public BlockStatement appendStatementsToBlockStatement(BlockStatement bs, Statement... statements)