Class ProtectedAccess.Options.Builder

java.lang.Object
org.springframework.aot.generator.ProtectedAccess.Options.Builder
Enclosing class:
ProtectedAccess.Options

public static final class ProtectedAccess.Options.Builder extends Object
  • Method Details

    • assignReturnType

      public ProtectedAccess.Options.Builder assignReturnType(boolean assignReturnType)
      Specify if the return type is assigned so that its type can be analyzed if necessary.
      Parameters:
      assignReturnType - whether the return type is assigned
      Returns:
      this, to facilitate method chaining
    • assignReturnType

      public ProtectedAccess.Options.Builder assignReturnType(Function<Member,Boolean> assignReturnType)
      Specify a function that determines whether the return type is assigned so that its type can be analyzed.
      Parameters:
      assignReturnType - whether the return type is assigned
      Returns:
      this, to facilitate method chaining
    • useReflection

      public ProtectedAccess.Options.Builder useReflection(Function<Member,Boolean> useReflection)
      Specify a function that determines whether reflection can be used for a given Member.
      Parameters:
      useReflection - whether reflection can be used
      Returns:
      this, to facilitate method chaining
    • build

      public ProtectedAccess.Options build()
      Build an ProtectedAccess.Options instance based on the state of this builder.
      Returns:
      a new options instance