Class AnnotationDescriptorImpl<A extends Annotation>
java.lang.Object
org.hibernate.models.internal.jdk.AbstractAnnotationTarget
org.hibernate.models.internal.jdk.AnnotationDescriptorImpl<A>
- All Implemented Interfaces:
AnnotationTargetSupport,AnnotationDescriptor<A>,AnnotationTarget,MutableAnnotationTarget
public class AnnotationDescriptorImpl<A extends Annotation>
extends AbstractAnnotationTarget
implements AnnotationDescriptor<A>
AnnotationDescriptor built from the Annotation's Class reference
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.models.spi.AnnotationTarget
AnnotationTarget.AnnotationUsageProcessor<T>, AnnotationTarget.Kind -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationDescriptorImpl(Class<A> annotationType, AnnotationDescriptor<?> repeatableContainer, SourceModelBuildingContext context) AnnotationDescriptorImpl(Class<A> annotationType, SourceModelBuildingContext context) -
Method Summary
Modifier and TypeMethodDescriptionThe places the described annotation can be usedThe annotation typeThe attributes of the annotationgetName()A descriptive name for the target used mostly for loggingIf the described annotation is repeatable, returns the descriptor for the container annotation.booleanWhether the annotation defined as inheritedMethods inherited from class org.hibernate.models.internal.jdk.AbstractAnnotationTarget
addAnnotationUsage, clearAnnotationUsages, getBuildingContext, getUsageMapMethods 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
createUsage, createUsage, findAttribute, getAttribute, getKind, isRepeatableMethods inherited from interface org.hibernate.models.spi.AnnotationTarget
forAllAnnotationUsages, forEachAnnotationUsage, fromAnnotations, getNamedAnnotationUsage, getSingleAnnotationUsage, getSingleAnnotationUsageMethods inherited from interface org.hibernate.models.internal.AnnotationTargetSupport
forEachAnnotationUsage, getAllAnnotationUsages, getAnnotationUsage, getAnnotationUsage, getMetaAnnotated, getNamedAnnotationUsage, getNamedAnnotationUsage, getNamedAnnotationUsage, getRepeatedAnnotationUsages, getRepeatedAnnotationUsages, hasAnnotationUsage, hasRepeatableAnnotationUsage, locateAnnotationUsageMethods inherited from interface org.hibernate.models.spi.MutableAnnotationTarget
applyAnnotationUsage, applyAnnotationUsage
-
Constructor Details
-
AnnotationDescriptorImpl
-
AnnotationDescriptorImpl
public AnnotationDescriptorImpl(Class<A> annotationType, AnnotationDescriptor<?> repeatableContainer, SourceModelBuildingContext context)
-
-
Method Details
-
getAnnotationType
Description copied from interface:AnnotationDescriptorThe annotation type- Specified by:
getAnnotationTypein interfaceAnnotationDescriptor<A extends Annotation>
-
getAllowableTargets
Description copied from interface:AnnotationDescriptorThe places the described annotation can be used- Specified by:
getAllowableTargetsin interfaceAnnotationDescriptor<A extends Annotation>
-
isInherited
public boolean isInherited()Description copied from interface:AnnotationDescriptorWhether the annotation defined as inherited- Specified by:
isInheritedin interfaceAnnotationDescriptor<A extends Annotation>
-
getRepeatableContainer
Description copied from interface:AnnotationDescriptorIf the described annotation is repeatable, returns the descriptor for the container annotation.- Specified by:
getRepeatableContainerin interfaceAnnotationDescriptor<A extends Annotation>
-
getAttributes
Description copied from interface:AnnotationDescriptorThe attributes of the annotation- Specified by:
getAttributesin interfaceAnnotationDescriptor<A extends Annotation>
-
getName
Description copied from interface:AnnotationTargetA descriptive name for the target used mostly for logging- Specified by:
getNamein interfaceAnnotationTarget
-