[Java] Class LambdaExpression

  • org.codehaus.groovy.ast.expr.LambdaExpression
public class LambdaExpression
extends ClosureExpression

Represents a lambda expression such as one of these:

 e -> e * 2
 (x, y) -> x + y
 (x, y) -> { x + y 
 (int x, int y) -> { x + y }
 }
 

Constructor Detail

public LambdaExpression(Parameter[] parameters, Statement code)

Method Detail

@Override public String getText()

public boolean isSerializable()

public void setSerializable(boolean serializable)

public void visit(GroovyCodeVisitor visitor)

© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/ast/expr/LambdaExpression.html