Package org.aoju.bus.core.scanner
Interface Synthesized
- All Superinterfaces:
Annotation
- All Known Implementing Classes:
SyntheticMeta.Meta
用于在
Synthetic中表示一个处于合成状态的注解对象- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
Modifier and TypeMethodDescription获取被合成的注解对象getAttribute(String attributeName) 获取属性值int获取该合成注解与根对象的水平距离。getRoot()获取该合成注解对应的根节点int获取该合成注解与根对象的垂直距离。booleanhasAttribute(String attributeName, Class<?> returnType) 注解是否存在该名称相同,且类型一致的属性default booleanisRoot()该合成注解是为根对象Methods inherited from interface java.lang.annotation.Annotation
annotationType, equals, hashCode, toString
-
Method Details
-
getRoot
-
isRoot
default boolean isRoot()该合成注解是为根对象- Returns:
- 根对象
-
getAnnotation
-
getVerticalDistance
int getVerticalDistance()获取该合成注解与根对象的垂直距离。 默认情况下,该距离即为当前注解与根对象之间相隔的层级数。- Returns:
- 合成注解与根对象的垂直距离
-
getHorizontalDistance
int getHorizontalDistance()获取该合成注解与根对象的水平距离。 默认情况下,该距离即为当前注解与根对象之间相隔的已经被扫描到的注解数。- Returns:
- 合成注解与根对象的水平距离
-
hasAttribute
-
getAttribute
-