Class AstBuilder
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<Result>
-
- org.apache.groovy.parser.antlr4.GroovyParserBaseVisitor<Object>
-
- org.apache.groovy.parser.antlr4.AstBuilder
-
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<Object>
,GroovyParserVisitor<Object>
public class AstBuilder extends GroovyParserBaseVisitor<Object> implements GroovyParserVisitor<Object>
Builds the AST from the parse tree generated by Antlr4.
-
-
Constructor Summary
Constructors Constructor Description AstBuilder(SourceUnit sourceUnit, CompilerConfiguration compilerConfiguration)
-
Method Summary
-
Methods inherited from class org.apache.groovy.parser.antlr4.GroovyParserBaseVisitor
visitBlockStmtAlt, visitElementValuePairName, visitEmptyStmtAlt, visitExpression, visitLiteral, visitLoopStatement, visitNls, visitPrimary, visitQualifiedNameElement, visitQualifiedNameElements, visitRparen, visitSep, visitStatement, visitStatementExpression
-
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.apache.groovy.parser.antlr4.GroovyParserVisitor
visitBlockStmtAlt, visitElementValuePairName, visitEmptyStmtAlt, visitExpression, visitLiteral, visitLoopStatement, visitNls, visitPrimary, visitQualifiedNameElement, visitQualifiedNameElements, visitRparen, visitSep, visitStatement, visitStatementExpression
-
-
-
-
Constructor Detail
-
AstBuilder
public AstBuilder(SourceUnit sourceUnit, CompilerConfiguration compilerConfiguration)
-
-
Method Detail
-
buildAST
public ModuleNode buildAST()
-
visitCompilationUnit
public ModuleNode visitCompilationUnit(GroovyParser.CompilationUnitContext ctx)
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
-
visitStatements
public List<ASTNode> visitStatements(GroovyParser.StatementsContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced byGroovyParser.statements()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitStatements
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitStatements
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPackageDeclaration
public PackageNode visitPackageDeclaration(GroovyParser.PackageDeclarationContext ctx)
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
public ImportNode visitImportDeclaration(GroovyParser.ImportDeclarationContext ctx)
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
public AssertStatement visitAssertStatement(GroovyParser.AssertStatementContext ctx)
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
-
visitAssertStmtAlt
public AssertStatement visitAssertStmtAlt(GroovyParser.AssertStmtAltContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theassertStmtAlt
labeled alternative inGroovyParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitAssertStmtAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitAssertStmtAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitConditionalStmtAlt
public Statement visitConditionalStmtAlt(GroovyParser.ConditionalStmtAltContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theconditionalStmtAlt
labeled alternative inGroovyParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitConditionalStmtAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitConditionalStmtAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitConditionalStatement
public Statement visitConditionalStatement(GroovyParser.ConditionalStatementContext ctx)
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
public IfStatement visitIfElseStatement(GroovyParser.IfElseStatementContext ctx)
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
public Statement visitLoopStmtAlt(GroovyParser.LoopStmtAltContext ctx)
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
public ForStatement visitForStmtAlt(GroovyParser.ForStmtAltContext ctx)
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
public Tuple2<Parameter,Expression> visitForControl(GroovyParser.ForControlContext ctx)
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
public Expression visitForInit(GroovyParser.ForInitContext ctx)
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
public Expression visitForUpdate(GroovyParser.ForUpdateContext ctx)
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
public WhileStatement visitWhileStmtAlt(GroovyParser.WhileStmtAltContext ctx)
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
public DoWhileStatement visitDoWhileStmtAlt(GroovyParser.DoWhileStmtAltContext ctx)
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
-
visitTryCatchStmtAlt
public Statement visitTryCatchStmtAlt(GroovyParser.TryCatchStmtAltContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thetryCatchStmtAlt
labeled alternative inGroovyParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTryCatchStmtAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitTryCatchStmtAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTryCatchStatement
public Statement visitTryCatchStatement(GroovyParser.TryCatchStatementContext ctx)
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
public List<ExpressionStatement> visitResources(GroovyParser.ResourcesContext ctx)
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
public List<ExpressionStatement> visitResourceList(GroovyParser.ResourceListContext ctx)
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
public ExpressionStatement visitResource(GroovyParser.ResourceContext ctx)
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
public List<CatchStatement> visitCatchClause(GroovyParser.CatchClauseContext ctx)
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
public List<ClassNode> visitCatchType(GroovyParser.CatchTypeContext ctx)
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
public Statement visitFinallyBlock(GroovyParser.FinallyBlockContext ctx)
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
public SwitchStatement visitSwitchStatement(GroovyParser.SwitchStatementContext ctx)
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
public SynchronizedStatement visitSynchronizedStmtAlt(GroovyParser.SynchronizedStmtAltContext ctx)
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
-
visitExpressionStmtAlt
public ExpressionStatement visitExpressionStmtAlt(GroovyParser.ExpressionStmtAltContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theexpressionStmtAlt
labeled alternative inGroovyParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitExpressionStmtAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitExpressionStmtAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitReturnStmtAlt
public ReturnStatement visitReturnStmtAlt(GroovyParser.ReturnStmtAltContext ctx)
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
public ThrowStatement visitThrowStmtAlt(GroovyParser.ThrowStmtAltContext ctx)
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
public Statement visitLabeledStmtAlt(GroovyParser.LabeledStmtAltContext ctx)
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
public BreakStatement visitBreakStatement(GroovyParser.BreakStatementContext ctx)
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
-
visitBreakStmtAlt
public BreakStatement visitBreakStmtAlt(GroovyParser.BreakStmtAltContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thebreakStmtAlt
labeled alternative inGroovyParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBreakStmtAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitBreakStmtAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitContinueStatement
public ContinueStatement visitContinueStatement(GroovyParser.ContinueStatementContext ctx)
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
-
visitContinueStmtAlt
public ContinueStatement visitContinueStmtAlt(GroovyParser.ContinueStmtAltContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thecontinueStmtAlt
labeled alternative inGroovyParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitContinueStmtAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitContinueStmtAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitImportStmtAlt
public ImportNode visitImportStmtAlt(GroovyParser.ImportStmtAltContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theimportStmtAlt
labeled alternative inGroovyParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitImportStmtAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitImportStmtAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeDeclarationStmtAlt
public ClassNode visitTypeDeclarationStmtAlt(GroovyParser.TypeDeclarationStmtAltContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thetypeDeclarationStmtAlt
labeled alternative inGroovyParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTypeDeclarationStmtAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitTypeDeclarationStmtAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLocalVariableDeclarationStmtAlt
public Statement visitLocalVariableDeclarationStmtAlt(GroovyParser.LocalVariableDeclarationStmtAltContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thelocalVariableDeclarationStmtAlt
labeled alternative inGroovyParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLocalVariableDeclarationStmtAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitLocalVariableDeclarationStmtAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMethodDeclarationStmtAlt
public MethodNode visitMethodDeclarationStmtAlt(GroovyParser.MethodDeclarationStmtAltContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by themethodDeclarationStmtAlt
labeled alternative inGroovyParser.statement()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMethodDeclarationStmtAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitMethodDeclarationStmtAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitTypeDeclaration
public ClassNode visitTypeDeclaration(GroovyParser.TypeDeclarationContext ctx)
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
public ClassNode visitClassDeclaration(GroovyParser.ClassDeclarationContext ctx)
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
public Void visitClassBody(GroovyParser.ClassBodyContext ctx)
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
public List<FieldNode> visitEnumConstants(GroovyParser.EnumConstantsContext ctx)
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
public FieldNode visitEnumConstant(GroovyParser.EnumConstantContext ctx)
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
public Void visitClassBodyDeclaration(GroovyParser.ClassBodyDeclarationContext ctx)
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
public Void visitMemberDeclaration(GroovyParser.MemberDeclarationContext ctx)
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
public GenericsType[] visitTypeParameters(GroovyParser.TypeParametersContext ctx)
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
public GenericsType visitTypeParameter(GroovyParser.TypeParameterContext ctx)
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
public ClassNode[] visitTypeBound(GroovyParser.TypeBoundContext ctx)
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
public Void visitFieldDeclaration(GroovyParser.FieldDeclarationContext ctx)
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
-
visitMethodDeclaration
public MethodNode visitMethodDeclaration(GroovyParser.MethodDeclarationContext ctx)
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
public String visitMethodName(GroovyParser.MethodNameContext ctx)
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
public ClassNode visitReturnType(GroovyParser.ReturnTypeContext ctx)
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
public Statement visitMethodBody(GroovyParser.MethodBodyContext ctx)
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
-
visitClassifiedModifiers
public List<ModifierNode> visitClassifiedModifiers(GroovyParser.ClassifiedModifiersContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced byGroovyParser.classifiedModifiers(int)
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitClassifiedModifiers
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitClassifiedModifiers
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
public List<Expression> visitTypeNamePairs(GroovyParser.TypeNamePairsContext ctx)
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
public VariableExpression visitTypeNamePair(GroovyParser.TypeNamePairContext ctx)
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
public DeclarationExpression visitVariableDeclarator(GroovyParser.VariableDeclaratorContext ctx)
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
public Expression visitVariableInitializer(GroovyParser.VariableInitializerContext ctx)
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
public List<Expression> visitVariableInitializers(GroovyParser.VariableInitializersContext ctx)
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
public List<Expression> visitArrayInitializer(GroovyParser.ArrayInitializerContext ctx)
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
public Statement visitBlock(GroovyParser.BlockContext ctx)
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
public ExpressionStatement visitCommandExprAlt(GroovyParser.CommandExprAltContext ctx)
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
public Expression visitCommandExpression(GroovyParser.CommandExpressionContext ctx)
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
public Expression visitCommandArgument(GroovyParser.CommandArgumentContext ctx)
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
public ClassNode visitCastParExpression(GroovyParser.CastParExpressionContext ctx)
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
public Expression visitParExpression(GroovyParser.ParExpressionContext ctx)
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
public Expression visitExpressionInPar(GroovyParser.ExpressionInParContext ctx)
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
public Expression visitPathExpression(GroovyParser.PathExpressionContext ctx)
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
public Expression visitPathElement(GroovyParser.PathElementContext ctx)
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
public ClassNode[] visitTypeList(GroovyParser.TypeListContext ctx)
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
public Expression visitArguments(GroovyParser.ArgumentsContext ctx)
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
-
visitEnhancedArgumentList
public Expression visitEnhancedArgumentList(GroovyParser.EnhancedArgumentListContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced byGroovyParser.enhancedArgumentList()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitEnhancedArgumentList
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitEnhancedArgumentList
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
public ConstantExpression visitStringLiteral(GroovyParser.StringLiteralContext ctx)
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
public List<MapEntryExpression> visitNamedPropertyArgs(GroovyParser.NamedPropertyArgsContext ctx)
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
public Expression visitNamePart(GroovyParser.NamePartContext ctx)
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
public Expression visitDynamicMemberName(GroovyParser.DynamicMemberNameContext ctx)
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
public Expression visitPostfixExpression(GroovyParser.PostfixExpressionContext ctx)
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
-
visitPostfixExprAlt
public Expression visitPostfixExprAlt(GroovyParser.PostfixExprAltContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thepostfixExprAlt
labeled alternative inGroovyParser.castOperandExpression()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPostfixExprAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitPostfixExprAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitUnaryNotExprAlt
public Expression visitUnaryNotExprAlt(GroovyParser.UnaryNotExprAltContext ctx)
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
public CastExpression visitCastExprAlt(GroovyParser.CastExprAltContext ctx)
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
public BinaryExpression visitPowerExprAlt(GroovyParser.PowerExprAltContext ctx)
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
public Expression visitUnaryAddExprAlt(GroovyParser.UnaryAddExprAltContext ctx)
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
public BinaryExpression visitMultiplicativeExprAlt(GroovyParser.MultiplicativeExprAltContext ctx)
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
public BinaryExpression visitAdditiveExprAlt(GroovyParser.AdditiveExprAltContext ctx)
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
public Expression visitShiftExprAlt(GroovyParser.ShiftExprAltContext ctx)
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
public Expression visitRelationalExprAlt(GroovyParser.RelationalExprAltContext ctx)
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
public BinaryExpression visitEqualityExprAlt(GroovyParser.EqualityExprAltContext ctx)
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
public BinaryExpression visitRegexExprAlt(GroovyParser.RegexExprAltContext ctx)
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
public BinaryExpression visitAndExprAlt(GroovyParser.AndExprAltContext ctx)
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
public BinaryExpression visitExclusiveOrExprAlt(GroovyParser.ExclusiveOrExprAltContext ctx)
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
public BinaryExpression visitInclusiveOrExprAlt(GroovyParser.InclusiveOrExprAltContext ctx)
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
public BinaryExpression visitLogicalAndExprAlt(GroovyParser.LogicalAndExprAltContext ctx)
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
public BinaryExpression visitLogicalOrExprAlt(GroovyParser.LogicalOrExprAltContext ctx)
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
-
visitConditionalExprAlt
public Expression visitConditionalExprAlt(GroovyParser.ConditionalExprAltContext ctx)
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
public BinaryExpression visitAssignmentExprAlt(GroovyParser.AssignmentExprAltContext ctx)
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
public Expression visitIdentifierPrmrAlt(GroovyParser.IdentifierPrmrAltContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theidentifierPrmrAlt
labeled alternative inGroovyParser.primary()
.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
-
visitLiteralPrmrAlt
public ConstantExpression visitLiteralPrmrAlt(GroovyParser.LiteralPrmrAltContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theliteralPrmrAlt
labeled alternative inGroovyParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLiteralPrmrAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitLiteralPrmrAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitGstringPrmrAlt
public GStringExpression visitGstringPrmrAlt(GroovyParser.GstringPrmrAltContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thegstringPrmrAlt
labeled alternative inGroovyParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitGstringPrmrAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitGstringPrmrAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNewPrmrAlt
public Expression visitNewPrmrAlt(GroovyParser.NewPrmrAltContext ctx)
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
public VariableExpression visitThisPrmrAlt(GroovyParser.ThisPrmrAltContext ctx)
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
public VariableExpression visitSuperPrmrAlt(GroovyParser.SuperPrmrAltContext ctx)
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
-
visitParenPrmrAlt
public Expression visitParenPrmrAlt(GroovyParser.ParenPrmrAltContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theparenPrmrAlt
labeled alternative inGroovyParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitParenPrmrAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitParenPrmrAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitClosureOrLambdaExpressionPrmrAlt
public ClosureExpression visitClosureOrLambdaExpressionPrmrAlt(GroovyParser.ClosureOrLambdaExpressionPrmrAltContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by theclosureOrLambdaExpressionPrmrAlt
labeled alternative inGroovyParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitClosureOrLambdaExpressionPrmrAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitClosureOrLambdaExpressionPrmrAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitListPrmrAlt
public ListExpression visitListPrmrAlt(GroovyParser.ListPrmrAltContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thelistPrmrAlt
labeled alternative inGroovyParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitListPrmrAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitListPrmrAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMapPrmrAlt
public MapExpression visitMapPrmrAlt(GroovyParser.MapPrmrAltContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by themapPrmrAlt
labeled alternative inGroovyParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMapPrmrAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitMapPrmrAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBuiltInTypePrmrAlt
public VariableExpression visitBuiltInTypePrmrAlt(GroovyParser.BuiltInTypePrmrAltContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thebuiltInTypePrmrAlt
labeled alternative inGroovyParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBuiltInTypePrmrAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitBuiltInTypePrmrAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCreator
public Expression visitCreator(GroovyParser.CreatorContext ctx)
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
-
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
public ClassNode visitCreatedName(GroovyParser.CreatedNameContext ctx)
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
public MapExpression visitMap(GroovyParser.MapContext ctx)
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
public List<MapEntryExpression> visitMapEntryList(GroovyParser.MapEntryListContext ctx)
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
public MapEntryExpression visitMapEntry(GroovyParser.MapEntryContext ctx)
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
public Expression visitMapEntryLabel(GroovyParser.MapEntryLabelContext ctx)
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
public ConstantExpression visitKeywords(GroovyParser.KeywordsContext ctx)
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
public VariableExpression visitBuiltInType(GroovyParser.BuiltInTypeContext ctx)
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
public ListExpression visitList(GroovyParser.ListContext ctx)
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
public List<Expression> visitExpressionList(GroovyParser.ExpressionListContext ctx)
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
public Expression visitExpressionListElement(GroovyParser.ExpressionListElementContext ctx)
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
public ConstantExpression visitIntegerLiteralAlt(GroovyParser.IntegerLiteralAltContext ctx)
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
-
visitStringLiteralAlt
public ConstantExpression visitStringLiteralAlt(GroovyParser.StringLiteralAltContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced by thestringLiteralAlt
labeled alternative inGroovyParser.literal()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitStringLiteralAlt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitStringLiteralAlt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBooleanLiteralAlt
public ConstantExpression visitBooleanLiteralAlt(GroovyParser.BooleanLiteralAltContext ctx)
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
public ConstantExpression visitNullLiteralAlt(GroovyParser.NullLiteralAltContext ctx)
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
public GStringExpression visitGstring(GroovyParser.GstringContext ctx)
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
public Expression visitGstringValue(GroovyParser.GstringValueContext ctx)
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
public Expression visitGstringPath(GroovyParser.GstringPathContext ctx)
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
public Parameter[] visitStandardLambdaParameters(GroovyParser.StandardLambdaParametersContext ctx)
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
public Statement visitLambdaBody(GroovyParser.LambdaBodyContext ctx)
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
public ClosureExpression visitClosure(GroovyParser.ClosureContext ctx)
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
public Parameter[] visitFormalParameters(GroovyParser.FormalParametersContext ctx)
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
public Parameter[] visitFormalParameterList(GroovyParser.FormalParameterListContext ctx)
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
public Parameter visitFormalParameter(GroovyParser.FormalParameterContext ctx)
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
public Parameter visitThisFormalParameter(GroovyParser.ThisFormalParameterContext ctx)
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
public ModifierNode visitClassOrInterfaceModifier(GroovyParser.ClassOrInterfaceModifierContext ctx)
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
public ModifierNode visitModifier(GroovyParser.ModifierContext ctx)
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
public List<ModifierNode> visitModifiers(GroovyParser.ModifiersContext ctx)
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
public List<ModifierNode> visitModifiersOpt(GroovyParser.ModifiersOptContext ctx)
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
public ModifierNode visitVariableModifier(GroovyParser.VariableModifierContext ctx)
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
public List<ModifierNode> visitVariableModifiersOpt(GroovyParser.VariableModifiersOptContext ctx)
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
public List<ModifierNode> visitVariableModifiers(GroovyParser.VariableModifiersContext ctx)
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
-
visitDims
public List<List<AnnotationNode>> visitDims(GroovyParser.DimsContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced byGroovyParser.dims()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDims
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitDims
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDimsOpt
public List<List<AnnotationNode>> visitDimsOpt(GroovyParser.DimsOptContext ctx)
Description copied from class:GroovyParserBaseVisitor
Visit a parse tree produced byGroovyParser.dimsOpt()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDimsOpt
in interfaceGroovyParserVisitor<Object>
- Overrides:
visitDimsOpt
in classGroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitType
public ClassNode visitType(GroovyParser.TypeContext ctx)
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
public ClassNode visitClassOrInterfaceType(GroovyParser.ClassOrInterfaceTypeContext ctx)
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
public GenericsType[] visitTypeArgumentsOrDiamond(GroovyParser.TypeArgumentsOrDiamondContext ctx)
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
public GenericsType[] visitTypeArguments(GroovyParser.TypeArgumentsContext ctx)
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
public GenericsType visitTypeArgument(GroovyParser.TypeArgumentContext ctx)
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
public ClassNode visitPrimitiveType(GroovyParser.PrimitiveTypeContext ctx)
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
public VariableExpression visitVariableDeclaratorId(GroovyParser.VariableDeclaratorIdContext ctx)
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
public TupleExpression visitVariableNames(GroovyParser.VariableNamesContext ctx)
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
public BlockStatement visitBlockStatementsOpt(GroovyParser.BlockStatementsOptContext ctx)
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
public BlockStatement visitBlockStatements(GroovyParser.BlockStatementsContext ctx)
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
public Statement visitBlockStatement(GroovyParser.BlockStatementContext ctx)
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
public List<AnnotationNode> visitAnnotationsOpt(GroovyParser.AnnotationsOptContext ctx)
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
public AnnotationNode visitAnnotation(GroovyParser.AnnotationContext ctx)
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
public List<Tuple2<String,Expression>> visitElementValues(GroovyParser.ElementValuesContext ctx)
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
public String visitAnnotationName(GroovyParser.AnnotationNameContext ctx)
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
public Map<String,Expression> visitElementValuePairs(GroovyParser.ElementValuePairsContext ctx)
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
public Tuple2<String,Expression> visitElementValuePair(GroovyParser.ElementValuePairContext ctx)
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
public Expression visitElementValue(GroovyParser.ElementValueContext ctx)
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
public String visitClassName(GroovyParser.ClassNameContext ctx)
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
public String visitIdentifier(GroovyParser.IdentifierContext ctx)
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
public String visitQualifiedName(GroovyParser.QualifiedNameContext ctx)
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
public ClassNode[] visitQualifiedClassNameList(GroovyParser.QualifiedClassNameListContext ctx)
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
public ClassNode visitQualifiedClassName(GroovyParser.QualifiedClassNameContext ctx)
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
public Object visit(org.antlr.v4.runtime.tree.ParseTree tree)
Visit tree safely, no NPE occurred when the tree is null.
-
appendStatementsToBlockStatement
public BlockStatement appendStatementsToBlockStatement(BlockStatement bs, Statement... statements)
-
-