类的使用
cn.taketoday.aot.generate.ValueCodeGenerator
使用ValueCodeGenerator的程序包
程序包
说明
Support classes for components that contribute generated code equivalent to a
runtime behavior.
-
cn.taketoday.aot.generate中ValueCodeGenerator的使用
修饰符和类型方法说明ValueCodeGenerator.add(List<ValueCodeGenerator.Delegate> additionalDelegates) ValueCodeGenerator.scoped(GeneratedMethods generatedMethods) Return aValueCodeGeneratorthat is scoped for the specifiedGeneratedMethods.static ValueCodeGeneratorValueCodeGenerator.with(ValueCodeGenerator.Delegate... delegates) Create an instance with the specifiedValueCodeGenerator.Delegateimplementations.static ValueCodeGeneratorValueCodeGenerator.with(List<ValueCodeGenerator.Delegate> delegates) Create an instance with the specifiedValueCodeGenerator.Delegateimplementations.static ValueCodeGeneratorValueCodeGenerator.withDefaults()Return an instance that provides support for common value types.修饰符和类型方法说明cn.taketoday.javapoet.CodeBlockValueCodeGenerator.Delegate.generateCode(ValueCodeGenerator valueCodeGenerator, Object value) Generate the code for the specified non-nullvalue.cn.taketoday.javapoet.CodeBlockValueCodeGeneratorDelegates.ArrayDelegate.generateCode(ValueCodeGenerator codeGenerator, Object value) cn.taketoday.javapoet.CodeBlockValueCodeGeneratorDelegates.CharsetDelegate.generateCode(ValueCodeGenerator codeGenerator, Object value) cn.taketoday.javapoet.CodeBlockValueCodeGeneratorDelegates.ClassDelegate.generateCode(ValueCodeGenerator codeGenerator, Object value) cn.taketoday.javapoet.CodeBlockValueCodeGeneratorDelegates.CollectionDelegate.generateCode(ValueCodeGenerator valueCodeGenerator, Object value) cn.taketoday.javapoet.CodeBlockValueCodeGeneratorDelegates.EnumDelegate.generateCode(ValueCodeGenerator codeGenerator, Object value) cn.taketoday.javapoet.CodeBlockValueCodeGeneratorDelegates.MapDelegate.generateCode(ValueCodeGenerator valueCodeGenerator, Object value) cn.taketoday.javapoet.CodeBlockValueCodeGeneratorDelegates.PrimitiveDelegate.generateCode(ValueCodeGenerator codeGenerator, Object value) cn.taketoday.javapoet.CodeBlockValueCodeGeneratorDelegates.ResolvableTypeDelegate.generateCode(ValueCodeGenerator codeGenerator, Object value) cn.taketoday.javapoet.CodeBlockValueCodeGeneratorDelegates.StringDelegate.generateCode(ValueCodeGenerator codeGenerator, Object value) protected cn.taketoday.javapoet.CodeBlockValueCodeGeneratorDelegates.CollectionDelegate.generateCollectionCode(ValueCodeGenerator valueCodeGenerator, T collection) protected cn.taketoday.javapoet.CodeBlockValueCodeGeneratorDelegates.SetDelegate.generateCollectionCode(ValueCodeGenerator valueCodeGenerator, Set<?> collection) protected final cn.taketoday.javapoet.CodeBlockValueCodeGeneratorDelegates.CollectionDelegate.generateCollectionOf(ValueCodeGenerator valueCodeGenerator, Collection<?> collection, Class<?> collectionType) protected cn.taketoday.javapoet.CodeBlockValueCodeGeneratorDelegates.MapDelegate.generateMapCode(ValueCodeGenerator valueCodeGenerator, Map<?, ?> map) Generate the code for a non-emptyMap.