Class LambdaHint
java.lang.Object
org.springframework.aot.hint.LambdaHint
- All Implemented Interfaces:
ConditionalHint
A hint that describes the need of reflection for a Lambda.
- Since:
- 7.0.6
- Author:
- Stephane Nicoll
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final recordDescribe a method. -
Method Summary
Modifier and TypeMethodDescriptionReturn the type declaring the lambda.Return the method in which the lambda is defined, if any.Return the interfaces that are implemented by the lambda.Return the type that should be reachable for this hint to apply, ornullif this hint should always been applied.static LambdaHint.BuilderInitialize a builder with the class declaring the lambda.static LambdaHint.Builderof(TypeReference declaringClass) Initialize a builder with the class declaring the lambda.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ConditionalHint
conditionMatches
-
Method Details
-
of
Initialize a builder with the class declaring the lambda.- Parameters:
declaringClass- the type declaring the lambda- Returns:
- a builder for the hint
-
of
Initialize a builder with the class declaring the lambda.- Parameters:
declaringClass- the type declaring the lambda- Returns:
- a builder for the hint
-
getDeclaringClass
Return the type declaring the lambda.- Returns:
- the declaring class
-
getReachableType
Description copied from interface:ConditionalHintReturn the type that should be reachable for this hint to apply, ornullif this hint should always been applied.- Specified by:
getReachableTypein interfaceConditionalHint- Returns:
- the reachable type, if any
-
getDeclaringMethod
Return the method in which the lambda is defined, if any.- Returns:
- the declaring method
-
getInterfaces
Return the interfaces that are implemented by the lambda.- Returns:
- the interfaces
-