Interface LambdaFunction

All Superinterfaces:
Maker, MethodMaker

public sealed interface LambdaFunction extends MethodMaker
Allows a lambda function to be defined. This interface extends MethodMaker for adding code to the lambda function implementation. The first parameters to the method are the captured values, and the rest are the actual function parameters.
See Also:
  • Method Details

    • functionType

      Type functionType()
      Returns the function interface type.
    • addMarkerInterface

      void addMarkerInterface(Object markerType)
      Adds a marker interface that the generated function should implement. The marker interface shouldn't have any abstract methods.
      See Also:
    • addBridgeMethod

      void addBridgeMethod(Object retType, Object... paramTypes)
      Adds a descriptor for a bridge method that the generated function class should define. A bridge method has a more specific signature than the primary function method.
      Parameters:
      retType - a class or name; can be null if the method returns void
      paramTypes - classes or names
      See Also: