GroovyParser (groovy 3.0.7 API)

Package: org.apache.groovy.parser.antlr4

## [Java] Class GroovyParser

- org.apache.groovy.parser.antlr4.GroovyParser

-     public class GroovyParser
      extends AbstractParser

- - ### Nested Class Summary

    Nested classes
    Modifiers | Name | Description
    --- | --- | ---
    `static class` | `GroovyParser.AdditiveExprAltContext` |
    `static class` | `GroovyParser.AndExprAltContext` |
    `static class` | `GroovyParser.AnnotatedQualifiedClassNameContext` |
    `static class` | `GroovyParser.AnnotationContext` |
    `static class` | `GroovyParser.AnnotationNameContext` |
    `static class` | `GroovyParser.AnnotationsOptContext` |
    `static class` | `GroovyParser.AnonymousInnerClassDeclarationContext` |
    `static class` | `GroovyParser.ArgumentsContext` |
    `static class` | `GroovyParser.ArrayInitializerContext` |
    `static class` | `GroovyParser.AssertStatementContext` |
    `static class` | `GroovyParser.AssertStmtAltContext` |
    `static class` | `GroovyParser.AssignmentExprAltContext` |
    `static class` | `GroovyParser.BlockContext` |
    `static class` | `GroovyParser.BlockStatementContext` |
    `static class` | `GroovyParser.BlockStatementsContext` |
    `static class` | `GroovyParser.BlockStatementsOptContext` |
    `static class` | `GroovyParser.BlockStmtAltContext` |
    `static class` | `GroovyParser.BooleanLiteralAltContext` |
    `static class` | `GroovyParser.BreakStatementContext` |
    `static class` | `GroovyParser.BreakStmtAltContext` |
    `static class` | `GroovyParser.BuiltInTypeContext` |
    `static class` | `GroovyParser.BuiltInTypePrmrAltContext` |
    `static class` | `GroovyParser.CastExprAltContext` |
    `static class` | `GroovyParser.CastParExpressionContext` |
    `static class` | `GroovyParser.CatchClauseContext` |
    `static class` | `GroovyParser.CatchTypeContext` |
    `static class` | `GroovyParser.ClassBodyContext` |
    `static class` | `GroovyParser.ClassBodyDeclarationContext` |
    `static class` | `GroovyParser.ClassDeclarationContext` |
    `static class` | `GroovyParser.ClassNameContext` |
    `static class` | `GroovyParser.ClassOrInterfaceModifierContext` |
    `static class` | `GroovyParser.ClassOrInterfaceModifiersContext` |
    `static class` | `GroovyParser.ClassOrInterfaceModifiersOptContext` |
    `static class` | `GroovyParser.ClassOrInterfaceTypeContext` |
    `static class` | `GroovyParser.ClassicalForControlContext` |
    `static class` | `GroovyParser.ClosureContext` |
    `static class` | `GroovyParser.ClosureOrLambdaExpressionContext` |
    `static class` | `GroovyParser.ClosureOrLambdaExpressionPrmrAltContext` |
    `static class` | `GroovyParser.CommandArgumentContext` |
    `static class` | `GroovyParser.CommandExprAltContext` |
    `static class` | `GroovyParser.CommandExpressionContext` |
    `static class` | `GroovyParser.CompilationUnitContext` |
    `static class` | `GroovyParser.ConditionalExprAltContext` |
    `static class` | `GroovyParser.ConditionalStatementContext` |
    `static class` | `GroovyParser.ConditionalStmtAltContext` |
    `static class` | `GroovyParser.ContinueStatementContext` |
    `static class` | `GroovyParser.ContinueStmtAltContext` |
    `static class` | `GroovyParser.CreatedNameContext` |
    `static class` | `GroovyParser.CreatorContext` |
    `static class` | `GroovyParser.DimContext` |
    `static class` | `GroovyParser.DoWhileStmtAltContext` |
    `static class` | `GroovyParser.DynamicMemberNameContext` |
    `static class` | `GroovyParser.ElementValueArrayInitializerContext` |
    `static class` | `GroovyParser.ElementValueContext` |
    `static class` | `GroovyParser.ElementValuePairContext` |
    `static class` | `GroovyParser.ElementValuePairNameContext` |
    `static class` | `GroovyParser.ElementValuePairsContext` |
    `static class` | `GroovyParser.ElementValuesContext` |
    `static class` | `GroovyParser.EmptyDimsContext` |
    `static class` | `GroovyParser.EmptyDimsOptContext` |
    `static class` | `GroovyParser.EmptyStmtAltContext` |
    `static class` | `GroovyParser.EnhancedArgumentListElementContext` |
    `static class` | `GroovyParser.EnhancedArgumentListInParContext` |
    `static class` | `GroovyParser.EnhancedForControlContext` |
    `static class` | `GroovyParser.EnhancedStatementExpressionContext` |
    `static class` | `GroovyParser.EnumConstantContext` |
    `static class` | `GroovyParser.EnumConstantsContext` |
    `static class` | `GroovyParser.EqualityExprAltContext` |
    `static class` | `GroovyParser.ExclusiveOrExprAltContext` |
    `static class` | `GroovyParser.ExpressionContext` |
    `static class` | `GroovyParser.ExpressionInParContext` |
    `static class` | `GroovyParser.ExpressionListContext` |
    `static class` | `GroovyParser.ExpressionListElementContext` |
    `static class` | `GroovyParser.ExpressionStmtAltContext` |
    `static class` | `GroovyParser.FieldDeclarationContext` |
    `static class` | `GroovyParser.FinallyBlockContext` |
    `static class` | `GroovyParser.FloatingPointLiteralAltContext` |
    `static class` | `GroovyParser.ForControlContext` |
    `static class` | `GroovyParser.ForInitContext` |
    `static class` | `GroovyParser.ForStmtAltContext` |
    `static class` | `GroovyParser.ForUpdateContext` |
    `static class` | `GroovyParser.FormalParameterContext` |
    `static class` | `GroovyParser.FormalParameterListContext` |
    `static class` | `GroovyParser.FormalParametersContext` |
    `static class` | `GroovyParser.GroovyParserRuleContext` |
    `static class` | `GroovyParser.GstringContext` |
    `static class` | `GroovyParser.GstringPathContext` |
    `static class` | `GroovyParser.GstringPrmrAltContext` |
    `static class` | `GroovyParser.GstringValueContext` |
    `static class` | `GroovyParser.IdentifierContext` |
    `static class` | `GroovyParser.IdentifierPrmrAltContext` |
    `static class` | `GroovyParser.IfElseStatementContext` |
    `static class` | `GroovyParser.ImportDeclarationContext` |
    `static class` | `GroovyParser.InclusiveOrExprAltContext` |
    `static class` | `GroovyParser.IndexPropertyArgsContext` |
    `static class` | `GroovyParser.IntegerLiteralAltContext` |
    `static class` | `GroovyParser.KeywordsContext` |
    `static class` | `GroovyParser.LabeledStmtAltContext` |
    `static class` | `GroovyParser.LambdaBodyContext` |
    `static class` | `GroovyParser.ListContext` |
    `static class` | `GroovyParser.ListPrmrAltContext` |
    `static class` | `GroovyParser.LiteralContext` |
    `static class` | `GroovyParser.LiteralPrmrAltContext` |
    `static class` | `GroovyParser.LocalVariableDeclarationContext` |
    `static class` | `GroovyParser.LocalVariableDeclarationStmtAltContext` |
    `static class` | `GroovyParser.LogicalAndExprAltContext` |
    `static class` | `GroovyParser.LogicalOrExprAltContext` |
    `static class` | `GroovyParser.LoopStatementContext` |
    `static class` | `GroovyParser.LoopStmtAltContext` |
    `static class` | `GroovyParser.MapContext` |
    `static class` | `GroovyParser.MapEntryContext` |
    `static class` | `GroovyParser.MapEntryLabelContext` |
    `static class` | `GroovyParser.MapEntryListContext` |
    `static class` | `GroovyParser.MapPrmrAltContext` |
    `static class` | `GroovyParser.MemberDeclarationContext` |
    `static class` | `GroovyParser.MethodBodyContext` |
    `static class` | `GroovyParser.MethodDeclarationContext` |
    `static class` | `GroovyParser.MethodNameContext` |
    `static class` | `GroovyParser.ModifierContext` |
    `static class` | `GroovyParser.ModifiersContext` |
    `static class` | `GroovyParser.ModifiersOptContext` |
    `static class` | `GroovyParser.MultipleAssignmentExprAltContext` |
    `static class` | `GroovyParser.MultiplicativeExprAltContext` |
    `static class` | `GroovyParser.NamePartContext` |
    `static class` | `GroovyParser.NamedPropertyArgsContext` |
    `static class` | `GroovyParser.NewPrmrAltContext` |
    `static class` | `GroovyParser.NlsContext` |
    `static class` | `GroovyParser.NonWildcardTypeArgumentsContext` |
    `static class` | `GroovyParser.NullLiteralAltContext` |
    `static class` | `GroovyParser.PackageDeclarationContext` |
    `static class` | `GroovyParser.ParExpressionContext` |
    `static class` | `GroovyParser.ParenPrmrAltContext` |
    `static class` | `GroovyParser.PathElementContext` |
    `static class` | `GroovyParser.PathExpressionContext` |
    `static class` | `GroovyParser.PostfixExprAltContext` |
    `static class` | `GroovyParser.PostfixExpressionContext` |
    `static class` | `GroovyParser.PowerExprAltContext` |
    `static class` | `GroovyParser.PrimaryContext` |
    `static class` | `GroovyParser.PrimitiveTypeContext` |
    `static class` | `GroovyParser.QualifiedClassNameContext` |
    `static class` | `GroovyParser.QualifiedClassNameListContext` |
    `static class` | `GroovyParser.QualifiedNameContext` |
    `static class` | `GroovyParser.QualifiedNameElementContext` |
    `static class` | `GroovyParser.QualifiedNameElementsContext` |
    `static class` | `GroovyParser.QualifiedStandardClassNameContext` |
    `static class` | `GroovyParser.RegexExprAltContext` |
    `static class` | `GroovyParser.RelationalExprAltContext` |
    `static class` | `GroovyParser.ResourceContext` |
    `static class` | `GroovyParser.ResourceListContext` |
    `static class` | `GroovyParser.ResourcesContext` |
    `static class` | `GroovyParser.ReturnStmtAltContext` |
    `static class` | `GroovyParser.ReturnTypeContext` |
    `static class` | `GroovyParser.RparenContext` |
    `static class` | `GroovyParser.ScriptStatementContext` |
    `static class` | `GroovyParser.ScriptStatementsContext` |
    `static class` | `GroovyParser.SepContext` |
    `static class` | `GroovyParser.ShiftExprAltContext` |
    `static class` | `GroovyParser.StandardLambdaExpressionContext` |
    `static class` | `GroovyParser.StandardLambdaParametersContext` |
    `static class` | `GroovyParser.StatementContext` |
    `static class` | `GroovyParser.StatementExpressionContext` |
    `static class` | `GroovyParser.StringLiteralAltContext` |
    `static class` | `GroovyParser.StringLiteralContext` |
    `static class` | `GroovyParser.SuperPrmrAltContext` |
    `static class` | `GroovyParser.SwitchBlockStatementGroupContext` |
    `static class` | `GroovyParser.SwitchLabelContext` |
    `static class` | `GroovyParser.SwitchStatementContext` |
    `static class` | `GroovyParser.SynchronizedStmtAltContext` |
    `static class` | `GroovyParser.ThisFormalParameterContext` |
    `static class` | `GroovyParser.ThisPrmrAltContext` |
    `static class` | `GroovyParser.ThrowStmtAltContext` |
    `static class` | `GroovyParser.TryCatchStatementContext` |
    `static class` | `GroovyParser.TryCatchStmtAltContext` |
    `static class` | `GroovyParser.TypeArgumentContext` |
    `static class` | `GroovyParser.TypeArgumentsContext` |
    `static class` | `GroovyParser.TypeArgumentsOrDiamondContext` |
    `static class` | `GroovyParser.TypeBoundContext` |
    `static class` | `GroovyParser.TypeContext` |
    `static class` | `GroovyParser.TypeDeclarationContext` |
    `static class` | `GroovyParser.TypeListContext` |
    `static class` | `GroovyParser.TypeNamePairContext` |
    `static class` | `GroovyParser.TypeNamePairsContext` |
    `static class` | `GroovyParser.TypeParameterContext` |
    `static class` | `GroovyParser.TypeParametersContext` |
    `static class` | `GroovyParser.UnaryAddExprAltContext` |
    `static class` | `GroovyParser.UnaryNotExprAltContext` |
    `static class` | `GroovyParser.VariableDeclarationContext` |
    `static class` | `GroovyParser.VariableDeclaratorContext` |
    `static class` | `GroovyParser.VariableDeclaratorIdContext` |
    `static class` | `GroovyParser.VariableDeclaratorsContext` |
    `static class` | `GroovyParser.VariableInitializerContext` |
    `static class` | `GroovyParser.VariableInitializersContext` |
    `static class` | `GroovyParser.VariableModifierContext` |
    `static class` | `GroovyParser.VariableModifiersContext` |
    `static class` | `GroovyParser.VariableModifiersOptContext` |
    `static class` | `GroovyParser.VariableNamesContext` |
    `static class` | `GroovyParser.WhileStmtAltContext` |

  - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `static int` | `RULE_compilationUnit` |
    `static int` | `StringLiteral` |
    `static Vocabulary` | `VOCABULARY` |
    `static ATN` | `_ATN` |
    `static String` | `_serializedATN` |
    `static String[]` | `ruleNames` |
    `static String[]` | `tokenNames` | deprecated: Use VOCABULARY instead.

  - ### Constructor Summary

    Constructors
    Constructor and description
    `GroovyParser (TokenStream input)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public final AnnotatedQualifiedClassNameContext` | `annotatedQualifiedClassName()`
    `` | `public final AnnotationContext` | `annotation()`
    `` | `public final AnnotationNameContext` | `annotationName()`
    `` | `public final AnnotationsOptContext` | `annotationsOpt()`
    `` | `public final AnonymousInnerClassDeclarationContext` | `anonymousInnerClassDeclaration(int t)`
    `` | `public final EnhancedArgumentListInParContext` | `argumentList()`
    `` | `public final EnhancedArgumentListElementContext` | `argumentListElement()`
    `` | `public final ArgumentsContext` | `arguments()`
    `` | `public final ArrayInitializerContext` | `arrayInitializer()`
    `` | `public final AssertStatementContext` | `assertStatement()`
    `` | `public final BlockContext` | `block()`
    `` | `public final BlockStatementContext` | `blockStatement()`
    `` | `public final BlockStatementsContext` | `blockStatements()`
    `` | `public final BlockStatementsOptContext` | `blockStatementsOpt()`
    `` | `public final BreakStatementContext` | `breakStatement()`
    `` | `public final BuiltInTypeContext` | `builtInType()`
    `` | `public final ExpressionContext` | `castOperandExpression()`
    `` | `public final CastParExpressionContext` | `castParExpression()`
    `` | `public final CatchClauseContext` | `catchClause()`
    `` | `public final CatchTypeContext` | `catchType()`
    `` | `public final ClassBodyContext` | `classBody(int t)`
    `` | `public final ClassBodyDeclarationContext` | `classBodyDeclaration(int t)`
    `` | `public final ClassDeclarationContext` | `classDeclaration()`
    `` | `public final ClassNameContext` | `className()`
    `` | `public final ClassOrInterfaceModifierContext` | `classOrInterfaceModifier()`
    `` | `public final ClassOrInterfaceModifiersContext` | `classOrInterfaceModifiers()`
    `` | `public final ClassOrInterfaceModifiersOptContext` | `classOrInterfaceModifiersOpt()`
    `` | `public final ClassOrInterfaceTypeContext` | `classOrInterfaceType()`
    `` | `public final ClassicalForControlContext` | `classicalForControl()`
    `` | `public final ClosureContext` | `closure()`
    `` | `public final ClosureOrLambdaExpressionContext` | `closureOrLambdaExpression()`
    `` | `public final CommandArgumentContext` | `commandArgument()`
    `` | `public final CommandExpressionContext` | `commandExpression()`
    `` | `public final PrimaryContext` | `commandPrimary()`
    `` | `public final CompilationUnitContext` | `compilationUnit()`
    `` | `public final ConditionalStatementContext` | `conditionalStatement()`
    `` | `public final ContinueStatementContext` | `continueStatement()`
    `` | `protected FailedPredicateException` | `createFailedPredicateException(String predicate, String message)`
    `` | `public final CreatedNameContext` | `createdName()`
    `` | `public final CreatorContext` | `creator(int t)`
    `` | `public final DimContext` | `dim()`
    `` | `public final DynamicMemberNameContext` | `dynamicMemberName()`
    `` | `public final ElementValueContext` | `elementValue()`
    `` | `public final ElementValueArrayInitializerContext` | `elementValueArrayInitializer()`
    `` | `public final ElementValuePairContext` | `elementValuePair()`
    `` | `public final ElementValuePairNameContext` | `elementValuePairName()`
    `` | `public final ElementValuePairsContext` | `elementValuePairs()`
    `` | `public final ElementValuesContext` | `elementValues()`
    `` | `public final EmptyDimsContext` | `emptyDims()`
    `` | `public final EmptyDimsOptContext` | `emptyDimsOpt()`
    `` | `public final EnhancedArgumentListInParContext` | `enhancedArgumentList()`
    `` | `public final EnhancedArgumentListElementContext` | `enhancedArgumentListElement()`
    `` | `public final EnhancedArgumentListInParContext` | `enhancedArgumentListInPar()`
    `` | `public final EnhancedForControlContext` | `enhancedForControl()`
    `` | `public final EnhancedStatementExpressionContext` | `enhancedStatementExpression()`
    `` | `public final EnumConstantContext` | `enumConstant()`
    `` | `public final EnumConstantsContext` | `enumConstants()`
    `` | `public final ExpressionContext` | `expression()`
    `` | `public final ExpressionInParContext` | `expressionInPar()`
    `` | `public final ExpressionListContext` | `expressionList(boolean canSpread)`
    `` | `public final ExpressionListElementContext` | `expressionListElement(boolean canSpread)`
    `` | `public final FieldDeclarationContext` | `fieldDeclaration()`
    `` | `public final FinallyBlockContext` | `finallyBlock()`
    `` | `public final EnhancedArgumentListElementContext` | `firstArgumentListElement()`
    `` | `public final EnhancedArgumentListElementContext` | `firstEnhancedArgumentListElement()`
    `` | `public final ForControlContext` | `forControl()`
    `` | `public final ForInitContext` | `forInit()`
    `` | `public final ForUpdateContext` | `forUpdate()`
    `` | `public final FormalParameterContext` | `formalParameter()`
    `` | `public final FormalParameterListContext` | `formalParameterList()`
    `` | `public final FormalParametersContext` | `formalParameters()`
    `` | `public final ClassOrInterfaceTypeContext` | `generalClassOrInterfaceType()`
    `` | `public int` | `getErrorColumn()`
    `` | `public int` | `getErrorLine()`
    `` | `public String` | `getGrammarFileName()`
    `` | `public String[]` | `getRuleNames()`
    `` | `public String` | `getSerializedATN()`
    `` | `public int` | `getSyntaxErrorSource()`
    `` | `public String[]` | `getTokenNames()`
    `` | `public Vocabulary` | `getVocabulary()`
    `` | `public final GstringContext` | `gstring()`
    `` | `public final GstringPathContext` | `gstringPath()`
    `` | `public final GstringValueContext` | `gstringValue()`
    `` | `public final IdentifierContext` | `identifier()`
    `` | `public final IfElseStatementContext` | `ifElseStatement()`
    `` | `public final ImportDeclarationContext` | `importDeclaration()`
    `` | `public final IndexPropertyArgsContext` | `indexPropertyArgs()`
    `` | `public final KeywordsContext` | `keywords()`
    `` | `public final LambdaBodyContext` | `lambdaBody()`
    `` | `public final StandardLambdaExpressionContext` | `lambdaExpression()`
    `` | `public final StandardLambdaParametersContext` | `lambdaParameters()`
    `` | `public final ListContext` | `list()`
    `` | `public final LiteralContext` | `literal()`
    `` | `public final LocalVariableDeclarationContext` | `localVariableDeclaration()`
    `` | `public final LoopStatementContext` | `loopStatement()`
    `` | `public final MapContext` | `map()`
    `` | `public final MapEntryContext` | `mapEntry()`
    `` | `public final MapEntryLabelContext` | `mapEntryLabel()`
    `` | `public final MapEntryListContext` | `mapEntryList()`
    `` | `public final MemberDeclarationContext` | `memberDeclaration(int t)`
    `` | `public final MethodBodyContext` | `methodBody()`
    `` | `public final MethodDeclarationContext` | `methodDeclaration(int t, int ct)`
    `` | `public final MethodNameContext` | `methodName()`
    `` | `public final ModifierContext` | `modifier()`
    `` | `public final ModifiersContext` | `modifiers()`
    `` | `public final ModifiersOptContext` | `modifiersOpt()`
    `` | `public final NamePartContext` | `namePart()`
    `` | `public final MapEntryContext` | `namedArg()`
    `` | `public final MapEntryLabelContext` | `namedArgLabel()`
    `` | `public final PrimaryContext` | `namedArgPrimary()`
    `` | `public final MapEntryContext` | `namedPropertyArg()`
    `` | `public final MapEntryLabelContext` | `namedPropertyArgLabel()`
    `` | `public final MapEntryListContext` | `namedPropertyArgList()`
    `` | `public final PrimaryContext` | `namedPropertyArgPrimary()`
    `` | `public final NamedPropertyArgsContext` | `namedPropertyArgs()`
    `` | `public final NlsContext` | `nls()`
    `` | `public final NonWildcardTypeArgumentsContext` | `nonWildcardTypeArguments()`
    `` | `public final PackageDeclarationContext` | `packageDeclaration()`
    `` | `public final ParExpressionContext` | `parExpression()`
    `` | `public final PathElementContext` | `pathElement()`
    `` | `public final PathExpressionContext` | `pathExpression()`
    `` | `public final PostfixExpressionContext` | `postfixExpression()`
    `` | `public final PrimaryContext` | `primary()`
    `` | `public final PrimitiveTypeContext` | `primitiveType()`
    `` | `public final QualifiedClassNameContext` | `qualifiedClassName()`
    `` | `public final QualifiedClassNameListContext` | `qualifiedClassNameList()`
    `` | `public final QualifiedNameContext` | `qualifiedName()`
    `` | `public final QualifiedNameElementContext` | `qualifiedNameElement()`
    `` | `public final QualifiedNameElementsContext` | `qualifiedNameElements()`
    `` | `public final QualifiedStandardClassNameContext` | `qualifiedStandardClassName()`
    `` | `public final ResourceContext` | `resource()`
    `` | `public final ResourceListContext` | `resourceList()`
    `` | `public final ResourcesContext` | `resources()`
    `` | `public final ReturnTypeContext` | `returnType(int ct)`
    `` | `public final RparenContext` | `rparen()`
    `` | `public final ScriptStatementContext` | `scriptStatement()`
    `` | `public final ScriptStatementsContext` | `scriptStatements()`
    `` | `public boolean` | `sempred(RuleContext _localctx, int ruleIndex, int predIndex)`
    `` | `public final SepContext` | `sep()`
    `` | `public final ClassOrInterfaceTypeContext` | `standardClassOrInterfaceType()`
    `` | `public final StandardLambdaExpressionContext` | `standardLambdaExpression()`
    `` | `public final StandardLambdaParametersContext` | `standardLambdaParameters()`
    `` | `public final TypeContext` | `standardType()`
    `` | `public final StatementContext` | `statement()`
    `` | `public final StatementExpressionContext` | `statementExpression()`
    `` | `public final StringLiteralContext` | `stringLiteral()`
    `` | `public final SwitchBlockStatementGroupContext` | `switchBlockStatementGroup()`
    `` | `public final SwitchLabelContext` | `switchLabel()`
    `` | `public final SwitchStatementContext` | `switchStatement()`
    `` | `public final ThisFormalParameterContext` | `thisFormalParameter()`
    `` | `public final TryCatchStatementContext` | `tryCatchStatement()`
    `` | `public final TypeContext` | `type()`
    `` | `public final TypeArgumentContext` | `typeArgument()`
    `` | `public final TypeArgumentsContext` | `typeArguments()`
    `` | `public final TypeArgumentsOrDiamondContext` | `typeArgumentsOrDiamond()`
    `` | `public final TypeBoundContext` | `typeBound()`
    `` | `public final TypeDeclarationContext` | `typeDeclaration()`
    `` | `public final TypeListContext` | `typeList()`
    `` | `public final TypeNamePairContext` | `typeNamePair()`
    `` | `public final TypeNamePairsContext` | `typeNamePairs()`
    `` | `public final TypeParameterContext` | `typeParameter()`
    `` | `public final TypeParametersContext` | `typeParameters()`
    `` | `public final VariableDeclarationContext` | `variableDeclaration(int t)`
    `` | `public final VariableDeclaratorContext` | `variableDeclarator()`
    `` | `public final VariableDeclaratorIdContext` | `variableDeclaratorId()`
    `` | `public final VariableDeclaratorsContext` | `variableDeclarators()`
    `` | `public final VariableInitializerContext` | `variableInitializer()`
    `` | `public final VariableInitializersContext` | `variableInitializers()`
    `` | `public final VariableModifierContext` | `variableModifier()`
    `` | `public final VariableModifiersContext` | `variableModifiers()`
    `` | `public final VariableModifiersOptContext` | `variableModifiersOpt()`
    `` | `public final VariableNamesContext` | `variableNames()`

