Class ProtectedAccess.Options.Builder
java.lang.Object
org.springframework.aot.generator.ProtectedAccess.Options.Builder
- Enclosing class:
- ProtectedAccess.Options
-
Method Summary
Modifier and TypeMethodDescriptionassignReturnType
(boolean assignReturnType) Specify if the return type is assigned so that its type can be analyzed if necessary.assignReturnType
(Function<Member, Boolean> assignReturnType) Specify a function that determines whether the return type is assigned so that its type can be analyzed.build()
Build anProtectedAccess.Options
instance based on the state of this builder.useReflection
(Function<Member, Boolean> useReflection) Specify a function that determines whether reflection can be used for a givenMember
.
-
Method Details
-
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
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
Specify a function that determines whether reflection can be used for a givenMember
.- Parameters:
useReflection
- whether reflection can be used- Returns:
this
, to facilitate method chaining
-
build
Build anProtectedAccess.Options
instance based on the state of this builder.- Returns:
- a new options instance
-