Interface CtLambda<T>

    • Method Detail

      • getExpression

        CtExpression<T> getExpression()
        Gets the expression in the body. Null if the body is a list of statements.
      • getOverriddenMethod

        <R> CtMethod<R> getOverriddenMethod()
        Returns:
        the method that this lambda expression implements. Must be defined as a non-default method in an interface, e.g. Consumer.accept().
      • setExpression

        <C extends CtLambda<T>> C setExpression​(CtExpression<T> expression)
        Sets the expression in the body of the lambda. Nothing will change if the lambda already has a value in the body attribute.