Package org.hibernate.models.internal
Class StandardAnnotationDescriptor<A extends Annotation>
java.lang.Object
org.hibernate.models.internal.AbstractAnnotationTarget
org.hibernate.models.internal.AbstractAnnotationDescriptor<A>
org.hibernate.models.internal.StandardAnnotationDescriptor<A>
- All Implemented Interfaces:
AnnotationTargetSupport,Storable<AnnotationDescriptor<A>,,SerialAnnotationDescriptor<A>> AnnotationDescriptor<A>,AnnotationTarget,MutableAnnotationTarget
public class StandardAnnotationDescriptor<A extends Annotation>
extends AbstractAnnotationDescriptor<A>
Simple implementation of
AnnotationDescriptor.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.models.spi.AnnotationTarget
AnnotationTarget.AnnotationUsageProcessor<T,A extends Annotation>, AnnotationTarget.Kind -
Constructor Summary
ConstructorsConstructorDescriptionStandardAnnotationDescriptor(Class<A> annotationType, AnnotationDescriptor<?> repeatableContainer, ModelsContext modelsContext) StandardAnnotationDescriptor(Class<A> annotationType, ModelsContext modelsContext) -
Method Summary
Modifier and TypeMethodDescriptioncreateUsage(A jdkAnnotation, ModelsContext context) Create a usage from the JDK representation.createUsage(ModelsContext context) Create an empty usage.The attributes of the annotationMap<Class<? extends Annotation>, ? extends Annotation> Access to all annotation usages on this target.Methods inherited from class org.hibernate.models.internal.AbstractAnnotationDescriptor
asAnnotationDescriptor, asClassDetails, asFieldDetails, asMemberDetails, asMethodDetails, asRecordComponentDetails, getAllowableTargets, getAnnotationType, getDirectAnnotationUsages, getName, getRepeatableContainer, getRepeatedAnnotationUsages, getRepeatedAnnotationUsages, isInheritedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.models.spi.AnnotationDescriptor
as, createUsage, findAttribute, getAttribute, getContainer, getKind, isRepeatable, toStorableFormMethods inherited from interface org.hibernate.models.spi.AnnotationTarget
forEachAnnotationUsage, forEachAnnotationUsage, forEachDirectAnnotationUsage, fromAnnotations, fromContainers, fromSelfAndContainers, getNamedAnnotationUsage, walkContainers, walkSelfAndContainersMethods inherited from interface org.hibernate.models.internal.AnnotationTargetSupport
addAnnotationUsage, clearAnnotationUsages, forEachRepeatedAnnotationUsages, forEachRepeatedAnnotationUsages, getAnnotationUsage, getAnnotationUsage, getDirectAnnotationUsage, getDirectAnnotationUsage, getMetaAnnotated, getNamedAnnotationUsage, getNamedAnnotationUsage, getNamedAnnotationUsage, hasAnnotationUsage, hasDirectAnnotationUsage, locateAnnotationUsage, removeAnnotationUsage, replaceAnnotationUsageMethods inherited from interface org.hibernate.models.spi.MutableAnnotationTarget
applyAnnotationUsage, replaceAnnotationUsage
-
Constructor Details
-
StandardAnnotationDescriptor
-
StandardAnnotationDescriptor
public StandardAnnotationDescriptor(Class<A> annotationType, AnnotationDescriptor<?> repeatableContainer, ModelsContext modelsContext)
-
-
Method Details
-
getUsageMap
Description copied from interface:AnnotationTargetSupportAccess to all annotation usages on this target. -
createUsage
Description copied from interface:AnnotationDescriptorCreate a usage from the JDK representation. This will often just return the passed annotation, although for Hibernate and JPA annotations we generally want wrappers to be able to manipulate the values. -
createUsage
Description copied from interface:AnnotationDescriptorCreate an empty usage. Used when there is no source form, such as XML processing. -
getAttributes
Description copied from interface:AnnotationDescriptorThe attributes of the annotation
-