Interface BodyCreator

All Known Subinterfaces:
CaseCreator, ConstructorCreator, InstanceBodyCreator, InstanceExecutableCreator, InstanceMethodCreator, LambdaCreator, StaticExecutableCreator, StaticMethodCreator, TryCreator

public sealed interface BodyCreator permits CaseCreator, InstanceBodyCreator, LambdaCreator, StaticExecutableCreator, TryCreator
A creator that has a body.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Build the body of this executable code.
  • Method Details

    • body

      void body(Consumer<BlockCreator> builder)
      Build the body of this executable code.
      Parameters:
      builder - the builder (must not be null)