Package org.hibernate.models.internal
Interface ClassDetailsSupport
- All Superinterfaces:
AnnotationTarget,AnnotationTargetSupport,ClassDetails,MutableAnnotationTarget,MutableClassDetails,Storable<ClassDetails,,SerialClassDetails> TypeVariableScope
- All Known Implementing Classes:
DynamicClassDetails,JdkClassDetails
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.models.spi.AnnotationTarget
AnnotationTarget.AnnotationUsageProcessor<T,A extends Annotation>, AnnotationTarget.Kind Nested classes/interfaces inherited from interface org.hibernate.models.spi.ClassDetails
ClassDetails.ClassDetailsConsumer -
Field Summary
Fields inherited from interface org.hibernate.models.spi.ClassDetails
CLASS_CLASS_DETAILS, OBJECT_CLASS_DETAILS, VOID_CLASS_DETAILS, VOID_OBJECT_CLASS_DETAILS -
Method Summary
Modifier and TypeMethodDescriptiondefault <A extends Annotation>
AnnotationDescriptor<A> Safe cast method for cases when the target is an annotation.default MutableClassDetailsdefault FieldDetailsdefault MutableMemberDetailsdefault MethodDetailsdefault RecordComponentDetailsSafe cast method for cases when the target is a record component.default voidforEachField(IndexedConsumer<FieldDetails> consumer) Visit each fielddefault voidforEachMethod(IndexedConsumer<MethodDetails> consumer) Visit each methoddefault voidVisit each methoddefault <A extends Annotation>
AgetAnnotationUsage(Class<A> annotationType, ModelsContext modelContext) Form ofAnnotationTarget.getAnnotationUsage(AnnotationDescriptor, ModelsContext)accepting the annotation Classdefault <A extends Annotation>
AgetAnnotationUsage(AnnotationDescriptor<A> descriptor, ModelsContext modelContext) Get the usage of the given annotation on this target.Methods inherited from interface org.hibernate.models.spi.AnnotationTarget
forEachAnnotationUsage, forEachAnnotationUsage, forEachDirectAnnotationUsage, fromAnnotations, fromContainers, fromSelfAndContainers, getNamedAnnotationUsage, getRepeatedAnnotationUsages, walkContainers, walkSelfAndContainersMethods inherited from interface org.hibernate.models.internal.AnnotationTargetSupport
addAnnotationUsage, clearAnnotationUsages, forEachRepeatedAnnotationUsages, forEachRepeatedAnnotationUsages, getDirectAnnotationUsage, getDirectAnnotationUsage, getDirectAnnotationUsages, getMetaAnnotated, getNamedAnnotationUsage, getNamedAnnotationUsage, getNamedAnnotationUsage, getRepeatedAnnotationUsages, getUsageMap, hasAnnotationUsage, hasDirectAnnotationUsage, locateAnnotationUsage, removeAnnotationUsage, replaceAnnotationUsageMethods inherited from interface org.hibernate.models.spi.ClassDetails
determineRawClass, findField, findFieldByName, findRecordComponent, findRecordComponentByName, forEachMember, forEachPersistableMember, forEachSuper, forSelfAndEachSuper, getClassName, getContainer, getFields, getGenericSuperType, getImplementedInterfaces, getKind, getMethods, getName, getRecordComponents, getSuperClass, getTypeParameters, isAbstract, isEnum, isImplementor, isInterface, isRecord, isResolved, isSuperclass, resolveTypeVariable, toJavaClass, toJavaClassMethods inherited from interface org.hibernate.models.spi.MutableAnnotationTarget
applyAnnotationUsage, replaceAnnotationUsageMethods inherited from interface org.hibernate.models.spi.MutableClassDetails
addField, addMethod, clearMemberAnnotationUsagesMethods inherited from interface org.hibernate.models.serial.spi.Storable
toStorableForm
-
Method Details
-
forEachField
Description copied from interface:ClassDetailsVisit each field- Specified by:
forEachFieldin interfaceClassDetails
-
forEachMethod
Description copied from interface:ClassDetailsVisit each method- Specified by:
forEachMethodin interfaceClassDetails
-
forEachRecordComponent
Description copied from interface:ClassDetailsVisit each method- Specified by:
forEachRecordComponentin interfaceClassDetails
-
getAnnotationUsage
default <A extends Annotation> A getAnnotationUsage(AnnotationDescriptor<A> descriptor, ModelsContext modelContext) Description copied from interface:AnnotationTargetGet the usage of the given annotation on this target. For repeatable annotation types (e.g.@NamedQuery), this method will either-- if a single repeatable annotation itself is present, it is returned.
-
if the "containing annotation" is present (e.g.
@NamedQueries),- if the container contains just a single repeatable, that one is returned
-
if the container contains multiple repeatables,
AnnotationAccessExceptionwill be thrown
- Specified by:
getAnnotationUsagein interfaceAnnotationTarget- Specified by:
getAnnotationUsagein interfaceAnnotationTargetSupport- Returns:
- The usage or
null
-
getAnnotationUsage
default <A extends Annotation> A getAnnotationUsage(Class<A> annotationType, ModelsContext modelContext) Description copied from interface:AnnotationTargetForm ofAnnotationTarget.getAnnotationUsage(AnnotationDescriptor, ModelsContext)accepting the annotation Class- Specified by:
getAnnotationUsagein interfaceAnnotationTarget- Specified by:
getAnnotationUsagein interfaceAnnotationTargetSupport
-
asClassDetails
Description copied from interface:AnnotationTarget- Specified by:
asClassDetailsin interfaceAnnotationTarget- Specified by:
asClassDetailsin interfaceAnnotationTargetSupport- Specified by:
asClassDetailsin interfaceClassDetails- Specified by:
asClassDetailsin interfaceMutableAnnotationTarget- Specified by:
asClassDetailsin interfaceMutableClassDetails
-
asAnnotationDescriptor
Description copied from interface:AnnotationTargetSafe cast method for cases when the target is an annotation.- Specified by:
asAnnotationDescriptorin interfaceAnnotationTarget- Specified by:
asAnnotationDescriptorin interfaceAnnotationTargetSupport- Specified by:
asAnnotationDescriptorin interfaceClassDetails- Specified by:
asAnnotationDescriptorin interfaceMutableClassDetails
-
asMemberDetails
Description copied from interface:AnnotationTarget- Specified by:
asMemberDetailsin interfaceAnnotationTarget- Specified by:
asMemberDetailsin interfaceAnnotationTargetSupport- Specified by:
asMemberDetailsin interfaceClassDetails- Specified by:
asMemberDetailsin interfaceMutableAnnotationTarget- Specified by:
asMemberDetailsin interfaceMutableClassDetails
-
asFieldDetails
Description copied from interface:AnnotationTarget- Specified by:
asFieldDetailsin interfaceAnnotationTarget- Specified by:
asFieldDetailsin interfaceAnnotationTargetSupport- Specified by:
asFieldDetailsin interfaceClassDetails- Specified by:
asFieldDetailsin interfaceMutableClassDetails
-
asMethodDetails
Description copied from interface:AnnotationTarget- Specified by:
asMethodDetailsin interfaceAnnotationTarget- Specified by:
asMethodDetailsin interfaceAnnotationTargetSupport- Specified by:
asMethodDetailsin interfaceClassDetails- Specified by:
asMethodDetailsin interfaceMutableClassDetails
-
asRecordComponentDetails
Description copied from interface:AnnotationTargetSafe cast method for cases when the target is a record component.- Specified by:
asRecordComponentDetailsin interfaceAnnotationTarget- Specified by:
asRecordComponentDetailsin interfaceAnnotationTargetSupport- Specified by:
asRecordComponentDetailsin interfaceClassDetails- Specified by:
asRecordComponentDetailsin interfaceMutableClassDetails
-