Package org.codehaus.groovy.ast.expr
package org.codehaus.groovy.ast.expr
-
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 object construction either using a fixed size or an initializer expressionRepresents an attribute access (accessing the field of a class) such as the expression "foo.@bar".Represents two expressions and an operationRepresents a boolean expressionRepresents a type cast expressionRepresents access to a Java/Groovy class in an expression, such as when invoking a static method or accessing a static typeRepresents 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 expression such as null, true, falseA constructor callRepresents one or more local variables.Represents a short ternary expression x ?: y, which is equal toThis class is a place holder for an empty expression.Represents a base class for expressions which evaluate as an objectProvides a way to transform expressionsRepresents a field access such as the expression "this.foo".Represents a String expression which contains embedded values inside it such as "hello there ${user} how are you" which is expanded lazilyRepresents a list expression [1, 2, 3] which creates a mutable ListRepresents an entry inside a map expression such as 1 : 2.Represents a map expression [1 : 2, "a" : "b", x : y] which creates a mutable MapInterface defining common methods for method calls.A method call on an object or classRepresents a method pointer on an object such as foo.&bar which means find the method pointer on foo for the method called "bar" which is equivalent to
foo.metaClass.getMethodPointer(foo, "bar")
Represents one or more arguments being passed into a method by nameRepresents a postfix expression like foo++ or bar++Represents a prefix expression like ++foo or --barRepresents a property access such as the expression "foo.bar".Represents a range expression such as for iterating.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 expression {1, 2, 3} which creates an immutable ListRepresents a local variable name, the simplest form of expression.