- - ### Field Detail

    - #### public static final int RULE_compilationUnit

    - #### public static final int StringLiteral

    - #### public static final Vocabulary VOCABULARY

    - #### public static final ATN _ATN

    - #### public static final String _serializedATN

    - #### public static final String[] ruleNames

    - #### @Deprecated public static final String[] tokenNames

      deprecated:
        Use VOCABULARY instead.

  - ### Constructor Detail

    - #### public GroovyParser(TokenStream input)

  - ### Method Detail

    - #### @RuleVersion(0) public final AnnotatedQualifiedClassNameContext annotatedQualifiedClassName()

    - #### @RuleVersion(0) public final AnnotationContext annotation()

    - #### @RuleVersion(0) public final AnnotationNameContext annotationName()

    - #### @RuleVersion(0) public final AnnotationsOptContext annotationsOpt()

    - #### @RuleVersion(0) public final AnonymousInnerClassDeclarationContext anonymousInnerClassDeclaration(int t)

    - #### @RuleVersion(0) public final EnhancedArgumentListInParContext argumentList()

    - #### @RuleVersion(0) public final EnhancedArgumentListElementContext argumentListElement()

    - #### @RuleVersion(0) public final ArgumentsContext arguments()

    - #### @RuleVersion(0) public final ArrayInitializerContext arrayInitializer()

    - #### @RuleVersion(0) public final AssertStatementContext assertStatement()

    - #### @RuleVersion(0) public final BlockContext block()

    - #### @RuleVersion(0) public final BlockStatementContext blockStatement()

    - #### @RuleVersion(0) public final BlockStatementsContext blockStatements()

    - #### @RuleVersion(0) public final BlockStatementsOptContext blockStatementsOpt()

    - #### @RuleVersion(0) public final BreakStatementContext breakStatement()

    - #### @RuleVersion(0) public final BuiltInTypeContext builtInType()

    - #### @RuleVersion(0) public final ExpressionContext castOperandExpression()

    - #### @RuleVersion(0) public final CastParExpressionContext castParExpression()

    - #### @RuleVersion(0) public final CatchClauseContext catchClause()

    - #### @RuleVersion(0) public final CatchTypeContext catchType()

    - #### @RuleVersion(0) public final ClassBodyContext classBody(int t)

    - #### @RuleVersion(0) public final ClassBodyDeclarationContext classBodyDeclaration(int t)

    - #### @RuleVersion(0) public final ClassDeclarationContext classDeclaration()

    - #### @RuleVersion(0) public final ClassNameContext className()

    - #### @RuleVersion(0) public final ClassOrInterfaceModifierContext classOrInterfaceModifier()

    - #### @RuleVersion(0) public final ClassOrInterfaceModifiersContext classOrInterfaceModifiers()

    - #### @RuleVersion(0) public final ClassOrInterfaceModifiersOptContext classOrInterfaceModifiersOpt()

    - #### @RuleVersion(0) public final ClassOrInterfaceTypeContext classOrInterfaceType()

    - #### @RuleVersion(0) public final ClassicalForControlContext classicalForControl()

    - #### @RuleVersion(0) public final ClosureContext closure()

    - #### @RuleVersion(0) public final ClosureOrLambdaExpressionContext closureOrLambdaExpression()

    - #### @RuleVersion(0) public final CommandArgumentContext commandArgument()

    - #### @RuleVersion(0) public final CommandExpressionContext commandExpression()

    - #### @RuleVersion(0) public final PrimaryContext commandPrimary()

    - #### @RuleVersion(0) public final CompilationUnitContext compilationUnit()

    - #### @RuleVersion(0) public final ConditionalStatementContext conditionalStatement()

    - #### @RuleVersion(0) public final ContinueStatementContext continueStatement()

    - #### @NotNull protected FailedPredicateException createFailedPredicateException(@Nullable String predicate, @Nullable String message)

    - #### @RuleVersion(0) public final CreatedNameContext createdName()

    - #### @RuleVersion(0) public final CreatorContext creator(int t)

    - #### @RuleVersion(0) public final DimContext dim()

    - #### @RuleVersion(0) public final DynamicMemberNameContext dynamicMemberName()

    - #### @RuleVersion(0) public final ElementValueContext elementValue()

    - #### @RuleVersion(0) public final ElementValueArrayInitializerContext elementValueArrayInitializer()

    - #### @RuleVersion(0) public final ElementValuePairContext elementValuePair()

    - #### @RuleVersion(0) public final ElementValuePairNameContext elementValuePairName()

    - #### @RuleVersion(0) public final ElementValuePairsContext elementValuePairs()

    - #### @RuleVersion(0) public final ElementValuesContext elementValues()

    - #### @RuleVersion(0) public final EmptyDimsContext emptyDims()

    - #### @RuleVersion(0) public final EmptyDimsOptContext emptyDimsOpt()

    - #### @RuleVersion(0) public final EnhancedArgumentListInParContext enhancedArgumentList()

    - #### @RuleVersion(0) public final EnhancedArgumentListElementContext enhancedArgumentListElement()

    - #### @RuleVersion(0) public final EnhancedArgumentListInParContext enhancedArgumentListInPar()

    - #### @RuleVersion(0) public final EnhancedForControlContext enhancedForControl()

    - #### @RuleVersion(0) public final EnhancedStatementExpressionContext enhancedStatementExpression()

    - #### @RuleVersion(0) public final EnumConstantContext enumConstant()

    - #### @RuleVersion(0) public final EnumConstantsContext enumConstants()

    - #### @RuleVersion(0) public final ExpressionContext expression()

    - #### @RuleVersion(0) public final ExpressionInParContext expressionInPar()

    - #### @RuleVersion(0) public final ExpressionListContext expressionList(boolean canSpread)

    - #### @RuleVersion(0) public final ExpressionListElementContext expressionListElement(boolean canSpread)

    - #### @RuleVersion(0) public final FieldDeclarationContext fieldDeclaration()

    - #### @RuleVersion(0) public final FinallyBlockContext finallyBlock()

    - #### @RuleVersion(0) public final EnhancedArgumentListElementContext firstArgumentListElement()

    - #### @RuleVersion(0) public final EnhancedArgumentListElementContext firstEnhancedArgumentListElement()

    - #### @RuleVersion(0) public final ForControlContext forControl()

    - #### @RuleVersion(0) public final ForInitContext forInit()

    - #### @RuleVersion(0) public final ForUpdateContext forUpdate()

    - #### @RuleVersion(0) public final FormalParameterContext formalParameter()

    - #### @RuleVersion(0) public final FormalParameterListContext formalParameterList()

    - #### @RuleVersion(0) public final FormalParametersContext formalParameters()

    - #### @RuleVersion(0) public final ClassOrInterfaceTypeContext generalClassOrInterfaceType()

    - #### @Override public int getErrorColumn()

    - #### @Override public int getErrorLine()

    - #### @Override public String getGrammarFileName()

    - #### @Override public String[] getRuleNames()

    - #### @Override public String getSerializedATN()

    - #### @Override public int getSyntaxErrorSource()

    - #### @Override @Deprecated public String[] getTokenNames()

    - #### @Override @NotNull public Vocabulary getVocabulary()

    - #### @RuleVersion(0) public final GstringContext gstring()

    - #### @RuleVersion(0) public final GstringPathContext gstringPath()

    - #### @RuleVersion(0) public final GstringValueContext gstringValue()

    - #### @RuleVersion(0) public final IdentifierContext identifier()

    - #### @RuleVersion(0) public final IfElseStatementContext ifElseStatement()

    - #### @RuleVersion(0) public final ImportDeclarationContext importDeclaration()

    - #### @RuleVersion(0) public final IndexPropertyArgsContext indexPropertyArgs()

    - #### @RuleVersion(0) public final KeywordsContext keywords()

    - #### @RuleVersion(0) public final LambdaBodyContext lambdaBody()

    - #### @RuleVersion(0) public final StandardLambdaExpressionContext lambdaExpression()

    - #### @RuleVersion(0) public final StandardLambdaParametersContext lambdaParameters()

    - #### @RuleVersion(0) public final ListContext list()

    - #### @RuleVersion(0) public final LiteralContext literal()

    - #### @RuleVersion(0) public final LocalVariableDeclarationContext localVariableDeclaration()

    - #### @RuleVersion(0) public final LoopStatementContext loopStatement()

    - #### @RuleVersion(0) public final MapContext map()

    - #### @RuleVersion(0) public final MapEntryContext mapEntry()

    - #### @RuleVersion(0) public final MapEntryLabelContext mapEntryLabel()

    - #### @RuleVersion(0) public final MapEntryListContext mapEntryList()

    - #### @RuleVersion(0) public final MemberDeclarationContext memberDeclaration(int t)

    - #### @RuleVersion(0) public final MethodBodyContext methodBody()

    - #### @RuleVersion(0) public final MethodDeclarationContext methodDeclaration(int t, int ct)

    - #### @RuleVersion(0) public final MethodNameContext methodName()

    - #### @RuleVersion(0) public final ModifierContext modifier()

    - #### @RuleVersion(0) public final ModifiersContext modifiers()

    - #### @RuleVersion(0) public final ModifiersOptContext modifiersOpt()

    - #### @RuleVersion(0) public final NamePartContext namePart()

    - #### @RuleVersion(0) public final MapEntryContext namedArg()

    - #### @RuleVersion(0) public final MapEntryLabelContext namedArgLabel()

    - #### @RuleVersion(0) public final PrimaryContext namedArgPrimary()

    - #### @RuleVersion(0) public final MapEntryContext namedPropertyArg()

    - #### @RuleVersion(0) public final MapEntryLabelContext namedPropertyArgLabel()

    - #### @RuleVersion(0) public final MapEntryListContext namedPropertyArgList()

    - #### @RuleVersion(0) public final PrimaryContext namedPropertyArgPrimary()

    - #### @RuleVersion(0) public final NamedPropertyArgsContext namedPropertyArgs()

    - #### @RuleVersion(0) public final NlsContext nls()

    - #### @RuleVersion(0) public final NonWildcardTypeArgumentsContext nonWildcardTypeArguments()

    - #### @RuleVersion(0) public final PackageDeclarationContext packageDeclaration()

    - #### @RuleVersion(0) public final ParExpressionContext parExpression()

    - #### @RuleVersion(0) public final PathElementContext pathElement()

    - #### @RuleVersion(0) public final PathExpressionContext pathExpression()

    - #### @RuleVersion(0) public final PostfixExpressionContext postfixExpression()

    - #### @RuleVersion(0) public final PrimaryContext primary()

    - #### @RuleVersion(0) public final PrimitiveTypeContext primitiveType()

    - #### @RuleVersion(0) public final QualifiedClassNameContext qualifiedClassName()

    - #### @RuleVersion(0) public final QualifiedClassNameListContext qualifiedClassNameList()

    - #### @RuleVersion(0) public final QualifiedNameContext qualifiedName()

    - #### @RuleVersion(0) public final QualifiedNameElementContext qualifiedNameElement()

    - #### @RuleVersion(0) public final QualifiedNameElementsContext qualifiedNameElements()

    - #### @RuleVersion(0) public final QualifiedStandardClassNameContext qualifiedStandardClassName()

    - #### @RuleVersion(0) public final ResourceContext resource()

    - #### @RuleVersion(0) public final ResourceListContext resourceList()

    - #### @RuleVersion(0) public final ResourcesContext resources()

    - #### @RuleVersion(0) public final ReturnTypeContext returnType(int ct)

    - #### @RuleVersion(0) public final RparenContext rparen()

    - #### @RuleVersion(0) public final ScriptStatementContext scriptStatement()

    - #### @RuleVersion(0) public final ScriptStatementsContext scriptStatements()

    - #### public boolean sempred(RuleContext _localctx, int ruleIndex, int predIndex)

    - #### @RuleVersion(0) public final SepContext sep()

    - #### @RuleVersion(0) public final ClassOrInterfaceTypeContext standardClassOrInterfaceType()

    - #### @RuleVersion(0) public final StandardLambdaExpressionContext standardLambdaExpression()

    - #### @RuleVersion(0) public final StandardLambdaParametersContext standardLambdaParameters()

    - #### @RuleVersion(0) public final TypeContext standardType()

    - #### @RuleVersion(0) public final StatementContext statement()

    - #### @RuleVersion(0) public final StatementExpressionContext statementExpression()

    - #### @RuleVersion(0) public final StringLiteralContext stringLiteral()

    - #### @RuleVersion(0) public final SwitchBlockStatementGroupContext switchBlockStatementGroup()

    - #### @RuleVersion(0) public final SwitchLabelContext switchLabel()

    - #### @RuleVersion(0) public final SwitchStatementContext switchStatement()

    - #### @RuleVersion(0) public final ThisFormalParameterContext thisFormalParameter()

    - #### @RuleVersion(0) public final TryCatchStatementContext tryCatchStatement()

    - #### @RuleVersion(0) public final TypeContext type()

    - #### @RuleVersion(0) public final TypeArgumentContext typeArgument()

    - #### @RuleVersion(0) public final TypeArgumentsContext typeArguments()

    - #### @RuleVersion(0) public final TypeArgumentsOrDiamondContext typeArgumentsOrDiamond()

    - #### @RuleVersion(0) public final TypeBoundContext typeBound()

    - #### @RuleVersion(0) public final TypeDeclarationContext typeDeclaration()

    - #### @RuleVersion(0) public final TypeListContext typeList()

    - #### @RuleVersion(0) public final TypeNamePairContext typeNamePair()

    - #### @RuleVersion(0) public final TypeNamePairsContext typeNamePairs()

    - #### @RuleVersion(0) public final TypeParameterContext typeParameter()

    - #### @RuleVersion(0) public final TypeParametersContext typeParameters()

    - #### @RuleVersion(0) public final VariableDeclarationContext variableDeclaration(int t)

    - #### @RuleVersion(0) public final VariableDeclaratorContext variableDeclarator()

    - #### @RuleVersion(0) public final VariableDeclaratorIdContext variableDeclaratorId()

    - #### @RuleVersion(0) public final VariableDeclaratorsContext variableDeclarators()

    - #### @RuleVersion(0) public final VariableInitializerContext variableInitializer()

    - #### @RuleVersion(0) public final VariableInitializersContext variableInitializers()

    - #### @RuleVersion(0) public final VariableModifierContext variableModifier()

    - #### @RuleVersion(0) public final VariableModifiersContext variableModifiers()

    - #### @RuleVersion(0) public final VariableModifiersOptContext variableModifiersOpt()

    - #### @RuleVersion(0) public final VariableNamesContext variableNames()