Package org.codehaus.groovy.ast
package org.codehaus.groovy.ast
Groovy AST nodes for the syntax of the language
-
ClassDescriptionBase class for any AST node which is capable of being annotatedRepresents an annotation which can be attached to interfaces, classes, methods, fields, parameters, and other places.Base class for any AST node.Helper class for converting AST into text.Transforms expressions in a whole class.Abstract base class for visitors that process class nodes and their members, extending the default visitor traversal with class-specific and annotation processing.Helper for
ClassNodecreation and type management.Represents a class in the AST.Abstract base class for implementing theGroovyCodeVisitorinterface, providing default implementations for all visit methods that perform depth-first traversal of the AST.Represents a complete compilation step involving one or moreModuleNodeinstances.Represents a constructor declarationRepresents the anonymous inner class for an enum constant.Represents a field (member variable)Represents generic type information for parameterized types in Groovy/Java, including type variables, wildcard types, and type bounds.Represents the name of aGenericsTypefor use as a map key or in generic type comparisons.A special visitor for working with the structure of a class.Defines the visitor interface for traversing and processing Groovy AST nodes using the visitor pattern.Adapter class providing default no-op implementations of all methods in theGroovyCodeVisitorinterface.Represents an import statement in Groovy source code, supporting single-type imports, wildcard imports, and static imports.Represents a nested (inner) class definition within an outer class.Represents an inner class defined as helper for an interface.Abstract base class for AST visitors that trap and intercept specific method invocations.Represents a method declaration.Deprecated.static mixins have been deprecated in favour of traits (trait keyword).Represents a mixin which can be applied to any ClassNode to implement mixinsRepresents a modifier keyword or annotation in Groovy source code.Represents a module, which consists typically of a class declaration but could include some imports, some statements and multiple classes intermixed with statements like scripts in Python or RubyAST node metadata keys used by the multi-assignment destructuring pipeline introduced in GEP-20.An interface to mark a node being able to handle metadata.Represents a package in the AST.Represents a parameter in a method or constructor declaration.Represents a property (member variable, a getter and setter)Represents a component (field) of a record class definition introduced in Java 16.Code visitor that combines depth-first traversal with expression transformation, delegating both to an underlyingClassCodeExpressionTransformer.Interface marking an AST node as representing a variable in Groovy/Java scope.Manages variable scope tracking for a given code block, tracking declared and referenced variables to determine variable sharing patterns across closure and method boundaries.