Interface FunctionalExpression

    • Field Summary

      • Fields inherited from interface net.sourceforge.pmd.lang.ast.Node

        COORDS_COMPARATOR
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      JMethodSig getFunctionalMethod()
      Returns the method that is overridden in the functional interface.
      @NonNull JTypeMirror getTypeMirror()
      Returns the type of the functional interface.
      • Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.GenericNode

        ancestors, ancestorsOrSelf, asStream, children, descendants, descendantsOrSelf, getChild, getFirstChild, getLastChild, getNextSibling, getParent, getPreviousSibling
      • Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeNode

        getFirstToken, getLastToken, tokens
      • Methods inherited from interface net.sourceforge.pmd.lang.ast.Node

        acceptVisitor, ancestors, children, compareLocation, descendants, firstChild, getAstInfo, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getImage, getIndexInParent, getLanguageVersion, getNumChildren, getReportLocation, getTextDocument, getUserMap, getXPathAttributesIterator, getXPathNodeName, hasImageEqualTo, isFindBoundary
      • Methods inherited from interface net.sourceforge.pmd.lang.ast.TextAvailableNode

        getOriginalText, getText, getTextRegion
    • 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()