Class DefaultCodeContribution
java.lang.Object
org.springframework.aot.generator.DefaultCodeContribution
- All Implemented Interfaces:
CodeContribution
A default
CodeContribution
implementation.- Since:
- 6.0
- Author:
- Stephane Nicoll
-
Constructor Summary
ModifierConstructorDescriptionDefaultCodeContribution
(RuntimeHints runtimeHints) Create an instance with theRuntimeHints
instance to use.protected
DefaultCodeContribution
(MultiStatement statements, RuntimeHints runtimeHints, ProtectedAccess protectedAccess) -
Method Summary
Modifier and TypeMethodDescriptionReturn the protected access to use to analyze any privileged access, if necessary.Return the hints to use to register potential optimizations for contributed code.Return the statements that can be used to append code.
-
Constructor Details
-
DefaultCodeContribution
protected DefaultCodeContribution(MultiStatement statements, RuntimeHints runtimeHints, ProtectedAccess protectedAccess) -
DefaultCodeContribution
Create an instance with theRuntimeHints
instance to use.- Parameters:
runtimeHints
- the runtime hints instance to use
-
-
Method Details
-
statements
Description copied from interface:CodeContribution
Return the statements that can be used to append code.- Specified by:
statements
in interfaceCodeContribution
- Returns:
- the statements instance to use to contribute code
-
runtimeHints
Description copied from interface:CodeContribution
Return the hints to use to register potential optimizations for contributed code.- Specified by:
runtimeHints
in interfaceCodeContribution
- Returns:
- the runtime hints
-
protectedAccess
Description copied from interface:CodeContribution
Return the protected access to use to analyze any privileged access, if necessary.- Specified by:
protectedAccess
in interfaceCodeContribution
- Returns:
- the protected access
-