Package org.apache.groovy.parser.antlr4
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>
,org.apache.groovy.parser.antlr4.GroovyParserVisitor<Object>
Builds the AST from the parse tree generated by Antlr4.
-
Constructor Summary
ConstructorDescriptionAstBuilder
(SourceUnit sourceUnit, boolean groovydocEnabled, boolean runtimeGroovydocEnabled) -
Method Summary
Modifier and TypeMethodDescriptionappendStatementsToBlockStatement
(BlockStatement bs, Statement... statements) buildAST()
visit
(org.antlr.v4.runtime.tree.ParseTree tree) Visit tree safely, no NPE occurred when the tree is null.visitAdditiveExprAlt
(org.apache.groovy.parser.antlr4.GroovyParser.AdditiveExprAltContext ctx) visitAndExprAlt
(org.apache.groovy.parser.antlr4.GroovyParser.AndExprAltContext ctx) visitAnnotatedQualifiedClassName
(org.apache.groovy.parser.antlr4.GroovyParser.AnnotatedQualifiedClassNameContext ctx) visitAnnotation
(org.apache.groovy.parser.antlr4.GroovyParser.AnnotationContext ctx) visitAnnotationName
(org.apache.groovy.parser.antlr4.GroovyParser.AnnotationNameContext ctx) visitAnnotationsOpt
(org.apache.groovy.parser.antlr4.GroovyParser.AnnotationsOptContext ctx) visitAnonymousInnerClassDeclaration
(org.apache.groovy.parser.antlr4.GroovyParser.AnonymousInnerClassDeclarationContext ctx) visitArguments
(org.apache.groovy.parser.antlr4.GroovyParser.ArgumentsContext ctx) visitArrayInitializer
(org.apache.groovy.parser.antlr4.GroovyParser.ArrayInitializerContext ctx) visitAssertStatement
(org.apache.groovy.parser.antlr4.GroovyParser.AssertStatementContext ctx) visitAssignmentExprAlt
(org.apache.groovy.parser.antlr4.GroovyParser.AssignmentExprAltContext ctx) visitBlock
(org.apache.groovy.parser.antlr4.GroovyParser.BlockContext ctx) visitBlockStatement
(org.apache.groovy.parser.antlr4.GroovyParser.BlockStatementContext ctx) visitBlockStatements
(org.apache.groovy.parser.antlr4.GroovyParser.BlockStatementsContext ctx) visitBlockStatementsOpt
(org.apache.groovy.parser.antlr4.GroovyParser.BlockStatementsOptContext ctx) visitBooleanLiteralAlt
(org.apache.groovy.parser.antlr4.GroovyParser.BooleanLiteralAltContext ctx) visitBreakStatement
(org.apache.groovy.parser.antlr4.GroovyParser.BreakStatementContext ctx) visitBuiltInType
(org.apache.groovy.parser.antlr4.GroovyParser.BuiltInTypeContext ctx) visitCastExprAlt
(org.apache.groovy.parser.antlr4.GroovyParser.CastExprAltContext ctx) visitCastParExpression
(org.apache.groovy.parser.antlr4.GroovyParser.CastParExpressionContext ctx) visitCatchClause
(org.apache.groovy.parser.antlr4.GroovyParser.CatchClauseContext ctx) Multi-catch(1..*) clause will be unpacked to several normal catch clauses, so the return type is ListvisitCatchType
(org.apache.groovy.parser.antlr4.GroovyParser.CatchTypeContext ctx) visitClassBody
(org.apache.groovy.parser.antlr4.GroovyParser.ClassBodyContext ctx) visitClassBodyDeclaration
(org.apache.groovy.parser.antlr4.GroovyParser.ClassBodyDeclarationContext ctx) visitClassDeclaration
(org.apache.groovy.parser.antlr4.GroovyParser.ClassDeclarationContext ctx) visitClassicalForControl
(org.apache.groovy.parser.antlr4.GroovyParser.ClassicalForControlContext ctx) visitClassName
(org.apache.groovy.parser.antlr4.GroovyParser.ClassNameContext ctx) visitClassOrInterfaceModifier
(org.apache.groovy.parser.antlr4.GroovyParser.ClassOrInterfaceModifierContext ctx) visitClassOrInterfaceModifiers
(org.apache.groovy.parser.antlr4.GroovyParser.ClassOrInterfaceModifiersContext ctx) visitClassOrInterfaceModifiersOpt
(org.apache.groovy.parser.antlr4.GroovyParser.ClassOrInterfaceModifiersOptContext ctx) visitClassOrInterfaceType
(org.apache.groovy.parser.antlr4.GroovyParser.ClassOrInterfaceTypeContext ctx) visitClosure
(org.apache.groovy.parser.antlr4.GroovyParser.ClosureContext ctx) visitClosureOrLambdaExpression
(org.apache.groovy.parser.antlr4.GroovyParser.ClosureOrLambdaExpressionContext ctx) visitCommandArgument
(org.apache.groovy.parser.antlr4.GroovyParser.CommandArgumentContext ctx) visitCommandExprAlt
(org.apache.groovy.parser.antlr4.GroovyParser.CommandExprAltContext ctx) visitCommandExpression
(org.apache.groovy.parser.antlr4.GroovyParser.CommandExpressionContext ctx) visitCompactConstructorDeclaration
(org.apache.groovy.parser.antlr4.GroovyParser.CompactConstructorDeclarationContext ctx) visitCompilationUnit
(org.apache.groovy.parser.antlr4.GroovyParser.CompilationUnitContext ctx) visitConditionalExprAlt
(org.apache.groovy.parser.antlr4.GroovyParser.ConditionalExprAltContext ctx) visitConditionalStatement
(org.apache.groovy.parser.antlr4.GroovyParser.ConditionalStatementContext ctx) visitContinueStatement
(org.apache.groovy.parser.antlr4.GroovyParser.ContinueStatementContext ctx) visitCreatedName
(org.apache.groovy.parser.antlr4.GroovyParser.CreatedNameContext ctx) visitCreator
(org.apache.groovy.parser.antlr4.GroovyParser.CreatorContext ctx) Tuple3<Expression,
List<AnnotationNode>, org.antlr.v4.runtime.tree.TerminalNode> visitDim
(org.apache.groovy.parser.antlr4.GroovyParser.DimContext ctx) visitDoWhileStmtAlt
(org.apache.groovy.parser.antlr4.GroovyParser.DoWhileStmtAltContext ctx) visitDynamicMemberName
(org.apache.groovy.parser.antlr4.GroovyParser.DynamicMemberNameContext ctx) visitElementValue
(org.apache.groovy.parser.antlr4.GroovyParser.ElementValueContext ctx) visitElementValueArrayInitializer
(org.apache.groovy.parser.antlr4.GroovyParser.ElementValueArrayInitializerContext ctx) visitElementValuePair
(org.apache.groovy.parser.antlr4.GroovyParser.ElementValuePairContext ctx) visitElementValuePairs
(org.apache.groovy.parser.antlr4.GroovyParser.ElementValuePairsContext ctx) visitElementValues
(org.apache.groovy.parser.antlr4.GroovyParser.ElementValuesContext ctx) visitEmptyDims
(org.apache.groovy.parser.antlr4.GroovyParser.EmptyDimsContext ctx) visitEmptyDimsOpt
(org.apache.groovy.parser.antlr4.GroovyParser.EmptyDimsOptContext ctx) visitEnhancedArgumentListElement
(org.apache.groovy.parser.antlr4.GroovyParser.EnhancedArgumentListElementContext ctx) visitEnhancedArgumentListInPar
(org.apache.groovy.parser.antlr4.GroovyParser.EnhancedArgumentListInParContext ctx) visitEnhancedForControl
(org.apache.groovy.parser.antlr4.GroovyParser.EnhancedForControlContext ctx) visitEnhancedStatementExpression
(org.apache.groovy.parser.antlr4.GroovyParser.EnhancedStatementExpressionContext ctx) visitEnumConstant
(org.apache.groovy.parser.antlr4.GroovyParser.EnumConstantContext ctx) visitEnumConstants
(org.apache.groovy.parser.antlr4.GroovyParser.EnumConstantsContext ctx) visitEqualityExprAlt
(org.apache.groovy.parser.antlr4.GroovyParser.EqualityExprAltContext ctx) visitExclusiveOrExprAlt
(org.apache.groovy.parser.antlr4.GroovyParser.ExclusiveOrExprAltContext ctx) visitExpressionInPar
(org.apache.groovy.parser.antlr4.GroovyParser.ExpressionInParContext ctx) visitExpressionList
(org.apache.groovy.parser.antlr4.GroovyParser.ExpressionListContext ctx) visitExpressionListElement
(org.apache.groovy.parser.antlr4.GroovyParser.ExpressionListElementContext ctx) visitFieldDeclaration
(org.apache.groovy.parser.antlr4.GroovyParser.FieldDeclarationContext ctx) visitFinallyBlock
(org.apache.groovy.parser.antlr4.GroovyParser.FinallyBlockContext ctx) visitFloatingPointLiteralAlt
(org.apache.groovy.parser.antlr4.GroovyParser.FloatingPointLiteralAltContext ctx) visitForControl
(org.apache.groovy.parser.antlr4.GroovyParser.ForControlContext ctx) visitForInit
(org.apache.groovy.parser.antlr4.GroovyParser.ForInitContext ctx) visitFormalParameter
(org.apache.groovy.parser.antlr4.GroovyParser.FormalParameterContext ctx) visitFormalParameterList
(org.apache.groovy.parser.antlr4.GroovyParser.FormalParameterListContext ctx) visitFormalParameters
(org.apache.groovy.parser.antlr4.GroovyParser.FormalParametersContext ctx) visitForStmtAlt
(org.apache.groovy.parser.antlr4.GroovyParser.ForStmtAltContext ctx) visitForUpdate
(org.apache.groovy.parser.antlr4.GroovyParser.ForUpdateContext ctx) visitGstring
(org.apache.groovy.parser.antlr4.GroovyParser.GstringContext ctx) visitGstringPath
(org.apache.groovy.parser.antlr4.GroovyParser.GstringPathContext ctx) visitGstringValue
(org.apache.groovy.parser.antlr4.GroovyParser.GstringValueContext ctx) visitIdentifier
(org.apache.groovy.parser.antlr4.GroovyParser.IdentifierContext ctx) visitIdentifierPrmrAlt
(org.apache.groovy.parser.antlr4.GroovyParser.IdentifierPrmrAltContext ctx) visitIfElseStatement
(org.apache.groovy.parser.antlr4.GroovyParser.IfElseStatementContext ctx) visitImportDeclaration
(org.apache.groovy.parser.antlr4.GroovyParser.ImportDeclarationContext ctx) visitInclusiveOrExprAlt
(org.apache.groovy.parser.antlr4.GroovyParser.InclusiveOrExprAltContext ctx) Tuple2<org.antlr.v4.runtime.Token,
Expression> visitIndexPropertyArgs
(org.apache.groovy.parser.antlr4.GroovyParser.IndexPropertyArgsContext ctx) visitIntegerLiteralAlt
(org.apache.groovy.parser.antlr4.GroovyParser.IntegerLiteralAltContext ctx) visitKeywords
(org.apache.groovy.parser.antlr4.GroovyParser.KeywordsContext ctx) visitLabeledStmtAlt
(org.apache.groovy.parser.antlr4.GroovyParser.LabeledStmtAltContext ctx) visitLambdaBody
(org.apache.groovy.parser.antlr4.GroovyParser.LambdaBodyContext ctx) visitList
(org.apache.groovy.parser.antlr4.GroovyParser.ListContext ctx) org.apache.groovy.parser.antlr4.AstBuilder.DeclarationListStatement
visitLocalVariableDeclaration
(org.apache.groovy.parser.antlr4.GroovyParser.LocalVariableDeclarationContext ctx) visitLogicalAndExprAlt
(org.apache.groovy.parser.antlr4.GroovyParser.LogicalAndExprAltContext ctx) visitLogicalOrExprAlt
(org.apache.groovy.parser.antlr4.GroovyParser.LogicalOrExprAltContext ctx) visitLoopStmtAlt
(org.apache.groovy.parser.antlr4.GroovyParser.LoopStmtAltContext ctx) visitMap
(org.apache.groovy.parser.antlr4.GroovyParser.MapContext ctx) visitMapEntry
(org.apache.groovy.parser.antlr4.GroovyParser.MapEntryContext ctx) visitMapEntryLabel
(org.apache.groovy.parser.antlr4.GroovyParser.MapEntryLabelContext ctx) visitMapEntryList
(org.apache.groovy.parser.antlr4.GroovyParser.MapEntryListContext ctx) visitMemberDeclaration
(org.apache.groovy.parser.antlr4.GroovyParser.MemberDeclarationContext ctx) visitMethodBody
(org.apache.groovy.parser.antlr4.GroovyParser.MethodBodyContext ctx) visitMethodDeclaration
(org.apache.groovy.parser.antlr4.GroovyParser.MethodDeclarationContext ctx) visitMethodName
(org.apache.groovy.parser.antlr4.GroovyParser.MethodNameContext ctx) visitModifier
(org.apache.groovy.parser.antlr4.GroovyParser.ModifierContext ctx) visitModifiers
(org.apache.groovy.parser.antlr4.GroovyParser.ModifiersContext ctx) visitModifiersOpt
(org.apache.groovy.parser.antlr4.GroovyParser.ModifiersOptContext ctx) visitMultipleAssignmentExprAlt
(org.apache.groovy.parser.antlr4.GroovyParser.MultipleAssignmentExprAltContext ctx) visitMultiplicativeExprAlt
(org.apache.groovy.parser.antlr4.GroovyParser.MultiplicativeExprAltContext ctx) visitNamedPropertyArgs
(org.apache.groovy.parser.antlr4.GroovyParser.NamedPropertyArgsContext ctx) visitNamePart
(org.apache.groovy.parser.antlr4.GroovyParser.NamePartContext ctx) visitNewPrmrAlt
(org.apache.groovy.parser.antlr4.GroovyParser.NewPrmrAltContext ctx) visitNonWildcardTypeArguments
(org.apache.groovy.parser.antlr4.GroovyParser.NonWildcardTypeArgumentsContext ctx) visitNullLiteralAlt
(org.apache.groovy.parser.antlr4.GroovyParser.NullLiteralAltContext ctx) visitPackageDeclaration
(org.apache.groovy.parser.antlr4.GroovyParser.PackageDeclarationContext ctx) visitParExpression
(org.apache.groovy.parser.antlr4.GroovyParser.ParExpressionContext ctx) visitPathElement
(org.apache.groovy.parser.antlr4.GroovyParser.PathElementContext ctx) visitPathExpression
(org.apache.groovy.parser.antlr4.GroovyParser.PathExpressionContext ctx) visitPostfixExpression
(org.apache.groovy.parser.antlr4.GroovyParser.PostfixExpressionContext ctx) visitPowerExprAlt
(org.apache.groovy.parser.antlr4.GroovyParser.PowerExprAltContext ctx) visitPrimitiveType
(org.apache.groovy.parser.antlr4.GroovyParser.PrimitiveTypeContext ctx) visitQualifiedClassName
(org.apache.groovy.parser.antlr4.GroovyParser.QualifiedClassNameContext ctx) visitQualifiedClassNameList
(org.apache.groovy.parser.antlr4.GroovyParser.QualifiedClassNameListContext ctx) visitQualifiedName
(org.apache.groovy.parser.antlr4.GroovyParser.QualifiedNameContext ctx) visitQualifiedStandardClassName
(org.apache.groovy.parser.antlr4.GroovyParser.QualifiedStandardClassNameContext ctx) visitRegexExprAlt
(org.apache.groovy.parser.antlr4.GroovyParser.RegexExprAltContext ctx) visitRelationalExprAlt
(org.apache.groovy.parser.antlr4.GroovyParser.RelationalExprAltContext ctx) visitResource
(org.apache.groovy.parser.antlr4.GroovyParser.ResourceContext ctx) visitResourceList
(org.apache.groovy.parser.antlr4.GroovyParser.ResourceListContext ctx) visitResources
(org.apache.groovy.parser.antlr4.GroovyParser.ResourcesContext ctx) visitReturnStmtAlt
(org.apache.groovy.parser.antlr4.GroovyParser.ReturnStmtAltContext ctx) visitReturnType
(org.apache.groovy.parser.antlr4.GroovyParser.ReturnTypeContext ctx) visitScriptStatements
(org.apache.groovy.parser.antlr4.GroovyParser.ScriptStatementsContext ctx) visitShiftExprAlt
(org.apache.groovy.parser.antlr4.GroovyParser.ShiftExprAltContext ctx) visitStandardLambdaExpression
(org.apache.groovy.parser.antlr4.GroovyParser.StandardLambdaExpressionContext ctx) visitStandardLambdaParameters
(org.apache.groovy.parser.antlr4.GroovyParser.StandardLambdaParametersContext ctx) visitStringLiteral
(org.apache.groovy.parser.antlr4.GroovyParser.StringLiteralContext ctx) visitSuperPrmrAlt
(org.apache.groovy.parser.antlr4.GroovyParser.SuperPrmrAltContext ctx) visitSwitchBlockStatementExpressionGroup
(org.apache.groovy.parser.antlr4.GroovyParser.SwitchBlockStatementExpressionGroupContext ctx) visitSwitchBlockStatementGroup
(org.apache.groovy.parser.antlr4.GroovyParser.SwitchBlockStatementGroupContext ctx) visitSwitchExprAlt
(org.apache.groovy.parser.antlr4.GroovyParser.SwitchExprAltContext ctx) visitSwitchExpression
(org.apache.groovy.parser.antlr4.GroovyParser.SwitchExpressionContext ctx) switch(a) { case 0, 1 -> 'a'; case 2 -> 'b'; default -> 'z'; }Tuple3<org.antlr.v4.runtime.Token,
List<Expression>, Integer> visitSwitchExpressionLabel
(org.apache.groovy.parser.antlr4.GroovyParser.SwitchExpressionLabelContext ctx) Tuple2<org.antlr.v4.runtime.Token,
Expression> visitSwitchLabel
(org.apache.groovy.parser.antlr4.GroovyParser.SwitchLabelContext ctx) visitSwitchStatement
(org.apache.groovy.parser.antlr4.GroovyParser.SwitchStatementContext ctx) visitSynchronizedStmtAlt
(org.apache.groovy.parser.antlr4.GroovyParser.SynchronizedStmtAltContext ctx) visitThisFormalParameter
(org.apache.groovy.parser.antlr4.GroovyParser.ThisFormalParameterContext ctx) visitThisPrmrAlt
(org.apache.groovy.parser.antlr4.GroovyParser.ThisPrmrAltContext ctx) visitThrowStmtAlt
(org.apache.groovy.parser.antlr4.GroovyParser.ThrowStmtAltContext ctx) visitTryCatchStatement
(org.apache.groovy.parser.antlr4.GroovyParser.TryCatchStatementContext ctx) visitType
(org.apache.groovy.parser.antlr4.GroovyParser.TypeContext ctx) visitTypeArgument
(org.apache.groovy.parser.antlr4.GroovyParser.TypeArgumentContext ctx) visitTypeArguments
(org.apache.groovy.parser.antlr4.GroovyParser.TypeArgumentsContext ctx) visitTypeArgumentsOrDiamond
(org.apache.groovy.parser.antlr4.GroovyParser.TypeArgumentsOrDiamondContext ctx) visitTypeBound
(org.apache.groovy.parser.antlr4.GroovyParser.TypeBoundContext ctx) visitTypeDeclaration
(org.apache.groovy.parser.antlr4.GroovyParser.TypeDeclarationContext ctx) visitTypeList
(org.apache.groovy.parser.antlr4.GroovyParser.TypeListContext ctx) visitTypeNamePair
(org.apache.groovy.parser.antlr4.GroovyParser.TypeNamePairContext ctx) visitTypeNamePairs
(org.apache.groovy.parser.antlr4.GroovyParser.TypeNamePairsContext ctx) visitTypeParameter
(org.apache.groovy.parser.antlr4.GroovyParser.TypeParameterContext ctx) visitTypeParameters
(org.apache.groovy.parser.antlr4.GroovyParser.TypeParametersContext ctx) visitUnaryAddExprAlt
(org.apache.groovy.parser.antlr4.GroovyParser.UnaryAddExprAltContext ctx) visitUnaryNotExprAlt
(org.apache.groovy.parser.antlr4.GroovyParser.UnaryNotExprAltContext ctx) org.apache.groovy.parser.antlr4.AstBuilder.DeclarationListStatement
visitVariableDeclaration
(org.apache.groovy.parser.antlr4.GroovyParser.VariableDeclarationContext ctx) visitVariableDeclarator
(org.apache.groovy.parser.antlr4.GroovyParser.VariableDeclaratorContext ctx) visitVariableDeclaratorId
(org.apache.groovy.parser.antlr4.GroovyParser.VariableDeclaratorIdContext ctx) visitVariableDeclarators
(org.apache.groovy.parser.antlr4.GroovyParser.VariableDeclaratorsContext ctx) visitVariableInitializer
(org.apache.groovy.parser.antlr4.GroovyParser.VariableInitializerContext ctx) visitVariableInitializers
(org.apache.groovy.parser.antlr4.GroovyParser.VariableInitializersContext ctx) visitVariableModifier
(org.apache.groovy.parser.antlr4.GroovyParser.VariableModifierContext ctx) visitVariableModifiers
(org.apache.groovy.parser.antlr4.GroovyParser.VariableModifiersContext ctx) visitVariableModifiersOpt
(org.apache.groovy.parser.antlr4.GroovyParser.VariableModifiersOptContext ctx) visitVariableNames
(org.apache.groovy.parser.antlr4.GroovyParser.VariableNamesContext ctx) visitWhileStmtAlt
(org.apache.groovy.parser.antlr4.GroovyParser.WhileStmtAltContext ctx) visitYieldStatement
(org.apache.groovy.parser.antlr4.GroovyParser.YieldStatementContext ctx) visitYieldStmtAlt
(org.apache.groovy.parser.antlr4.GroovyParser.YieldStmtAltContext ctx) Methods inherited from class org.apache.groovy.parser.antlr4.GroovyParserBaseVisitor
visitAssertStmtAlt, visitBlockStmtAlt, visitBreakStmtAlt, visitBuiltInTypePrmrAlt, visitClosureOrLambdaExpressionPrmrAlt, visitConditionalStmtAlt, visitContinueStmtAlt, visitElementValuePairName, visitEmptyStmtAlt, visitExpression, visitExpressionStmtAlt, visitGstringPrmrAlt, visitListPrmrAlt, visitLiteral, visitLiteralPrmrAlt, visitLocalVariableDeclarationStmtAlt, visitLoopStatement, visitMapPrmrAlt, visitNls, visitParenPrmrAlt, visitPostfixExprAlt, visitPrimary, visitQualifiedNameElement, visitQualifiedNameElements, visitRparen, visitScriptStatement, visitSep, visitStatement, visitStatementExpression, visitStringLiteralAlt, visitTryCatchStmtAlt
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visitChildren, visitErrorNode, visitTerminal
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visitChildren, visitErrorNode, visitTerminal
-
Constructor Details
-
AstBuilder
-
-
Method Details
-
buildAST
-
visitCompilationUnit
public ModuleNode visitCompilationUnit(org.apache.groovy.parser.antlr4.GroovyParser.CompilationUnitContext ctx) -
visitScriptStatements
-
visitPackageDeclaration
public PackageNode visitPackageDeclaration(org.apache.groovy.parser.antlr4.GroovyParser.PackageDeclarationContext ctx) -
visitImportDeclaration
public ImportNode visitImportDeclaration(org.apache.groovy.parser.antlr4.GroovyParser.ImportDeclarationContext ctx) -
visitAssertStatement
public AssertStatement visitAssertStatement(org.apache.groovy.parser.antlr4.GroovyParser.AssertStatementContext ctx) -
visitConditionalStatement
public Statement visitConditionalStatement(org.apache.groovy.parser.antlr4.GroovyParser.ConditionalStatementContext ctx) -
visitIfElseStatement
public IfStatement visitIfElseStatement(org.apache.groovy.parser.antlr4.GroovyParser.IfElseStatementContext ctx) -
visitLoopStmtAlt
public Statement visitLoopStmtAlt(org.apache.groovy.parser.antlr4.GroovyParser.LoopStmtAltContext ctx) -
visitForStmtAlt
public ForStatement visitForStmtAlt(org.apache.groovy.parser.antlr4.GroovyParser.ForStmtAltContext ctx) -
visitForControl
public Tuple2<Parameter,Expression> visitForControl(org.apache.groovy.parser.antlr4.GroovyParser.ForControlContext ctx) -
visitForInit
-
visitForUpdate
-
visitEnhancedForControl
public Tuple2<Parameter,Expression> visitEnhancedForControl(org.apache.groovy.parser.antlr4.GroovyParser.EnhancedForControlContext ctx) -
visitClassicalForControl
public Tuple2<Parameter,Expression> visitClassicalForControl(org.apache.groovy.parser.antlr4.GroovyParser.ClassicalForControlContext ctx) -
visitWhileStmtAlt
public WhileStatement visitWhileStmtAlt(org.apache.groovy.parser.antlr4.GroovyParser.WhileStmtAltContext ctx) -
visitDoWhileStmtAlt
public DoWhileStatement visitDoWhileStmtAlt(org.apache.groovy.parser.antlr4.GroovyParser.DoWhileStmtAltContext ctx) -
visitTryCatchStatement
public Statement visitTryCatchStatement(org.apache.groovy.parser.antlr4.GroovyParser.TryCatchStatementContext ctx) -
visitResources
public List<ExpressionStatement> visitResources(org.apache.groovy.parser.antlr4.GroovyParser.ResourcesContext ctx) -
visitResourceList
public List<ExpressionStatement> visitResourceList(org.apache.groovy.parser.antlr4.GroovyParser.ResourceListContext ctx) -
visitResource
public ExpressionStatement visitResource(org.apache.groovy.parser.antlr4.GroovyParser.ResourceContext ctx) -
visitCatchClause
public List<CatchStatement> visitCatchClause(org.apache.groovy.parser.antlr4.GroovyParser.CatchClauseContext ctx) Multi-catch(1..*) clause will be unpacked to several normal catch clauses, so the return type is List -
visitCatchType
-
visitFinallyBlock
public Statement visitFinallyBlock(org.apache.groovy.parser.antlr4.GroovyParser.FinallyBlockContext ctx) -
visitSwitchStatement
public SwitchStatement visitSwitchStatement(org.apache.groovy.parser.antlr4.GroovyParser.SwitchStatementContext ctx) -
visitSwitchBlockStatementGroup
-
visitSwitchLabel
public Tuple2<org.antlr.v4.runtime.Token,Expression> visitSwitchLabel(org.apache.groovy.parser.antlr4.GroovyParser.SwitchLabelContext ctx) -
visitSynchronizedStmtAlt
public SynchronizedStatement visitSynchronizedStmtAlt(org.apache.groovy.parser.antlr4.GroovyParser.SynchronizedStmtAltContext ctx) -
visitReturnStmtAlt
public ReturnStatement visitReturnStmtAlt(org.apache.groovy.parser.antlr4.GroovyParser.ReturnStmtAltContext ctx) -
visitThrowStmtAlt
public ThrowStatement visitThrowStmtAlt(org.apache.groovy.parser.antlr4.GroovyParser.ThrowStmtAltContext ctx) -
visitLabeledStmtAlt
public Statement visitLabeledStmtAlt(org.apache.groovy.parser.antlr4.GroovyParser.LabeledStmtAltContext ctx) -
visitBreakStatement
public BreakStatement visitBreakStatement(org.apache.groovy.parser.antlr4.GroovyParser.BreakStatementContext ctx) -
visitYieldStatement
public ReturnStatement visitYieldStatement(org.apache.groovy.parser.antlr4.GroovyParser.YieldStatementContext ctx) -
visitYieldStmtAlt
public ReturnStatement visitYieldStmtAlt(org.apache.groovy.parser.antlr4.GroovyParser.YieldStmtAltContext ctx) -
visitContinueStatement
public ContinueStatement visitContinueStatement(org.apache.groovy.parser.antlr4.GroovyParser.ContinueStatementContext ctx) -
visitSwitchExprAlt
public Expression visitSwitchExprAlt(org.apache.groovy.parser.antlr4.GroovyParser.SwitchExprAltContext ctx) -
visitSwitchExpression
public MethodCallExpression visitSwitchExpression(org.apache.groovy.parser.antlr4.GroovyParser.SwitchExpressionContext ctx) switch(a) { case 0, 1 -> 'a'; case 2 -> 'b'; default -> 'z'; }
the above code will be transformed to:{-> switch(a) { case 0: case 1: return 'a'; case 2: return 'b'; default: return 'z'; } }()
- Specified by:
visitSwitchExpression
in interfaceorg.apache.groovy.parser.antlr4.GroovyParserVisitor<Object>
- Overrides:
visitSwitchExpression
in classorg.apache.groovy.parser.antlr4.GroovyParserBaseVisitor<Object>
- Parameters:
ctx
- the parse tree- Returns:
MethodCallExpression
instance
-
visitSwitchBlockStatementExpressionGroup
-
visitSwitchExpressionLabel
public Tuple3<org.antlr.v4.runtime.Token,List<Expression>, visitSwitchExpressionLabelInteger> (org.apache.groovy.parser.antlr4.GroovyParser.SwitchExpressionLabelContext ctx) -
visitTypeDeclaration
public ClassNode visitTypeDeclaration(org.apache.groovy.parser.antlr4.GroovyParser.TypeDeclarationContext ctx) -
visitClassDeclaration
public ClassNode visitClassDeclaration(org.apache.groovy.parser.antlr4.GroovyParser.ClassDeclarationContext ctx) -
visitClassBody
-
visitEnumConstants
-
visitEnumConstant
public FieldNode visitEnumConstant(org.apache.groovy.parser.antlr4.GroovyParser.EnumConstantContext ctx) -
visitClassBodyDeclaration
public Void visitClassBodyDeclaration(org.apache.groovy.parser.antlr4.GroovyParser.ClassBodyDeclarationContext ctx) -
visitMemberDeclaration
public Void visitMemberDeclaration(org.apache.groovy.parser.antlr4.GroovyParser.MemberDeclarationContext ctx) -
visitTypeParameters
public GenericsType[] visitTypeParameters(org.apache.groovy.parser.antlr4.GroovyParser.TypeParametersContext ctx) -
visitTypeParameter
public GenericsType visitTypeParameter(org.apache.groovy.parser.antlr4.GroovyParser.TypeParameterContext ctx) -
visitTypeBound
public ClassNode[] visitTypeBound(org.apache.groovy.parser.antlr4.GroovyParser.TypeBoundContext ctx) -
visitFieldDeclaration
public Void visitFieldDeclaration(org.apache.groovy.parser.antlr4.GroovyParser.FieldDeclarationContext ctx) -
visitCompactConstructorDeclaration
public MethodNode visitCompactConstructorDeclaration(org.apache.groovy.parser.antlr4.GroovyParser.CompactConstructorDeclarationContext ctx) -
visitMethodDeclaration
public MethodNode visitMethodDeclaration(org.apache.groovy.parser.antlr4.GroovyParser.MethodDeclarationContext ctx) -
visitMethodName
-
visitReturnType
public ClassNode visitReturnType(org.apache.groovy.parser.antlr4.GroovyParser.ReturnTypeContext ctx) -
visitMethodBody
public Statement visitMethodBody(org.apache.groovy.parser.antlr4.GroovyParser.MethodBodyContext ctx) -
visitLocalVariableDeclaration
public org.apache.groovy.parser.antlr4.AstBuilder.DeclarationListStatement visitLocalVariableDeclaration(org.apache.groovy.parser.antlr4.GroovyParser.LocalVariableDeclarationContext ctx) -
visitVariableDeclaration
public org.apache.groovy.parser.antlr4.AstBuilder.DeclarationListStatement visitVariableDeclaration(org.apache.groovy.parser.antlr4.GroovyParser.VariableDeclarationContext ctx) -
visitTypeNamePairs
public List<Expression> visitTypeNamePairs(org.apache.groovy.parser.antlr4.GroovyParser.TypeNamePairsContext ctx) -
visitTypeNamePair
public VariableExpression visitTypeNamePair(org.apache.groovy.parser.antlr4.GroovyParser.TypeNamePairContext ctx) -
visitVariableDeclarators
public List<DeclarationExpression> visitVariableDeclarators(org.apache.groovy.parser.antlr4.GroovyParser.VariableDeclaratorsContext ctx) -
visitVariableDeclarator
public DeclarationExpression visitVariableDeclarator(org.apache.groovy.parser.antlr4.GroovyParser.VariableDeclaratorContext ctx) -
visitVariableInitializer
public Expression visitVariableInitializer(org.apache.groovy.parser.antlr4.GroovyParser.VariableInitializerContext ctx) -
visitVariableInitializers
public List<Expression> visitVariableInitializers(org.apache.groovy.parser.antlr4.GroovyParser.VariableInitializersContext ctx) -
visitArrayInitializer
public List<Expression> visitArrayInitializer(org.apache.groovy.parser.antlr4.GroovyParser.ArrayInitializerContext ctx) -
visitBlock
-
visitCommandExprAlt
public ExpressionStatement visitCommandExprAlt(org.apache.groovy.parser.antlr4.GroovyParser.CommandExprAltContext ctx) -
visitCommandExpression
public Expression visitCommandExpression(org.apache.groovy.parser.antlr4.GroovyParser.CommandExpressionContext ctx) -
visitCommandArgument
public Expression visitCommandArgument(org.apache.groovy.parser.antlr4.GroovyParser.CommandArgumentContext ctx) -
visitCastParExpression
public ClassNode visitCastParExpression(org.apache.groovy.parser.antlr4.GroovyParser.CastParExpressionContext ctx) -
visitParExpression
public Expression visitParExpression(org.apache.groovy.parser.antlr4.GroovyParser.ParExpressionContext ctx) -
visitExpressionInPar
public Expression visitExpressionInPar(org.apache.groovy.parser.antlr4.GroovyParser.ExpressionInParContext ctx) -
visitEnhancedStatementExpression
public Expression visitEnhancedStatementExpression(org.apache.groovy.parser.antlr4.GroovyParser.EnhancedStatementExpressionContext ctx) -
visitPathExpression
public Expression visitPathExpression(org.apache.groovy.parser.antlr4.GroovyParser.PathExpressionContext ctx) -
visitPathElement
public Expression visitPathElement(org.apache.groovy.parser.antlr4.GroovyParser.PathElementContext ctx) -
visitNonWildcardTypeArguments
public GenericsType[] visitNonWildcardTypeArguments(org.apache.groovy.parser.antlr4.GroovyParser.NonWildcardTypeArgumentsContext ctx) -
visitTypeList
-
visitArguments
-
visitEnhancedArgumentListInPar
public Expression visitEnhancedArgumentListInPar(org.apache.groovy.parser.antlr4.GroovyParser.EnhancedArgumentListInParContext ctx) -
visitEnhancedArgumentListElement
public Expression visitEnhancedArgumentListElement(org.apache.groovy.parser.antlr4.GroovyParser.EnhancedArgumentListElementContext ctx) -
visitStringLiteral
public ConstantExpression visitStringLiteral(org.apache.groovy.parser.antlr4.GroovyParser.StringLiteralContext ctx) -
visitIndexPropertyArgs
public Tuple2<org.antlr.v4.runtime.Token,Expression> visitIndexPropertyArgs(org.apache.groovy.parser.antlr4.GroovyParser.IndexPropertyArgsContext ctx) -
visitNamedPropertyArgs
public List<MapEntryExpression> visitNamedPropertyArgs(org.apache.groovy.parser.antlr4.GroovyParser.NamedPropertyArgsContext ctx) -
visitNamePart
-
visitDynamicMemberName
public Expression visitDynamicMemberName(org.apache.groovy.parser.antlr4.GroovyParser.DynamicMemberNameContext ctx) -
visitPostfixExpression
public Expression visitPostfixExpression(org.apache.groovy.parser.antlr4.GroovyParser.PostfixExpressionContext ctx) -
visitUnaryNotExprAlt
public Expression visitUnaryNotExprAlt(org.apache.groovy.parser.antlr4.GroovyParser.UnaryNotExprAltContext ctx) -
visitCastExprAlt
public CastExpression visitCastExprAlt(org.apache.groovy.parser.antlr4.GroovyParser.CastExprAltContext ctx) -
visitPowerExprAlt
public BinaryExpression visitPowerExprAlt(org.apache.groovy.parser.antlr4.GroovyParser.PowerExprAltContext ctx) -
visitUnaryAddExprAlt
public Expression visitUnaryAddExprAlt(org.apache.groovy.parser.antlr4.GroovyParser.UnaryAddExprAltContext ctx) -
visitMultiplicativeExprAlt
public BinaryExpression visitMultiplicativeExprAlt(org.apache.groovy.parser.antlr4.GroovyParser.MultiplicativeExprAltContext ctx) -
visitAdditiveExprAlt
public BinaryExpression visitAdditiveExprAlt(org.apache.groovy.parser.antlr4.GroovyParser.AdditiveExprAltContext ctx) -
visitShiftExprAlt
public Expression visitShiftExprAlt(org.apache.groovy.parser.antlr4.GroovyParser.ShiftExprAltContext ctx) -
visitRelationalExprAlt
public Expression visitRelationalExprAlt(org.apache.groovy.parser.antlr4.GroovyParser.RelationalExprAltContext ctx) -
visitEqualityExprAlt
public BinaryExpression visitEqualityExprAlt(org.apache.groovy.parser.antlr4.GroovyParser.EqualityExprAltContext ctx) -
visitRegexExprAlt
public BinaryExpression visitRegexExprAlt(org.apache.groovy.parser.antlr4.GroovyParser.RegexExprAltContext ctx) -
visitAndExprAlt
public BinaryExpression visitAndExprAlt(org.apache.groovy.parser.antlr4.GroovyParser.AndExprAltContext ctx) -
visitExclusiveOrExprAlt
public BinaryExpression visitExclusiveOrExprAlt(org.apache.groovy.parser.antlr4.GroovyParser.ExclusiveOrExprAltContext ctx) -
visitInclusiveOrExprAlt
public BinaryExpression visitInclusiveOrExprAlt(org.apache.groovy.parser.antlr4.GroovyParser.InclusiveOrExprAltContext ctx) -
visitLogicalAndExprAlt
public BinaryExpression visitLogicalAndExprAlt(org.apache.groovy.parser.antlr4.GroovyParser.LogicalAndExprAltContext ctx) -
visitLogicalOrExprAlt
public BinaryExpression visitLogicalOrExprAlt(org.apache.groovy.parser.antlr4.GroovyParser.LogicalOrExprAltContext ctx) -
visitConditionalExprAlt
public Expression visitConditionalExprAlt(org.apache.groovy.parser.antlr4.GroovyParser.ConditionalExprAltContext ctx) -
visitMultipleAssignmentExprAlt
public BinaryExpression visitMultipleAssignmentExprAlt(org.apache.groovy.parser.antlr4.GroovyParser.MultipleAssignmentExprAltContext ctx) -
visitAssignmentExprAlt
public BinaryExpression visitAssignmentExprAlt(org.apache.groovy.parser.antlr4.GroovyParser.AssignmentExprAltContext ctx) -
visitIdentifierPrmrAlt
public Expression visitIdentifierPrmrAlt(org.apache.groovy.parser.antlr4.GroovyParser.IdentifierPrmrAltContext ctx) -
visitNewPrmrAlt
public Expression visitNewPrmrAlt(org.apache.groovy.parser.antlr4.GroovyParser.NewPrmrAltContext ctx) -
visitThisPrmrAlt
public VariableExpression visitThisPrmrAlt(org.apache.groovy.parser.antlr4.GroovyParser.ThisPrmrAltContext ctx) -
visitSuperPrmrAlt
public VariableExpression visitSuperPrmrAlt(org.apache.groovy.parser.antlr4.GroovyParser.SuperPrmrAltContext ctx) -
visitCreator
-
visitDim
public Tuple3<Expression,List<AnnotationNode>, visitDimorg.antlr.v4.runtime.tree.TerminalNode> (org.apache.groovy.parser.antlr4.GroovyParser.DimContext ctx) -
visitAnonymousInnerClassDeclaration
public InnerClassNode visitAnonymousInnerClassDeclaration(org.apache.groovy.parser.antlr4.GroovyParser.AnonymousInnerClassDeclarationContext ctx) -
visitCreatedName
public ClassNode visitCreatedName(org.apache.groovy.parser.antlr4.GroovyParser.CreatedNameContext ctx) -
visitMap
-
visitMapEntryList
public List<MapEntryExpression> visitMapEntryList(org.apache.groovy.parser.antlr4.GroovyParser.MapEntryListContext ctx) -
visitMapEntry
public MapEntryExpression visitMapEntry(org.apache.groovy.parser.antlr4.GroovyParser.MapEntryContext ctx) -
visitMapEntryLabel
public Expression visitMapEntryLabel(org.apache.groovy.parser.antlr4.GroovyParser.MapEntryLabelContext ctx) -
visitKeywords
public ConstantExpression visitKeywords(org.apache.groovy.parser.antlr4.GroovyParser.KeywordsContext ctx) -
visitBuiltInType
public VariableExpression visitBuiltInType(org.apache.groovy.parser.antlr4.GroovyParser.BuiltInTypeContext ctx) -
visitList
-
visitExpressionList
public List<Expression> visitExpressionList(org.apache.groovy.parser.antlr4.GroovyParser.ExpressionListContext ctx) -
visitExpressionListElement
public Expression visitExpressionListElement(org.apache.groovy.parser.antlr4.GroovyParser.ExpressionListElementContext ctx) -
visitIntegerLiteralAlt
public ConstantExpression visitIntegerLiteralAlt(org.apache.groovy.parser.antlr4.GroovyParser.IntegerLiteralAltContext ctx) -
visitFloatingPointLiteralAlt
public ConstantExpression visitFloatingPointLiteralAlt(org.apache.groovy.parser.antlr4.GroovyParser.FloatingPointLiteralAltContext ctx) -
visitBooleanLiteralAlt
public ConstantExpression visitBooleanLiteralAlt(org.apache.groovy.parser.antlr4.GroovyParser.BooleanLiteralAltContext ctx) -
visitNullLiteralAlt
public ConstantExpression visitNullLiteralAlt(org.apache.groovy.parser.antlr4.GroovyParser.NullLiteralAltContext ctx) -
visitGstring
public GStringExpression visitGstring(org.apache.groovy.parser.antlr4.GroovyParser.GstringContext ctx) -
visitGstringValue
public Expression visitGstringValue(org.apache.groovy.parser.antlr4.GroovyParser.GstringValueContext ctx) -
visitGstringPath
public Expression visitGstringPath(org.apache.groovy.parser.antlr4.GroovyParser.GstringPathContext ctx) -
visitStandardLambdaExpression
public LambdaExpression visitStandardLambdaExpression(org.apache.groovy.parser.antlr4.GroovyParser.StandardLambdaExpressionContext ctx) -
visitStandardLambdaParameters
public Parameter[] visitStandardLambdaParameters(org.apache.groovy.parser.antlr4.GroovyParser.StandardLambdaParametersContext ctx) -
visitLambdaBody
public Statement visitLambdaBody(org.apache.groovy.parser.antlr4.GroovyParser.LambdaBodyContext ctx) -
visitClosure
public ClosureExpression visitClosure(org.apache.groovy.parser.antlr4.GroovyParser.ClosureContext ctx) -
visitFormalParameters
public Parameter[] visitFormalParameters(org.apache.groovy.parser.antlr4.GroovyParser.FormalParametersContext ctx) -
visitFormalParameterList
public Parameter[] visitFormalParameterList(org.apache.groovy.parser.antlr4.GroovyParser.FormalParameterListContext ctx) -
visitFormalParameter
public Parameter visitFormalParameter(org.apache.groovy.parser.antlr4.GroovyParser.FormalParameterContext ctx) -
visitThisFormalParameter
public Parameter visitThisFormalParameter(org.apache.groovy.parser.antlr4.GroovyParser.ThisFormalParameterContext ctx) -
visitClassOrInterfaceModifiersOpt
public List<ModifierNode> visitClassOrInterfaceModifiersOpt(org.apache.groovy.parser.antlr4.GroovyParser.ClassOrInterfaceModifiersOptContext ctx) -
visitClassOrInterfaceModifiers
public List<ModifierNode> visitClassOrInterfaceModifiers(org.apache.groovy.parser.antlr4.GroovyParser.ClassOrInterfaceModifiersContext ctx) -
visitClassOrInterfaceModifier
public ModifierNode visitClassOrInterfaceModifier(org.apache.groovy.parser.antlr4.GroovyParser.ClassOrInterfaceModifierContext ctx) -
visitModifier
-
visitModifiers
public List<ModifierNode> visitModifiers(org.apache.groovy.parser.antlr4.GroovyParser.ModifiersContext ctx) -
visitModifiersOpt
public List<ModifierNode> visitModifiersOpt(org.apache.groovy.parser.antlr4.GroovyParser.ModifiersOptContext ctx) -
visitVariableModifier
public ModifierNode visitVariableModifier(org.apache.groovy.parser.antlr4.GroovyParser.VariableModifierContext ctx) -
visitVariableModifiersOpt
public List<ModifierNode> visitVariableModifiersOpt(org.apache.groovy.parser.antlr4.GroovyParser.VariableModifiersOptContext ctx) -
visitVariableModifiers
public List<ModifierNode> visitVariableModifiers(org.apache.groovy.parser.antlr4.GroovyParser.VariableModifiersContext ctx) -
visitEmptyDims
public List<List<AnnotationNode>> visitEmptyDims(org.apache.groovy.parser.antlr4.GroovyParser.EmptyDimsContext ctx) -
visitEmptyDimsOpt
public List<List<AnnotationNode>> visitEmptyDimsOpt(org.apache.groovy.parser.antlr4.GroovyParser.EmptyDimsOptContext ctx) -
visitType
-
visitClassOrInterfaceType
public ClassNode visitClassOrInterfaceType(org.apache.groovy.parser.antlr4.GroovyParser.ClassOrInterfaceTypeContext ctx) -
visitTypeArgumentsOrDiamond
public GenericsType[] visitTypeArgumentsOrDiamond(org.apache.groovy.parser.antlr4.GroovyParser.TypeArgumentsOrDiamondContext ctx) -
visitTypeArguments
public GenericsType[] visitTypeArguments(org.apache.groovy.parser.antlr4.GroovyParser.TypeArgumentsContext ctx) -
visitTypeArgument
public GenericsType visitTypeArgument(org.apache.groovy.parser.antlr4.GroovyParser.TypeArgumentContext ctx) -
visitPrimitiveType
public ClassNode visitPrimitiveType(org.apache.groovy.parser.antlr4.GroovyParser.PrimitiveTypeContext ctx) -
visitVariableDeclaratorId
public VariableExpression visitVariableDeclaratorId(org.apache.groovy.parser.antlr4.GroovyParser.VariableDeclaratorIdContext ctx) -
visitVariableNames
public TupleExpression visitVariableNames(org.apache.groovy.parser.antlr4.GroovyParser.VariableNamesContext ctx) -
visitClosureOrLambdaExpression
public ClosureExpression visitClosureOrLambdaExpression(org.apache.groovy.parser.antlr4.GroovyParser.ClosureOrLambdaExpressionContext ctx) -
visitBlockStatementsOpt
public BlockStatement visitBlockStatementsOpt(org.apache.groovy.parser.antlr4.GroovyParser.BlockStatementsOptContext ctx) -
visitBlockStatements
public BlockStatement visitBlockStatements(org.apache.groovy.parser.antlr4.GroovyParser.BlockStatementsContext ctx) -
visitBlockStatement
public Statement visitBlockStatement(org.apache.groovy.parser.antlr4.GroovyParser.BlockStatementContext ctx) -
visitAnnotationsOpt
public List<AnnotationNode> visitAnnotationsOpt(org.apache.groovy.parser.antlr4.GroovyParser.AnnotationsOptContext ctx) -
visitAnnotation
public AnnotationNode visitAnnotation(org.apache.groovy.parser.antlr4.GroovyParser.AnnotationContext ctx) -
visitElementValues
public List<Tuple2<String,Expression>> visitElementValues(org.apache.groovy.parser.antlr4.GroovyParser.ElementValuesContext ctx) -
visitAnnotationName
public String visitAnnotationName(org.apache.groovy.parser.antlr4.GroovyParser.AnnotationNameContext ctx) -
visitElementValuePairs
public Map<String,Expression> visitElementValuePairs(org.apache.groovy.parser.antlr4.GroovyParser.ElementValuePairsContext ctx) -
visitElementValuePair
public Tuple2<String,Expression> visitElementValuePair(org.apache.groovy.parser.antlr4.GroovyParser.ElementValuePairContext ctx) -
visitElementValue
public Expression visitElementValue(org.apache.groovy.parser.antlr4.GroovyParser.ElementValueContext ctx) -
visitElementValueArrayInitializer
public ListExpression visitElementValueArrayInitializer(org.apache.groovy.parser.antlr4.GroovyParser.ElementValueArrayInitializerContext ctx) -
visitClassName
-
visitIdentifier
-
visitQualifiedName
public String visitQualifiedName(org.apache.groovy.parser.antlr4.GroovyParser.QualifiedNameContext ctx) -
visitAnnotatedQualifiedClassName
public ClassNode visitAnnotatedQualifiedClassName(org.apache.groovy.parser.antlr4.GroovyParser.AnnotatedQualifiedClassNameContext ctx) -
visitQualifiedClassNameList
public ClassNode[] visitQualifiedClassNameList(org.apache.groovy.parser.antlr4.GroovyParser.QualifiedClassNameListContext ctx) -
visitQualifiedClassName
public ClassNode visitQualifiedClassName(org.apache.groovy.parser.antlr4.GroovyParser.QualifiedClassNameContext ctx) -
visitQualifiedStandardClassName
public ClassNode visitQualifiedStandardClassName(org.apache.groovy.parser.antlr4.GroovyParser.QualifiedStandardClassNameContext ctx) -
visit
Visit tree safely, no NPE occurred when the tree is null. -
appendStatementsToBlockStatement
-