Class ValueCodeGeneratorDelegates.MapDelegate
java.lang.Object
org.springframework.aot.generate.ValueCodeGeneratorDelegates.MapDelegate
- All Implemented Interfaces:
- ValueCodeGenerator.Delegate
- Enclosing class:
- ValueCodeGeneratorDelegates
public static class ValueCodeGeneratorDelegates.MapDelegate
extends Object
implements ValueCodeGenerator.Delegate
ValueCodeGenerator.Delegate for Map types.- Since:
- 6.1.2
- Author:
- Stephane Nicoll
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription@Nullable org.springframework.javapoet.CodeBlockgenerateCode(ValueCodeGenerator valueCodeGenerator, Object value) Generate the code for the specified non-nullvalue.protected @Nullable org.springframework.javapoet.CodeBlockgenerateMapCode(ValueCodeGenerator valueCodeGenerator, Map<?, ?> map) Generate the code for a non-emptyMap.
- 
Constructor Details- 
MapDelegatepublic MapDelegate()
 
- 
- 
Method Details- 
generateCodepublic @Nullable org.springframework.javapoet.CodeBlock generateCode(ValueCodeGenerator valueCodeGenerator, Object value) Description copied from interface:ValueCodeGenerator.DelegateGenerate the code for the specified non-nullvalue. If this instance does not support the value, it should returnnullto indicate so.- Specified by:
- generateCodein interface- ValueCodeGenerator.Delegate
- Parameters:
- valueCodeGenerator- the code generator to use for embedded values
- value- the value to generate
- Returns:
- the code that represents the specified value or nullif the specified value is not supported.
 
- 
generateMapCodeprotected @Nullable org.springframework.javapoet.CodeBlock generateMapCode(ValueCodeGenerator valueCodeGenerator, Map<?, ?> map) Generate the code for a non-emptyMap.- Parameters:
- valueCodeGenerator- the code generator to use for embedded values
- map- the value to generate
- Returns:
- the code that represents the specified map or nullif the specified map is not supported.
 
 
-