Interface ExprMirror.FunctionalExprMirror

    • Method Detail

      • setInferredType

        void setInferredType​(@Nullable JTypeMirror mirror)
        For a method ref or lambda, this is the type of the functional interface. E.g. in stringStream.map(String::isEmpty), this is java.util.function.Function<java.lang.String, java.lang.Boolean>

        May be null if we're resetting some partial data.

        Specified by:
        setInferredType in interface ExprMirror
      • setFunctionalMethod

        void setFunctionalMethod​(@Nullable JMethodSig methodType)
        This is the method that is overridden in getInferredType. E.g. in stringStream.map(String::isEmpty), this is java.util.function.Function<java.lang.String, java.lang.Boolean>.apply(java.lang.String) -> java.lang.Boolean

        May be null if we're resetting some partial data.