Interface FunctionalExpression

    • Method Detail

      • getTypeMirror

        @NonNull JTypeMirror getTypeMirror()
        Returns the type of the functional interface. E.g. in stringStream.map(s -> s.isEmpty()), this is java.util.function.Function<java.lang.String, java.lang.Boolean>.
        Specified by:
        getTypeMirror in interface TypeNode
        Returns:
        The type mirror. Never returns null; if the type is unresolved, returns TypeSystem.UNKNOWN.
        See Also:
        getFunctionalMethod()
      • getFunctionalMethod

        JMethodSig getFunctionalMethod()
        Returns the method that is overridden in the functional interface. E.g. in stringStream.map(s -> s.isEmpty()), this is java.util.function.Function#apply(java.lang.String) -> java.lang.Boolean
        See Also:
        getTypeMirror()