Interface FunctionalExpression

All Superinterfaces:
ASTExpression, ASTMemberValue, ASTSwitchArrowRHS, GenericNode<JavaNode>, JavaNode, JjtreeNode<JavaNode>, Node, Reportable, TextAvailableNode, TypeNode
All Known Implementing Classes:
ASTLambdaExpression, ASTMethodReference

public interface FunctionalExpression extends ASTExpression
A method reference or lambda expression.
  • Method Details

    • 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

      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: