public class AliasedAnnotationAttribute extends AbstractWrappedAnnotationAttribute
表示一个具有别名的属性。 当别名属性值为默认值时,优先返回原属性的值,当别名属性不为默认值时,优先返回别名属性的值
AliasLinkAnnotationPostProcessor
,
RelationType.ALIAS_FOR
linked, original
Modifier | Constructor and Description |
---|---|
protected |
AliasedAnnotationAttribute(AnnotationAttribute origin,
AnnotationAttribute linked) |
Modifier and Type | Method and Description |
---|---|
Object |
getValue()
|
boolean |
isValueEquivalentToDefaultValue()
|
getAllLinkedNonWrappedAttributes, getLinked, getNonWrappedOriginal, getOriginal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnnotation, getAnnotation, getAttribute, getAttributeType, isWrapped
getAnnotationType, getAttributeName
protected AliasedAnnotationAttribute(AnnotationAttribute origin, AnnotationAttribute linked)
public Object getValue()
AbstractWrappedAnnotationAttribute.linked
为默认值,则返回AbstractWrappedAnnotationAttribute.original
的值,否则返回AbstractWrappedAnnotationAttribute.linked
的值public boolean isValueEquivalentToDefaultValue()
Copyright © 2024. All rights reserved.