Uses of Class
org.springframework.aot.generate.ValueCodeGenerator
Package
Description
Support classes for components that contribute generated code equivalent to a
runtime behavior.
-
Uses of ValueCodeGenerator in org.springframework.aot.generate
Modifier and TypeMethodDescriptionValueCodeGenerator.add
(List<ValueCodeGenerator.Delegate> additionalDelegates) ValueCodeGenerator.scoped
(GeneratedMethods generatedMethods) Return aValueCodeGenerator
that is scoped for the specifiedGeneratedMethods
.static ValueCodeGenerator
ValueCodeGenerator.with
(List<ValueCodeGenerator.Delegate> delegates) Create an instance with the specifiedValueCodeGenerator.Delegate
implementations.static ValueCodeGenerator
ValueCodeGenerator.with
(ValueCodeGenerator.Delegate... delegates) Create an instance with the specifiedValueCodeGenerator.Delegate
implementations.static ValueCodeGenerator
ValueCodeGenerator.withDefaults()
Return an instance that provides support for common value types.Modifier and TypeMethodDescription@Nullable org.springframework.javapoet.CodeBlock
ValueCodeGenerator.Delegate.generateCode
(ValueCodeGenerator valueCodeGenerator, Object value) Generate the code for the specified non-nullvalue
.@Nullable org.springframework.javapoet.CodeBlock
ValueCodeGeneratorDelegates.CollectionDelegate.generateCode
(ValueCodeGenerator valueCodeGenerator, Object value) @Nullable org.springframework.javapoet.CodeBlock
ValueCodeGeneratorDelegates.MapDelegate.generateCode
(ValueCodeGenerator valueCodeGenerator, Object value) protected org.springframework.javapoet.CodeBlock
ValueCodeGeneratorDelegates.CollectionDelegate.generateCollectionCode
(ValueCodeGenerator valueCodeGenerator, T collection) protected final org.springframework.javapoet.CodeBlock
ValueCodeGeneratorDelegates.CollectionDelegate.generateCollectionOf
(ValueCodeGenerator valueCodeGenerator, Collection<?> collection, Class<?> collectionType) protected @Nullable org.springframework.javapoet.CodeBlock
ValueCodeGeneratorDelegates.MapDelegate.generateMapCode
(ValueCodeGenerator valueCodeGenerator, Map<?, ?> map) Generate the code for a non-emptyMap
.