Package org.codehaus.groovy.ast.expr
package org.codehaus.groovy.ast.expr
AST nodes for Groovy expressions
-
ClassDescriptionRepresents an annotation "constant" that may appear in annotation attributes (mainly used as a marker).Represents one or more arguments being passed into a methodRepresents an array literal or array construction expression.Represents an attribute access (accessing the field of a class) such as the expression "foo.@bar".Represents a binary operation between two expressions, such as addition, subtraction, comparison, or array/map access.Represents a boolean expressionRepresents a type cast expression in Groovy.Represents access to a Java or Groovy class object as an expression.Represents a closure expression such as
{ statement }or{ i -> statement }or{ i, x, String y -> statement }.This class represents a list of expressions used to create closures.Represents a constant value expression such as literals (null, true, false, numbers, strings), class literals, and other compile-time constant values.Represents a constructor call expression.Represents one or more local variables.Represents a short ternary expression x ?: y, which is equal toPlaceholder for an empty expression.Base class for all expression nodes in the Groovy AST.Functional interface for transformingExpressionnodes during AST traversal and manipulation.Represents a field access such as the expression "this.foo".Represents a GString (interpolated string) expression containing embedded values.Represents a lambda expression such as one of these:Represents a list expression [1, 2, 3] which creates a mutable ListRepresents an entry inside a map expression such as1 : 2or'foo' : 'bar'.Represents a map expression [1 : 2, "a" : "b", x : y] which creates a mutable MapInterface defining common methods for method calls.Represents a method call on an object or class, including receiver object, method name/expression, and arguments.Represents a method pointer on an object such asfoo.&barwhich means find the method pointer for thebarmethod on thefooinstance.Represents a method reference or a constructor reference, e.g.Represents one or more arguments being passed into a method by nameRepresents a postfix unary expression likei++orvalue--.Represents a prefix unary expression like++ior--value.Represents a property access such as the expression "foo.bar".Represents a range expression for creating range objects with bounded endpoints.Represents a spread expression *x in the list expression [1, *x, 2].Represents a spread map expression *:m in the map expression [1, *:m, 2, "c":100] or in the method invoke expression func(1, *:m, 2, "c":100).A static method call on a classRepresents a ternary expression (booleanExpression) ? expression : expressionRepresents a tuple or grouped list of expressions, typically used for method arguments, multiple assignment targets, or other contexts requiring multiple values.Represents a local variable reference, the simplest form of expression (e.g., "foo").