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
ConstructorsModifierConstructorDescriptionDefaultCodeContribution(RuntimeHints runtimeHints) Create an instance with theRuntimeHintsinstance to use.protectedDefaultCodeContribution(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 theRuntimeHintsinstance to use.- Parameters:
runtimeHints- the runtime hints instance to use
-
-
Method Details
-
statements
Description copied from interface:CodeContributionReturn the statements that can be used to append code.- Specified by:
statementsin interfaceCodeContribution- Returns:
- the statements instance to use to contribute code
-
runtimeHints
Description copied from interface:CodeContributionReturn the hints to use to register potential optimizations for contributed code.- Specified by:
runtimeHintsin interfaceCodeContribution- Returns:
- the runtime hints
-
protectedAccess
Description copied from interface:CodeContributionReturn the protected access to use to analyze any privileged access, if necessary.- Specified by:
protectedAccessin interfaceCodeContribution- Returns:
- the protected access
-