Interface LambdaCreator

All Superinterfaces:
BodyCreator, CapturingCreator

public sealed interface LambdaCreator extends BodyCreator, CapturingCreator
A creator for a lambda instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Build the body of the lambda.
    parameter(String name, int position)
    Access a parameter of the functional interface method declaration.
    Returns the descriptor of the lambda functional interface.

    Methods inherited from interface io.quarkus.gizmo2.creator.CapturingCreator

    capture, capture
  • Method Details

    • type

      ClassDesc type()
      Returns the descriptor of the lambda functional interface.
      Returns:
      the descriptor of the lambda functional interface
    • parameter

      ParamVar parameter(String name, int position)
      Access a parameter of the functional interface method declaration.
      Parameters:
      name - the name to assign to the parameter (must not be null)
      position - the parameter position, starting from 0
      Returns:
      the parameter's variable (not null)
    • body

      void body(Consumer<BlockCreator> builder)
      Build the body of the lambda.
      Specified by:
      body in interface BodyCreator
      Parameters:
      builder - the builder for the lambda body (must not be null)