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