Package org.hibernate.models.spi
Interface MethodDetails
- All Superinterfaces:
AnnotationTarget,MemberDetails
- All Known Implementing Classes:
JdkMethodDetails
-
Nested Class Summary
Nested ClassesNested 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.MemberDetails
MemberDetails.Visibility -
Method Summary
Modifier and TypeMethodDescriptiondefault FieldDetailsdefault MethodDetailsdefault RecordComponentDetailsSafe cast method for cases when the target is a record component.default AnnotationTarget.KindgetKind()The kind of targetdefault booleanCan this member be a persistent attributedefault StringFor members potentially representing attributes based on naming patterns, determine the attribute name.Access to the underlying Member.toJavaMember(Class<?> declaringClass, ClassLoading classLoading, ModelsContext modelContext) Methods inherited from interface org.hibernate.models.spi.AnnotationTarget
forEachAnnotationUsage, forEachAnnotationUsage, forEachDirectAnnotationUsage, forEachRepeatedAnnotationUsages, forEachRepeatedAnnotationUsages, fromAnnotations, fromContainers, fromSelfAndContainers, getAnnotationUsage, getAnnotationUsage, getDirectAnnotationUsage, getDirectAnnotationUsage, getDirectAnnotationUsages, getMetaAnnotated, getNamedAnnotationUsage, getNamedAnnotationUsage, getNamedAnnotationUsage, getNamedAnnotationUsage, getRepeatedAnnotationUsages, getRepeatedAnnotationUsages, hasAnnotationUsage, hasDirectAnnotationUsage, locateAnnotationUsage, walkContainers, walkSelfAndContainersMethods inherited from interface org.hibernate.models.spi.MemberDetails
asAnnotationDescriptor, asClassDetails, asMemberDetails, getAssociatedType, getContainer, getDeclaringType, getElementType, getMapKeyType, getModifiers, getName, getType, getVisibility, isArray, isField, isFinal, isPlural, isStatic, isSynthetic, resolveRelativeAssociatedType, resolveRelativeClassType, resolveRelativeType
-
Method Details
-
getMethodKind
MethodDetails.MethodKind getMethodKind() -
getKind
Description copied from interface:AnnotationTargetThe kind of target- Specified by:
getKindin interfaceAnnotationTarget
-
getReturnType
ClassDetails getReturnType() -
getArgumentTypes
List<ClassDetails> getArgumentTypes() -
isPersistable
default boolean isPersistable()Description copied from interface:MemberDetailsCan this member be a persistent attribute- Specified by:
isPersistablein interfaceMemberDetails
-
resolveAttributeName
Description copied from interface:MemberDetailsFor members potentially representing attributes based on naming patterns, determine the attribute name. Returnnullif the name does not match the pattern for an attribute name.- Specified by:
resolveAttributeNamein interfaceMemberDetails- Returns:
- The potential attribute name, or
null.
-
toJavaMember
Method toJavaMember()Description copied from interface:MemberDetailsAccess to the underlying Member. May returnnull. May throw an exception.- Specified by:
toJavaMemberin interfaceMemberDetails- Returns:
- The underlying member, or
nullif there is no underlying member.
-
toJavaMember
- Specified by:
toJavaMemberin interfaceMemberDetails
-
asFieldDetails
Description copied from interface:AnnotationTarget- Specified by:
asFieldDetailsin interfaceAnnotationTarget
-
asMethodDetails
Description copied from interface:AnnotationTarget- Specified by:
asMethodDetailsin interfaceAnnotationTarget
-
asRecordComponentDetails
Description copied from interface:AnnotationTargetSafe cast method for cases when the target is a record component.- Specified by:
asRecordComponentDetailsin interfaceAnnotationTarget
-