Class JandexAnnotationUsage<A extends Annotation>
java.lang.Object
org.hibernate.models.internal.jandex.JandexAnnotationUsage<A>
- All Implemented Interfaces:
AnnotationUsage<A>,MutableAnnotationUsage<A>
public class JandexAnnotationUsage<A extends Annotation>
extends Object
implements MutableAnnotationUsage<A>
AnnotationUsage implementation based on the Jandex AnnotationInstance
-
Constructor Summary
ConstructorsConstructorDescriptionJandexAnnotationUsage(org.jboss.jandex.AnnotationInstance annotationInstance, AnnotationDescriptor<A> annotationDescriptor, AnnotationTarget annotationTarget, SourceModelBuildingContext processingContext) -
Method Summary
Modifier and TypeMethodDescription<W> WfindAttributeValue(String name) The value of the named annotation attributeDescriptor for the type of the used annotationThe target where this usage occurs<V> VsetAttributeValue(String name, V value) Set thevalueof the named attributeCreate the Annotation representation of this usagetoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.models.spi.AnnotationUsage
getAnnotationType, getAttributeValue, getAttributeValue, getAttributeValue, getAttributeValue, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getClassDetails, getClassDetails, getClassDetails, getDouble, getDouble, getDouble, getEnum, getEnum, getEnum, getEnum, getEnum, getEnum, getFloat, getFloat, getFloat, getInteger, getInteger, getInteger, getList, getList, getList, getLong, getLong, getLong, getNestedUsage, getNestedUsage, getNestedUsage, getShort, getShort, getShort, getString, getString, getString
-
Constructor Details
-
JandexAnnotationUsage
public JandexAnnotationUsage(org.jboss.jandex.AnnotationInstance annotationInstance, AnnotationDescriptor<A> annotationDescriptor, AnnotationTarget annotationTarget, SourceModelBuildingContext processingContext)
-
-
Method Details
-
getAnnotationDescriptor
Description copied from interface:AnnotationUsageDescriptor for the type of the used annotation- Specified by:
getAnnotationDescriptorin interfaceAnnotationUsage<A extends Annotation>
-
getAnnotationTarget
Description copied from interface:AnnotationUsageThe target where this usage occurs- Specified by:
getAnnotationTargetin interfaceAnnotationUsage<A extends Annotation>
-
toAnnotation
Description copied from interface:AnnotationUsageCreate the Annotation representation of this usage- Specified by:
toAnnotationin interfaceAnnotationUsage<A extends Annotation>
-
findAttributeValue
Description copied from interface:AnnotationUsageThe value of the named annotation attribute- Specified by:
findAttributeValuein interfaceAnnotationUsage<A extends Annotation>
-
setAttributeValue
Description copied from interface:MutableAnnotationUsageSet thevalueof the named attribute- Specified by:
setAttributeValuein interfaceMutableAnnotationUsage<A extends Annotation>
-
toString
-