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>
Builds the AST from the parse tree generated by Antlr4.
-
-
Constructor Summary
Constructors Constructor Description AstBuilder(SourceUnit sourceUnit, boolean groovydocEnabled, boolean runtimeGroovydocEnabled)
-
Method Summary
-
Methods inherited from class org.apache.groovy.parser.antlr4.GroovyParserBaseVisitor
visitAssertStmtAlt, visitBlockStmtAlt, visitBreakStmtAlt, visitBuiltInTypePrmrAlt, visitClosureOrLambdaExpressionPrmrAlt, visitConditionalStmtAlt, visitContinueStmtAlt, visitElementValuePairName, visitEmptyStmtAlt, visitExpression, visitExpressionStmtAlt, visitGstringPrmrAlt, visitListPrmrAlt, visitLiteral, visitLiteralPrmrAlt, visitLocalVariableDeclarationStmtAlt, visitLoopStatement, visitMapPrmrAlt, visitNls, visitParenPrmrAlt, visitPostfixExprAlt, visitPrimary, visitQualifiedNameElement, visitQualifiedNameElements, visitRparen, visitScriptStatement, visitSep, visitStatement, visitStatementExpression, visitStringLiteralAlt, visitTryCatchStmtAlt
-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Constructor Detail
-
AstBuilder
public AstBuilder(SourceUnit sourceUnit, boolean groovydocEnabled, boolean runtimeGroovydocEnabled)
-
-
Method Detail
-
buildAST
public ModuleNode buildAST()
-
visitCompilationUnit
public ModuleNode visitCompilationUnit(GroovyParser.CompilationUnitContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.compilationUnit().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCompilationUnitin interfaceGroovyParserVisitor<Object>- Overrides:
visitCompilationUnitin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitScriptStatements
public List<ASTNode> visitScriptStatements(GroovyParser.ScriptStatementsContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.scriptStatements().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitScriptStatementsin interfaceGroovyParserVisitor<Object>- Overrides:
visitScriptStatementsin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPackageDeclaration
public PackageNode visitPackageDeclaration(GroovyParser.PackageDeclarationContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.packageDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPackageDeclarationin interfaceGroovyParserVisitor<Object>- Overrides:
visitPackageDeclarationin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImportDeclaration
public ImportNode visitImportDeclaration(GroovyParser.ImportDeclarationContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.importDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitImportDeclarationin interfaceGroovyParserVisitor<Object>- Overrides:
visitImportDeclarationin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAssertStatement
public AssertStatement visitAssertStatement(GroovyParser.AssertStatementContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.assertStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAssertStatementin interfaceGroovyParserVisitor<Object>- Overrides:
visitAssertStatementin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConditionalStatement
public Statement visitConditionalStatement(GroovyParser.ConditionalStatementContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.conditionalStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConditionalStatementin interfaceGroovyParserVisitor<Object>- Overrides:
visitConditionalStatementin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIfElseStatement
public IfStatement visitIfElseStatement(GroovyParser.IfElseStatementContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.ifElseStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIfElseStatementin interfaceGroovyParserVisitor<Object>- Overrides:
visitIfElseStatementin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLoopStmtAlt
public Statement visitLoopStmtAlt(GroovyParser.LoopStmtAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theloopStmtAltlabeled alternative inGroovyParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLoopStmtAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitLoopStmtAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForStmtAlt
public ForStatement visitForStmtAlt(GroovyParser.ForStmtAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theforStmtAltlabeled alternative inGroovyParser.loopStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForStmtAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitForStmtAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForControl
public Tuple2<Parameter,Expression> visitForControl(GroovyParser.ForControlContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.forControl().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForControlin interfaceGroovyParserVisitor<Object>- Overrides:
visitForControlin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForInit
public Expression visitForInit(GroovyParser.ForInitContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.forInit().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForInitin interfaceGroovyParserVisitor<Object>- Overrides:
visitForInitin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForUpdate
public Expression visitForUpdate(GroovyParser.ForUpdateContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.forUpdate().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForUpdatein interfaceGroovyParserVisitor<Object>- Overrides:
visitForUpdatein classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnhancedForControl
public Tuple2<Parameter,Expression> visitEnhancedForControl(GroovyParser.EnhancedForControlContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.enhancedForControl().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnhancedForControlin interfaceGroovyParserVisitor<Object>- Overrides:
visitEnhancedForControlin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassicalForControl
public Tuple2<Parameter,Expression> visitClassicalForControl(GroovyParser.ClassicalForControlContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.classicalForControl().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassicalForControlin interfaceGroovyParserVisitor<Object>- Overrides:
visitClassicalForControlin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWhileStmtAlt
public WhileStatement visitWhileStmtAlt(GroovyParser.WhileStmtAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thewhileStmtAltlabeled alternative inGroovyParser.loopStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitWhileStmtAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitWhileStmtAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDoWhileStmtAlt
public DoWhileStatement visitDoWhileStmtAlt(GroovyParser.DoWhileStmtAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thedoWhileStmtAltlabeled alternative inGroovyParser.loopStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDoWhileStmtAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitDoWhileStmtAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTryCatchStatement
public Statement visitTryCatchStatement(GroovyParser.TryCatchStatementContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.tryCatchStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTryCatchStatementin interfaceGroovyParserVisitor<Object>- Overrides:
visitTryCatchStatementin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitResources
public List<ExpressionStatement> visitResources(GroovyParser.ResourcesContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.resources().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitResourcesin interfaceGroovyParserVisitor<Object>- Overrides:
visitResourcesin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitResourceList
public List<ExpressionStatement> visitResourceList(GroovyParser.ResourceListContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.resourceList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitResourceListin interfaceGroovyParserVisitor<Object>- Overrides:
visitResourceListin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitResource
public ExpressionStatement visitResource(GroovyParser.ResourceContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.resource().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitResourcein interfaceGroovyParserVisitor<Object>- Overrides:
visitResourcein 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:
visitCatchClausein interfaceGroovyParserVisitor<Object>- Overrides:
visitCatchClausein 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:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.catchType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCatchTypein interfaceGroovyParserVisitor<Object>- Overrides:
visitCatchTypein classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFinallyBlock
public Statement visitFinallyBlock(GroovyParser.FinallyBlockContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.finallyBlock().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFinallyBlockin interfaceGroovyParserVisitor<Object>- Overrides:
visitFinallyBlockin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSwitchStatement
public SwitchStatement visitSwitchStatement(GroovyParser.SwitchStatementContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.switchStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchStatementin interfaceGroovyParserVisitor<Object>- Overrides:
visitSwitchStatementin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSwitchBlockStatementGroup
public List<Statement> visitSwitchBlockStatementGroup(GroovyParser.SwitchBlockStatementGroupContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.switchBlockStatementGroup().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchBlockStatementGroupin interfaceGroovyParserVisitor<Object>- Overrides:
visitSwitchBlockStatementGroupin 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:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.switchLabel().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSwitchLabelin interfaceGroovyParserVisitor<Object>- Overrides:
visitSwitchLabelin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSynchronizedStmtAlt
public SynchronizedStatement visitSynchronizedStmtAlt(GroovyParser.SynchronizedStmtAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thesynchronizedStmtAltlabeled alternative inGroovyParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSynchronizedStmtAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitSynchronizedStmtAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReturnStmtAlt
public ReturnStatement visitReturnStmtAlt(GroovyParser.ReturnStmtAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thereturnStmtAltlabeled alternative inGroovyParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitReturnStmtAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitReturnStmtAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitThrowStmtAlt
public ThrowStatement visitThrowStmtAlt(GroovyParser.ThrowStmtAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thethrowStmtAltlabeled alternative inGroovyParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitThrowStmtAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitThrowStmtAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLabeledStmtAlt
public Statement visitLabeledStmtAlt(GroovyParser.LabeledStmtAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thelabeledStmtAltlabeled alternative inGroovyParser.statement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLabeledStmtAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitLabeledStmtAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBreakStatement
public BreakStatement visitBreakStatement(GroovyParser.BreakStatementContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.breakStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBreakStatementin interfaceGroovyParserVisitor<Object>- Overrides:
visitBreakStatementin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitContinueStatement
public ContinueStatement visitContinueStatement(GroovyParser.ContinueStatementContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.continueStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitContinueStatementin interfaceGroovyParserVisitor<Object>- Overrides:
visitContinueStatementin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeDeclaration
public ClassNode visitTypeDeclaration(GroovyParser.TypeDeclarationContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.typeDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeDeclarationin interfaceGroovyParserVisitor<Object>- Overrides:
visitTypeDeclarationin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassDeclaration
public ClassNode visitClassDeclaration(GroovyParser.ClassDeclarationContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.classDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassDeclarationin interfaceGroovyParserVisitor<Object>- Overrides:
visitClassDeclarationin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassBody
public Void visitClassBody(GroovyParser.ClassBodyContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.classBody(int).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassBodyin interfaceGroovyParserVisitor<Object>- Overrides:
visitClassBodyin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumConstants
public List<FieldNode> visitEnumConstants(GroovyParser.EnumConstantsContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.enumConstants().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumConstantsin interfaceGroovyParserVisitor<Object>- Overrides:
visitEnumConstantsin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnumConstant
public FieldNode visitEnumConstant(GroovyParser.EnumConstantContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.enumConstant().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnumConstantin interfaceGroovyParserVisitor<Object>- Overrides:
visitEnumConstantin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassBodyDeclaration
public Void visitClassBodyDeclaration(GroovyParser.ClassBodyDeclarationContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.classBodyDeclaration(int).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassBodyDeclarationin interfaceGroovyParserVisitor<Object>- Overrides:
visitClassBodyDeclarationin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMemberDeclaration
public Void visitMemberDeclaration(GroovyParser.MemberDeclarationContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.memberDeclaration(int).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMemberDeclarationin interfaceGroovyParserVisitor<Object>- Overrides:
visitMemberDeclarationin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeParameters
public GenericsType[] visitTypeParameters(GroovyParser.TypeParametersContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.typeParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeParametersin interfaceGroovyParserVisitor<Object>- Overrides:
visitTypeParametersin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeParameter
public GenericsType visitTypeParameter(GroovyParser.TypeParameterContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.typeParameter().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeParameterin interfaceGroovyParserVisitor<Object>- Overrides:
visitTypeParameterin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeBound
public ClassNode[] visitTypeBound(GroovyParser.TypeBoundContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.typeBound().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeBoundin interfaceGroovyParserVisitor<Object>- Overrides:
visitTypeBoundin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFieldDeclaration
public Void visitFieldDeclaration(GroovyParser.FieldDeclarationContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.fieldDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFieldDeclarationin interfaceGroovyParserVisitor<Object>- Overrides:
visitFieldDeclarationin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMethodDeclaration
public MethodNode visitMethodDeclaration(GroovyParser.MethodDeclarationContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.methodDeclaration(int, int).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMethodDeclarationin interfaceGroovyParserVisitor<Object>- Overrides:
visitMethodDeclarationin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMethodName
public String visitMethodName(GroovyParser.MethodNameContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.methodName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMethodNamein interfaceGroovyParserVisitor<Object>- Overrides:
visitMethodNamein classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReturnType
public ClassNode visitReturnType(GroovyParser.ReturnTypeContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.returnType(int).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitReturnTypein interfaceGroovyParserVisitor<Object>- Overrides:
visitReturnTypein classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMethodBody
public Statement visitMethodBody(GroovyParser.MethodBodyContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.methodBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMethodBodyin interfaceGroovyParserVisitor<Object>- Overrides:
visitMethodBodyin 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:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.localVariableDeclaration().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLocalVariableDeclarationin interfaceGroovyParserVisitor<Object>- Overrides:
visitLocalVariableDeclarationin 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:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.variableDeclaration(int).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableDeclarationin interfaceGroovyParserVisitor<Object>- Overrides:
visitVariableDeclarationin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeNamePairs
public List<Expression> visitTypeNamePairs(GroovyParser.TypeNamePairsContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.typeNamePairs().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeNamePairsin interfaceGroovyParserVisitor<Object>- Overrides:
visitTypeNamePairsin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeNamePair
public VariableExpression visitTypeNamePair(GroovyParser.TypeNamePairContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.typeNamePair().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeNamePairin interfaceGroovyParserVisitor<Object>- Overrides:
visitTypeNamePairin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableDeclarators
public List<DeclarationExpression> visitVariableDeclarators(GroovyParser.VariableDeclaratorsContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.variableDeclarators().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableDeclaratorsin interfaceGroovyParserVisitor<Object>- Overrides:
visitVariableDeclaratorsin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableDeclarator
public DeclarationExpression visitVariableDeclarator(GroovyParser.VariableDeclaratorContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.variableDeclarator().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableDeclaratorin interfaceGroovyParserVisitor<Object>- Overrides:
visitVariableDeclaratorin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableInitializer
public Expression visitVariableInitializer(GroovyParser.VariableInitializerContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.variableInitializer().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableInitializerin interfaceGroovyParserVisitor<Object>- Overrides:
visitVariableInitializerin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableInitializers
public List<Expression> visitVariableInitializers(GroovyParser.VariableInitializersContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.variableInitializers().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableInitializersin interfaceGroovyParserVisitor<Object>- Overrides:
visitVariableInitializersin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArrayInitializer
public List<Expression> visitArrayInitializer(GroovyParser.ArrayInitializerContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.arrayInitializer().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArrayInitializerin interfaceGroovyParserVisitor<Object>- Overrides:
visitArrayInitializerin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlock
public Statement visitBlock(GroovyParser.BlockContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.block().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBlockin interfaceGroovyParserVisitor<Object>- Overrides:
visitBlockin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCommandExprAlt
public ExpressionStatement visitCommandExprAlt(GroovyParser.CommandExprAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thecommandExprAltlabeled alternative inGroovyParser.statementExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCommandExprAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitCommandExprAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCommandExpression
public Expression visitCommandExpression(GroovyParser.CommandExpressionContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.commandExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCommandExpressionin interfaceGroovyParserVisitor<Object>- Overrides:
visitCommandExpressionin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCommandArgument
public Expression visitCommandArgument(GroovyParser.CommandArgumentContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.commandArgument().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCommandArgumentin interfaceGroovyParserVisitor<Object>- Overrides:
visitCommandArgumentin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCastParExpression
public ClassNode visitCastParExpression(GroovyParser.CastParExpressionContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.castParExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCastParExpressionin interfaceGroovyParserVisitor<Object>- Overrides:
visitCastParExpressionin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParExpression
public Expression visitParExpression(GroovyParser.ParExpressionContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.parExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParExpressionin interfaceGroovyParserVisitor<Object>- Overrides:
visitParExpressionin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpressionInPar
public Expression visitExpressionInPar(GroovyParser.ExpressionInParContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.expressionInPar().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExpressionInParin interfaceGroovyParserVisitor<Object>- Overrides:
visitExpressionInParin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnhancedStatementExpression
public Expression visitEnhancedStatementExpression(GroovyParser.EnhancedStatementExpressionContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.enhancedStatementExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnhancedStatementExpressionin interfaceGroovyParserVisitor<Object>- Overrides:
visitEnhancedStatementExpressionin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPathExpression
public Expression visitPathExpression(GroovyParser.PathExpressionContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.pathExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPathExpressionin interfaceGroovyParserVisitor<Object>- Overrides:
visitPathExpressionin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPathElement
public Expression visitPathElement(GroovyParser.PathElementContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.pathElement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPathElementin interfaceGroovyParserVisitor<Object>- Overrides:
visitPathElementin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNonWildcardTypeArguments
public GenericsType[] visitNonWildcardTypeArguments(GroovyParser.NonWildcardTypeArgumentsContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.nonWildcardTypeArguments().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNonWildcardTypeArgumentsin interfaceGroovyParserVisitor<Object>- Overrides:
visitNonWildcardTypeArgumentsin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeList
public ClassNode[] visitTypeList(GroovyParser.TypeListContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.typeList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeListin interfaceGroovyParserVisitor<Object>- Overrides:
visitTypeListin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArguments
public Expression visitArguments(GroovyParser.ArgumentsContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.arguments().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArgumentsin interfaceGroovyParserVisitor<Object>- Overrides:
visitArgumentsin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnhancedArgumentListInPar
public Expression visitEnhancedArgumentListInPar(GroovyParser.EnhancedArgumentListInParContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.enhancedArgumentListInPar().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnhancedArgumentListInParin interfaceGroovyParserVisitor<Object>- Overrides:
visitEnhancedArgumentListInParin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnhancedArgumentListElement
public Expression visitEnhancedArgumentListElement(GroovyParser.EnhancedArgumentListElementContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.enhancedArgumentListElement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnhancedArgumentListElementin interfaceGroovyParserVisitor<Object>- Overrides:
visitEnhancedArgumentListElementin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStringLiteral
public ConstantExpression visitStringLiteral(GroovyParser.StringLiteralContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.stringLiteral().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStringLiteralin interfaceGroovyParserVisitor<Object>- Overrides:
visitStringLiteralin 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:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.indexPropertyArgs().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIndexPropertyArgsin interfaceGroovyParserVisitor<Object>- Overrides:
visitIndexPropertyArgsin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNamedPropertyArgs
public List<MapEntryExpression> visitNamedPropertyArgs(GroovyParser.NamedPropertyArgsContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.namedPropertyArgs().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNamedPropertyArgsin interfaceGroovyParserVisitor<Object>- Overrides:
visitNamedPropertyArgsin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNamePart
public Expression visitNamePart(GroovyParser.NamePartContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.namePart().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNamePartin interfaceGroovyParserVisitor<Object>- Overrides:
visitNamePartin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDynamicMemberName
public Expression visitDynamicMemberName(GroovyParser.DynamicMemberNameContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.dynamicMemberName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDynamicMemberNamein interfaceGroovyParserVisitor<Object>- Overrides:
visitDynamicMemberNamein classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPostfixExpression
public Expression visitPostfixExpression(GroovyParser.PostfixExpressionContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.postfixExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPostfixExpressionin interfaceGroovyParserVisitor<Object>- Overrides:
visitPostfixExpressionin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnaryNotExprAlt
public Expression visitUnaryNotExprAlt(GroovyParser.UnaryNotExprAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theunaryNotExprAltlabeled alternative inGroovyParser.castOperandExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitUnaryNotExprAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitUnaryNotExprAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCastExprAlt
public CastExpression visitCastExprAlt(GroovyParser.CastExprAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thecastExprAltlabeled alternative inGroovyParser.castOperandExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCastExprAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitCastExprAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPowerExprAlt
public BinaryExpression visitPowerExprAlt(GroovyParser.PowerExprAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thepowerExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPowerExprAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitPowerExprAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnaryAddExprAlt
public Expression visitUnaryAddExprAlt(GroovyParser.UnaryAddExprAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theunaryAddExprAltlabeled alternative inGroovyParser.castOperandExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitUnaryAddExprAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitUnaryAddExprAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultiplicativeExprAlt
public BinaryExpression visitMultiplicativeExprAlt(GroovyParser.MultiplicativeExprAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by themultiplicativeExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMultiplicativeExprAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitMultiplicativeExprAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAdditiveExprAlt
public BinaryExpression visitAdditiveExprAlt(GroovyParser.AdditiveExprAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theadditiveExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAdditiveExprAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitAdditiveExprAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitShiftExprAlt
public Expression visitShiftExprAlt(GroovyParser.ShiftExprAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theshiftExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitShiftExprAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitShiftExprAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRelationalExprAlt
public Expression visitRelationalExprAlt(GroovyParser.RelationalExprAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by therelationalExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRelationalExprAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitRelationalExprAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEqualityExprAlt
public BinaryExpression visitEqualityExprAlt(GroovyParser.EqualityExprAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theequalityExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEqualityExprAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitEqualityExprAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRegexExprAlt
public BinaryExpression visitRegexExprAlt(GroovyParser.RegexExprAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theregexExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRegexExprAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitRegexExprAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAndExprAlt
public BinaryExpression visitAndExprAlt(GroovyParser.AndExprAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theandExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAndExprAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitAndExprAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExclusiveOrExprAlt
public BinaryExpression visitExclusiveOrExprAlt(GroovyParser.ExclusiveOrExprAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theexclusiveOrExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExclusiveOrExprAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitExclusiveOrExprAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInclusiveOrExprAlt
public BinaryExpression visitInclusiveOrExprAlt(GroovyParser.InclusiveOrExprAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theinclusiveOrExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitInclusiveOrExprAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitInclusiveOrExprAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLogicalAndExprAlt
public BinaryExpression visitLogicalAndExprAlt(GroovyParser.LogicalAndExprAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thelogicalAndExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLogicalAndExprAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitLogicalAndExprAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLogicalOrExprAlt
public BinaryExpression visitLogicalOrExprAlt(GroovyParser.LogicalOrExprAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thelogicalOrExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLogicalOrExprAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitLogicalOrExprAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConditionalExprAlt
public Expression visitConditionalExprAlt(GroovyParser.ConditionalExprAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theconditionalExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConditionalExprAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitConditionalExprAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultipleAssignmentExprAlt
public BinaryExpression visitMultipleAssignmentExprAlt(GroovyParser.MultipleAssignmentExprAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by themultipleAssignmentExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMultipleAssignmentExprAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitMultipleAssignmentExprAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAssignmentExprAlt
public BinaryExpression visitAssignmentExprAlt(GroovyParser.AssignmentExprAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theassignmentExprAltlabeled alternative inGroovyParser.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAssignmentExprAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitAssignmentExprAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIdentifierPrmrAlt
public Expression visitIdentifierPrmrAlt(GroovyParser.IdentifierPrmrAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theidentifierPrmrAltlabeled alternative inGroovyParser.commandPrimary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIdentifierPrmrAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitIdentifierPrmrAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNewPrmrAlt
public Expression visitNewPrmrAlt(GroovyParser.NewPrmrAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thenewPrmrAltlabeled alternative inGroovyParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNewPrmrAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitNewPrmrAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitThisPrmrAlt
public VariableExpression visitThisPrmrAlt(GroovyParser.ThisPrmrAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thethisPrmrAltlabeled alternative inGroovyParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitThisPrmrAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitThisPrmrAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSuperPrmrAlt
public VariableExpression visitSuperPrmrAlt(GroovyParser.SuperPrmrAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thesuperPrmrAltlabeled alternative inGroovyParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSuperPrmrAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitSuperPrmrAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCreator
public Expression visitCreator(GroovyParser.CreatorContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.creator(int).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCreatorin interfaceGroovyParserVisitor<Object>- Overrides:
visitCreatorin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDim
public Tuple3<Expression,List<AnnotationNode>,org.antlr.v4.runtime.tree.TerminalNode> visitDim(GroovyParser.DimContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.dim().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDimin interfaceGroovyParserVisitor<Object>- Overrides:
visitDimin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnonymousInnerClassDeclaration
public InnerClassNode visitAnonymousInnerClassDeclaration(GroovyParser.AnonymousInnerClassDeclarationContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.anonymousInnerClassDeclaration(int).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnonymousInnerClassDeclarationin interfaceGroovyParserVisitor<Object>- Overrides:
visitAnonymousInnerClassDeclarationin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCreatedName
public ClassNode visitCreatedName(GroovyParser.CreatedNameContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.createdName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCreatedNamein interfaceGroovyParserVisitor<Object>- Overrides:
visitCreatedNamein classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMap
public MapExpression visitMap(GroovyParser.MapContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.map().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMapin interfaceGroovyParserVisitor<Object>- Overrides:
visitMapin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMapEntryList
public List<MapEntryExpression> visitMapEntryList(GroovyParser.MapEntryListContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.mapEntryList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMapEntryListin interfaceGroovyParserVisitor<Object>- Overrides:
visitMapEntryListin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMapEntry
public MapEntryExpression visitMapEntry(GroovyParser.MapEntryContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.mapEntry().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMapEntryin interfaceGroovyParserVisitor<Object>- Overrides:
visitMapEntryin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMapEntryLabel
public Expression visitMapEntryLabel(GroovyParser.MapEntryLabelContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.mapEntryLabel().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMapEntryLabelin interfaceGroovyParserVisitor<Object>- Overrides:
visitMapEntryLabelin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitKeywords
public ConstantExpression visitKeywords(GroovyParser.KeywordsContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.keywords().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitKeywordsin interfaceGroovyParserVisitor<Object>- Overrides:
visitKeywordsin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBuiltInType
public VariableExpression visitBuiltInType(GroovyParser.BuiltInTypeContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.builtInType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBuiltInTypein interfaceGroovyParserVisitor<Object>- Overrides:
visitBuiltInTypein classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitList
public ListExpression visitList(GroovyParser.ListContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.list().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitListin interfaceGroovyParserVisitor<Object>- Overrides:
visitListin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpressionList
public List<Expression> visitExpressionList(GroovyParser.ExpressionListContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.expressionList(boolean).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExpressionListin interfaceGroovyParserVisitor<Object>- Overrides:
visitExpressionListin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpressionListElement
public Expression visitExpressionListElement(GroovyParser.ExpressionListElementContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.expressionListElement(boolean).The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExpressionListElementin interfaceGroovyParserVisitor<Object>- Overrides:
visitExpressionListElementin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIntegerLiteralAlt
public ConstantExpression visitIntegerLiteralAlt(GroovyParser.IntegerLiteralAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by theintegerLiteralAltlabeled alternative inGroovyParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIntegerLiteralAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitIntegerLiteralAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFloatingPointLiteralAlt
public ConstantExpression visitFloatingPointLiteralAlt(GroovyParser.FloatingPointLiteralAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thefloatingPointLiteralAltlabeled alternative inGroovyParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFloatingPointLiteralAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitFloatingPointLiteralAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBooleanLiteralAlt
public ConstantExpression visitBooleanLiteralAlt(GroovyParser.BooleanLiteralAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thebooleanLiteralAltlabeled alternative inGroovyParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBooleanLiteralAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitBooleanLiteralAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNullLiteralAlt
public ConstantExpression visitNullLiteralAlt(GroovyParser.NullLiteralAltContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced by thenullLiteralAltlabeled alternative inGroovyParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNullLiteralAltin interfaceGroovyParserVisitor<Object>- Overrides:
visitNullLiteralAltin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitGstring
public GStringExpression visitGstring(GroovyParser.GstringContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.gstring().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitGstringin interfaceGroovyParserVisitor<Object>- Overrides:
visitGstringin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitGstringValue
public Expression visitGstringValue(GroovyParser.GstringValueContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.gstringValue().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitGstringValuein interfaceGroovyParserVisitor<Object>- Overrides:
visitGstringValuein classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitGstringPath
public Expression visitGstringPath(GroovyParser.GstringPathContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.gstringPath().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitGstringPathin interfaceGroovyParserVisitor<Object>- Overrides:
visitGstringPathin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStandardLambdaExpression
public LambdaExpression visitStandardLambdaExpression(GroovyParser.StandardLambdaExpressionContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.standardLambdaExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStandardLambdaExpressionin interfaceGroovyParserVisitor<Object>- Overrides:
visitStandardLambdaExpressionin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStandardLambdaParameters
public Parameter[] visitStandardLambdaParameters(GroovyParser.StandardLambdaParametersContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.standardLambdaParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStandardLambdaParametersin interfaceGroovyParserVisitor<Object>- Overrides:
visitStandardLambdaParametersin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLambdaBody
public Statement visitLambdaBody(GroovyParser.LambdaBodyContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.lambdaBody().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLambdaBodyin interfaceGroovyParserVisitor<Object>- Overrides:
visitLambdaBodyin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClosure
public ClosureExpression visitClosure(GroovyParser.ClosureContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.closure().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClosurein interfaceGroovyParserVisitor<Object>- Overrides:
visitClosurein classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFormalParameters
public Parameter[] visitFormalParameters(GroovyParser.FormalParametersContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.formalParameters().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFormalParametersin interfaceGroovyParserVisitor<Object>- Overrides:
visitFormalParametersin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFormalParameterList
public Parameter[] visitFormalParameterList(GroovyParser.FormalParameterListContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.formalParameterList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFormalParameterListin interfaceGroovyParserVisitor<Object>- Overrides:
visitFormalParameterListin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFormalParameter
public Parameter visitFormalParameter(GroovyParser.FormalParameterContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.formalParameter().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFormalParameterin interfaceGroovyParserVisitor<Object>- Overrides:
visitFormalParameterin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitThisFormalParameter
public Parameter visitThisFormalParameter(GroovyParser.ThisFormalParameterContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.thisFormalParameter().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitThisFormalParameterin interfaceGroovyParserVisitor<Object>- Overrides:
visitThisFormalParameterin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassOrInterfaceModifiersOpt
public List<ModifierNode> visitClassOrInterfaceModifiersOpt(GroovyParser.ClassOrInterfaceModifiersOptContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.classOrInterfaceModifiersOpt().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassOrInterfaceModifiersOptin interfaceGroovyParserVisitor<Object>- Overrides:
visitClassOrInterfaceModifiersOptin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassOrInterfaceModifiers
public List<ModifierNode> visitClassOrInterfaceModifiers(GroovyParser.ClassOrInterfaceModifiersContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.classOrInterfaceModifiers().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassOrInterfaceModifiersin interfaceGroovyParserVisitor<Object>- Overrides:
visitClassOrInterfaceModifiersin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassOrInterfaceModifier
public ModifierNode visitClassOrInterfaceModifier(GroovyParser.ClassOrInterfaceModifierContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.classOrInterfaceModifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassOrInterfaceModifierin interfaceGroovyParserVisitor<Object>- Overrides:
visitClassOrInterfaceModifierin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModifier
public ModifierNode visitModifier(GroovyParser.ModifierContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.modifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitModifierin interfaceGroovyParserVisitor<Object>- Overrides:
visitModifierin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModifiers
public List<ModifierNode> visitModifiers(GroovyParser.ModifiersContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.modifiers().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitModifiersin interfaceGroovyParserVisitor<Object>- Overrides:
visitModifiersin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModifiersOpt
public List<ModifierNode> visitModifiersOpt(GroovyParser.ModifiersOptContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.modifiersOpt().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitModifiersOptin interfaceGroovyParserVisitor<Object>- Overrides:
visitModifiersOptin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableModifier
public ModifierNode visitVariableModifier(GroovyParser.VariableModifierContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.variableModifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableModifierin interfaceGroovyParserVisitor<Object>- Overrides:
visitVariableModifierin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableModifiersOpt
public List<ModifierNode> visitVariableModifiersOpt(GroovyParser.VariableModifiersOptContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.variableModifiersOpt().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableModifiersOptin interfaceGroovyParserVisitor<Object>- Overrides:
visitVariableModifiersOptin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableModifiers
public List<ModifierNode> visitVariableModifiers(GroovyParser.VariableModifiersContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.variableModifiers().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableModifiersin interfaceGroovyParserVisitor<Object>- Overrides:
visitVariableModifiersin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEmptyDims
public List<List<AnnotationNode>> visitEmptyDims(GroovyParser.EmptyDimsContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.emptyDims().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEmptyDimsin interfaceGroovyParserVisitor<Object>- Overrides:
visitEmptyDimsin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEmptyDimsOpt
public List<List<AnnotationNode>> visitEmptyDimsOpt(GroovyParser.EmptyDimsOptContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.emptyDimsOpt().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEmptyDimsOptin interfaceGroovyParserVisitor<Object>- Overrides:
visitEmptyDimsOptin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitType
public ClassNode visitType(GroovyParser.TypeContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.type().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypein interfaceGroovyParserVisitor<Object>- Overrides:
visitTypein classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassOrInterfaceType
public ClassNode visitClassOrInterfaceType(GroovyParser.ClassOrInterfaceTypeContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.classOrInterfaceType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassOrInterfaceTypein interfaceGroovyParserVisitor<Object>- Overrides:
visitClassOrInterfaceTypein classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeArgumentsOrDiamond
public GenericsType[] visitTypeArgumentsOrDiamond(GroovyParser.TypeArgumentsOrDiamondContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.typeArgumentsOrDiamond().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeArgumentsOrDiamondin interfaceGroovyParserVisitor<Object>- Overrides:
visitTypeArgumentsOrDiamondin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeArguments
public GenericsType[] visitTypeArguments(GroovyParser.TypeArgumentsContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.typeArguments().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeArgumentsin interfaceGroovyParserVisitor<Object>- Overrides:
visitTypeArgumentsin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeArgument
public GenericsType visitTypeArgument(GroovyParser.TypeArgumentContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.typeArgument().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeArgumentin interfaceGroovyParserVisitor<Object>- Overrides:
visitTypeArgumentin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrimitiveType
public ClassNode visitPrimitiveType(GroovyParser.PrimitiveTypeContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.primitiveType().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrimitiveTypein interfaceGroovyParserVisitor<Object>- Overrides:
visitPrimitiveTypein classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableDeclaratorId
public VariableExpression visitVariableDeclaratorId(GroovyParser.VariableDeclaratorIdContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.variableDeclaratorId().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableDeclaratorIdin interfaceGroovyParserVisitor<Object>- Overrides:
visitVariableDeclaratorIdin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariableNames
public TupleExpression visitVariableNames(GroovyParser.VariableNamesContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.variableNames().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVariableNamesin interfaceGroovyParserVisitor<Object>- Overrides:
visitVariableNamesin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClosureOrLambdaExpression
public ClosureExpression visitClosureOrLambdaExpression(GroovyParser.ClosureOrLambdaExpressionContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.closureOrLambdaExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClosureOrLambdaExpressionin interfaceGroovyParserVisitor<Object>- Overrides:
visitClosureOrLambdaExpressionin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlockStatementsOpt
public BlockStatement visitBlockStatementsOpt(GroovyParser.BlockStatementsOptContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.blockStatementsOpt().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBlockStatementsOptin interfaceGroovyParserVisitor<Object>- Overrides:
visitBlockStatementsOptin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlockStatements
public BlockStatement visitBlockStatements(GroovyParser.BlockStatementsContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.blockStatements().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBlockStatementsin interfaceGroovyParserVisitor<Object>- Overrides:
visitBlockStatementsin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBlockStatement
public Statement visitBlockStatement(GroovyParser.BlockStatementContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.blockStatement().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBlockStatementin interfaceGroovyParserVisitor<Object>- Overrides:
visitBlockStatementin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationsOpt
public List<AnnotationNode> visitAnnotationsOpt(GroovyParser.AnnotationsOptContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.annotationsOpt().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationsOptin interfaceGroovyParserVisitor<Object>- Overrides:
visitAnnotationsOptin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotation
public AnnotationNode visitAnnotation(GroovyParser.AnnotationContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.annotation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationin interfaceGroovyParserVisitor<Object>- Overrides:
visitAnnotationin 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:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.elementValues().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValuesin interfaceGroovyParserVisitor<Object>- Overrides:
visitElementValuesin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotationName
public String visitAnnotationName(GroovyParser.AnnotationNameContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.annotationName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationNamein interfaceGroovyParserVisitor<Object>- Overrides:
visitAnnotationNamein classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElementValuePairs
public Map<String,Expression> visitElementValuePairs(GroovyParser.ElementValuePairsContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.elementValuePairs().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValuePairsin interfaceGroovyParserVisitor<Object>- Overrides:
visitElementValuePairsin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElementValuePair
public Tuple2<String,Expression> visitElementValuePair(GroovyParser.ElementValuePairContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.elementValuePair().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValuePairin interfaceGroovyParserVisitor<Object>- Overrides:
visitElementValuePairin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElementValue
public Expression visitElementValue(GroovyParser.ElementValueContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.elementValue().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValuein interfaceGroovyParserVisitor<Object>- Overrides:
visitElementValuein classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElementValueArrayInitializer
public ListExpression visitElementValueArrayInitializer(GroovyParser.ElementValueArrayInitializerContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.elementValueArrayInitializer().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementValueArrayInitializerin interfaceGroovyParserVisitor<Object>- Overrides:
visitElementValueArrayInitializerin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassName
public String visitClassName(GroovyParser.ClassNameContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.className().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassNamein interfaceGroovyParserVisitor<Object>- Overrides:
visitClassNamein classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIdentifier
public String visitIdentifier(GroovyParser.IdentifierContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.identifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIdentifierin interfaceGroovyParserVisitor<Object>- Overrides:
visitIdentifierin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQualifiedName
public String visitQualifiedName(GroovyParser.QualifiedNameContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.qualifiedName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQualifiedNamein interfaceGroovyParserVisitor<Object>- Overrides:
visitQualifiedNamein classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotatedQualifiedClassName
public ClassNode visitAnnotatedQualifiedClassName(GroovyParser.AnnotatedQualifiedClassNameContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.annotatedQualifiedClassName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotatedQualifiedClassNamein interfaceGroovyParserVisitor<Object>- Overrides:
visitAnnotatedQualifiedClassNamein classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQualifiedClassNameList
public ClassNode[] visitQualifiedClassNameList(GroovyParser.QualifiedClassNameListContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.qualifiedClassNameList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQualifiedClassNameListin interfaceGroovyParserVisitor<Object>- Overrides:
visitQualifiedClassNameListin classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQualifiedClassName
public ClassNode visitQualifiedClassName(GroovyParser.QualifiedClassNameContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.qualifiedClassName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQualifiedClassNamein interfaceGroovyParserVisitor<Object>- Overrides:
visitQualifiedClassNamein classGroovyParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQualifiedStandardClassName
public ClassNode visitQualifiedStandardClassName(GroovyParser.QualifiedStandardClassNameContext ctx)
Description copied from class:GroovyParserBaseVisitorVisit a parse tree produced byGroovyParser.qualifiedStandardClassName().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQualifiedStandardClassNamein interfaceGroovyParserVisitor<Object>- Overrides:
visitQualifiedStandardClassNamein 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)
-
-