类 ValueCodeGeneratorDelegates.CollectionDelegate<T extends Collection<?>>

java.lang.Object
cn.taketoday.aot.generate.ValueCodeGeneratorDelegates.CollectionDelegate<T>
类型参数:
T - type the collection type
所有已实现的接口:
ValueCodeGenerator.Delegate
直接已知子类:
ValueCodeGeneratorDelegates.ListDelegate, ValueCodeGeneratorDelegates.SetDelegate
封闭类:
ValueCodeGeneratorDelegates

public abstract static class ValueCodeGeneratorDelegates.CollectionDelegate<T extends Collection<?>> extends Object implements ValueCodeGenerator.Delegate
Abstract ValueCodeGenerator.Delegate for Collection types.
  • 字段详细资料

    • collectionType

      private final Class<?> collectionType
    • emptyResult

      private final cn.taketoday.javapoet.CodeBlock emptyResult
  • 构造器详细资料

    • CollectionDelegate

      protected CollectionDelegate(Class<?> collectionType, cn.taketoday.javapoet.CodeBlock emptyResult)
  • 方法详细资料

    • generateCode

      public cn.taketoday.javapoet.CodeBlock generateCode(ValueCodeGenerator valueCodeGenerator, Object value)
      从接口复制的说明: ValueCodeGenerator.Delegate
      Generate the code for the specified non-null value. If this instance does not support the value, it should return null to indicate so.
      指定者:
      generateCode 在接口中 ValueCodeGenerator.Delegate
      参数:
      valueCodeGenerator - the code generator to use for embedded values
      value - the value to generate
      返回:
      the code that represents the specified value or null if the specified value is not supported.
    • generateCollectionCode

      protected cn.taketoday.javapoet.CodeBlock generateCollectionCode(ValueCodeGenerator valueCodeGenerator, T collection)
    • generateCollectionOf

      protected final cn.taketoday.javapoet.CodeBlock generateCollectionOf(ValueCodeGenerator valueCodeGenerator, Collection<?> collection, Class<?> collectionType)