类 ValueCodeGeneratorDelegates.MapDelegate
java.lang.Object
cn.taketoday.aot.generate.ValueCodeGeneratorDelegates.MapDelegate
- 所有已实现的接口:
ValueCodeGenerator.Delegate
public static class ValueCodeGeneratorDelegates.MapDelegate
extends Object
implements ValueCodeGenerator.Delegate
ValueCodeGenerator.Delegate for Map types.-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明cn.taketoday.javapoet.CodeBlockgenerateCode(ValueCodeGenerator valueCodeGenerator, Object value) Generate the code for the specified non-nullvalue.protected cn.taketoday.javapoet.CodeBlockgenerateMapCode(ValueCodeGenerator valueCodeGenerator, Map<?, ?> map) Generate the code for a non-emptyMap.private <K,V> Map<K, V> orderForCodeConsistency(Map<K, V> map)
-
字段详细资料
-
EMPTY_RESULT
private static final cn.taketoday.javapoet.CodeBlock EMPTY_RESULT
-
-
构造器详细资料
-
MapDelegate
public MapDelegate()
-
-
方法详细资料
-
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.
-
generateMapCode
@Nullable protected cn.taketoday.javapoet.CodeBlock generateMapCode(ValueCodeGenerator valueCodeGenerator, Map<?, ?> map) Generate the code for a non-emptyMap.- 参数:
valueCodeGenerator- the code generator to use for embedded valuesmap- the value to generate- 返回:
- the code that represents the specified map or
nullif the specified map is not supported.
-
orderForCodeConsistency
-