Class SyntheticMeta.Meta

java.lang.Object
org.aoju.bus.core.scanner.SyntheticMeta.Meta
All Implemented Interfaces:
Annotation, Synthesized
Enclosing class:
SyntheticMeta

public static class SyntheticMeta.Meta extends Object implements Annotation, Synthesized
元注解包装类
  • Constructor Details

    • Meta

      public Meta(Annotation root, Annotation annotation, int verticalDistance, int horizontalDistance)
  • Method Details

    • annotationType

      public Class<? extends Annotation> annotationType()
      获取注解类型
      Specified by:
      annotationType in interface Annotation
      Returns:
      注解类型
    • getRoot

      public Annotation getRoot()
      获取根注解
      Specified by:
      getRoot in interface Synthesized
      Returns:
      根注解
    • getAnnotation

      public Annotation getAnnotation()
      获取元注解
      Specified by:
      getAnnotation in interface Synthesized
      Returns:
      元注解
    • getVerticalDistance

      public int getVerticalDistance()
      获取该合成注解与根注解之间相隔的层级数
      Specified by:
      getVerticalDistance in interface Synthesized
      Returns:
      该合成注解与根注解之间相隔的层级数
    • getHorizontalDistance

      public int getHorizontalDistance()
      获取该合成注解与根注解之间相隔的注解树
      Specified by:
      getHorizontalDistance in interface Synthesized
      Returns:
      该合成注解与根注解之间相隔的注解树
    • hasAttribute

      public boolean hasAttribute(String attributeName)
      元注解是否存在该属性
      Parameters:
      attributeName - 属性名
      Returns:
      是否存在该属性
    • hasAttribute

      public boolean hasAttribute(String attributeName, Class<?> returnType)
      元注解是否存在该属性,且该属性的值类型是指定类型或其子类
      Specified by:
      hasAttribute in interface Synthesized
      Parameters:
      attributeName - 属性名
      returnType - 返回值类型
      Returns:
      是否存在该属性
    • getAttribute

      public Object getAttribute(String attributeName)
      获取元注解的属性值
      Specified by:
      getAttribute in interface Synthesized
      Parameters:
      attributeName - 属性名
      Returns:
      元注解的属性值