Package org.aoju.bus.core.scanner
Class SyntheticMeta.Meta
java.lang.Object
org.aoju.bus.core.scanner.SyntheticMeta.Meta
-
Constructor Summary
ConstructorsConstructorDescriptionMeta(Annotation root, Annotation annotation, int verticalDistance, int horizontalDistance) -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Annotation> 获取注解类型获取元注解getAttribute(String attributeName) 获取元注解的属性值int获取该合成注解与根注解之间相隔的注解树getRoot()获取根注解int获取该合成注解与根注解之间相隔的层级数booleanhasAttribute(String attributeName) 元注解是否存在该属性booleanhasAttribute(String attributeName, Class<?> returnType) 元注解是否存在该属性,且该属性的值类型是指定类型或其子类Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.annotation.Annotation
equals, hashCode, toStringMethods inherited from interface org.aoju.bus.core.scanner.Synthesized
isRoot
-
Constructor Details
-
Meta
-
-
Method Details
-
annotationType
获取注解类型- Specified by:
annotationTypein interfaceAnnotation- Returns:
- 注解类型
-
getRoot
-
getAnnotation
获取元注解- Specified by:
getAnnotationin interfaceSynthesized- Returns:
- 元注解
-
getVerticalDistance
public int getVerticalDistance()获取该合成注解与根注解之间相隔的层级数- Specified by:
getVerticalDistancein interfaceSynthesized- Returns:
- 该合成注解与根注解之间相隔的层级数
-
getHorizontalDistance
public int getHorizontalDistance()获取该合成注解与根注解之间相隔的注解树- Specified by:
getHorizontalDistancein interfaceSynthesized- Returns:
- 该合成注解与根注解之间相隔的注解树
-
hasAttribute
元注解是否存在该属性- Parameters:
attributeName- 属性名- Returns:
- 是否存在该属性
-
hasAttribute
元注解是否存在该属性,且该属性的值类型是指定类型或其子类- Specified by:
hasAttributein interfaceSynthesized- Parameters:
attributeName- 属性名returnType- 返回值类型- Returns:
- 是否存在该属性
-
getAttribute
获取元注解的属性值- Specified by:
getAttributein interfaceSynthesized- Parameters:
attributeName- 属性名- Returns:
- 元注解的属性值
-