Package org.springframework.aot.hint
Class TypeHint
java.lang.Object
org.springframework.aot.hint.TypeHint
A hint that describes the need for reflection on a type.
- Since:
- 6.0
- Author:
- Stephane Nicoll
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturn the constructors that require reflection.fields()
Return the fields that require reflection.Return the member categories that apply.Return the type that should be reachable for this hint to apply, ornull
if this hint should always been applied.getType()
Return the type that this hint handles.methods()
Return the methods that require reflection.static TypeHint.Builder
of
(TypeReference type) Initialize a builder for the type defined by the specifiedTypeReference
.toString()
-
Method Details
-
of
Initialize a builder for the type defined by the specifiedTypeReference
.- Parameters:
type
- the type to use- Returns:
- a builder
-
getType
Return the type that this hint handles.- Returns:
- the type
-
getReachableType
Return the type that should be reachable for this hint to apply, ornull
if this hint should always been applied.- Returns:
- the reachable type, if any
-
fields
Return the fields that require reflection.- Returns:
- a stream of
FieldHint
-
constructors
Return the constructors that require reflection.- Returns:
- a stream of
ExecutableHint
-
methods
Return the methods that require reflection.- Returns:
- a stream of
ExecutableHint
-
getMemberCategories
Return the member categories that apply.- Returns:
- the member categories to enable
-
toString
-