Class JdkAnnotationUsage<A extends Annotation>
java.lang.Object
org.hibernate.models.internal.jdk.JdkAnnotationUsage<A>
- All Implemented Interfaces:
AnnotationUsage<A>,MutableAnnotationUsage<A>
public class JdkAnnotationUsage<A extends Annotation>
extends Object
implements MutableAnnotationUsage<A>
-
Constructor Summary
ConstructorsConstructorDescriptionJdkAnnotationUsage(A annotation, AnnotationDescriptor<A> annotationDescriptor, AnnotationTarget location, SourceModelBuildingContext buildingContext) -
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
-
JdkAnnotationUsage
public JdkAnnotationUsage(A annotation, AnnotationDescriptor<A> annotationDescriptor, AnnotationTarget location, SourceModelBuildingContext buildingContext)
-
-
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
-