Class LambdaExpression

All Implemented Interfaces:
GroovydocHolder<AnnotatedNode>, NodeMetaDataHandler

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 Details

  • Method Details

    • visit

      public void visit​(GroovyCodeVisitor visitor)
      Overrides:
      visit in class ClosureExpression
    • getText

      public java.lang.String getText()
      Overrides:
      getText in class ClosureExpression
    • isSerializable

      public boolean isSerializable()
    • setSerializable

      public void setSerializable​(boolean serializable)