类 ValueCodeGeneratorDelegates.MapDelegate

java.lang.Object
cn.taketoday.aot.generate.ValueCodeGeneratorDelegates.MapDelegate
所有已实现的接口:
ValueCodeGenerator.Delegate
封闭类:
ValueCodeGeneratorDelegates

public static class ValueCodeGeneratorDelegates.MapDelegate extends Object implements ValueCodeGenerator.Delegate
  • 字段详细资料

    • 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.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.
    • generateMapCode

      @Nullable protected cn.taketoday.javapoet.CodeBlock generateMapCode(ValueCodeGenerator valueCodeGenerator, Map<?,?> map)
      Generate the code for a non-empty Map.
      参数:
      valueCodeGenerator - the code generator to use for embedded values
      map - the value to generate
      返回:
      the code that represents the specified map or null if the specified map is not supported.
    • orderForCodeConsistency

      private <K, V> Map<K,V> orderForCodeConsistency(Map<K,V> map)