Interface ExprMirror.LambdaExprMirror

    • Method Detail

      • getExplicitParameterTypes

        @Nullable List<JTypeMirror> getExplicitParameterTypes()
        Returns the types of the explicit parameters. If the lambda is implicitly typed, then returns null.

        Note that a degenerate case of explicitly typed lambda expression is a lambda with zero formal parameters.

      • getParamCount

        int getParamCount()
        Return the number of parameters of the lambda, regardless of whether it's explicitly typed or not.
      • getResultExpressions

        Iterable<ExprMirror> getResultExpressions()
        Returns all the expressions that appear in return statements within the lambda. If this is an expression-bodied lambda, returns the expression.
      • isValueCompatible

        boolean isValueCompatible()
        Returns true if the body is value-compatible (JLS§15.27.2).
        A block lambda body is value-compatible if it cannot complete normally (§14.21) and every return statement in the block has the form return Expression;.
      • isVoidCompatible

        boolean isVoidCompatible()
        Returns true if the body is void-compatible (JLS§15.27.2).
        A block lambda body is void-compatible if every return statement in the block has the form return;.
      • updateTypingContext

        void updateTypingContext​(JMethodSig groundFun)