Interface SynthesizedProcessor

All Known Implementing Classes:
CacheableProcessor
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SynthesizedProcessor
合成注解属性选择器。用于在Synthetic中从指定类型的合成注解里获取到对应的属性值
Since:
Java 17+
Author:
Kimi Liu
  • Method Summary

    Modifier and Type
    Method
    Description
    <R> R
    getAttributeValue(String attributeName, Class<R> attributeType, Collection<? extends Synthesized> synthesizedAnnotations)
    从一批被合成注解中,获取指定名称与类型的属性值
  • Method Details

    • getAttributeValue

      <R> R getAttributeValue(String attributeName, Class<R> attributeType, Collection<? extends Synthesized> synthesizedAnnotations)
      从一批被合成注解中,获取指定名称与类型的属性值
      Type Parameters:
      R - 属性类型
      Parameters:
      attributeName - 属性名称
      attributeType - 属性类型
      synthesizedAnnotations - 被合成的注解
      Returns:
      属性值