Package org.springframework.aot.hint
Class ExecutableHint
java.lang.Object
org.springframework.aot.hint.MemberHint
org.springframework.aot.hint.ExecutableHint
A hint that describes the need for reflection on a
Method
or
Constructor
.- Since:
- 6.0
- Author:
- Stephane Nicoll
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetModes()
Return the modes that apply to this hint.Return the parameter types of the executable.static ExecutableHint.Builder
ofConstructor
(List<TypeReference> parameterTypes) Initialize a builder with the parameter types of a constructor.static ExecutableHint.Builder
ofMethod
(String name, List<TypeReference> parameterTypes) Initialize a builder with the name and parameters types of a method.Methods inherited from class org.springframework.aot.hint.MemberHint
getName
-
Method Details
-
ofConstructor
Initialize a builder with the parameter types of a constructor.- Parameters:
parameterTypes
- the parameter types of the constructor- Returns:
- a builder
-
ofMethod
Initialize a builder with the name and parameters types of a method.- Parameters:
name
- the name of the methodparameterTypes
- the parameter types of the method- Returns:
- a builder
-
getParameterTypes
Return the parameter types of the executable.- Returns:
- the parameter types
- See Also:
-
getModes
Return the modes that apply to this hint.- Returns:
- the modes
-