类 ValueCodeGeneratorDelegates.CollectionDelegate<T extends Collection<?>>
java.lang.Object
cn.taketoday.aot.generate.ValueCodeGeneratorDelegates.CollectionDelegate<T>
- 类型参数:
T- type the collection type
- 所有已实现的接口:
ValueCodeGenerator.Delegate
public abstract static class ValueCodeGeneratorDelegates.CollectionDelegate<T extends Collection<?>>
extends Object
implements ValueCodeGenerator.Delegate
Abstract
ValueCodeGenerator.Delegate for Collection types.-
字段概要
字段 -
构造器概要
构造器限定符构造器说明protectedCollectionDelegate(Class<?> collectionType, cn.taketoday.javapoet.CodeBlock emptyResult) -
方法概要
修饰符和类型方法说明cn.taketoday.javapoet.CodeBlockgenerateCode(ValueCodeGenerator valueCodeGenerator, Object value) Generate the code for the specified non-nullvalue.protected cn.taketoday.javapoet.CodeBlockgenerateCollectionCode(ValueCodeGenerator valueCodeGenerator, T collection) protected final cn.taketoday.javapoet.CodeBlockgenerateCollectionOf(ValueCodeGenerator valueCodeGenerator, Collection<?> collection, Class<?> collectionType)
-
字段详细资料
-
collectionType
-
emptyResult
private final cn.taketoday.javapoet.CodeBlock emptyResult
-
-
构造器详细资料
-
CollectionDelegate
-
-
方法详细资料
-
generateCode
public cn.taketoday.javapoet.CodeBlock generateCode(ValueCodeGenerator valueCodeGenerator, Object value) 从接口复制的说明:ValueCodeGenerator.DelegateGenerate the code for the specified non-nullvalue. If this instance does not support the value, it should returnnullto indicate so.- 指定者:
generateCode在接口中ValueCodeGenerator.Delegate- 参数:
valueCodeGenerator- the code generator to use for embedded valuesvalue- the value to generate- 返回:
- the code that represents the specified value or
nullif 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)
-