Class JdkFieldDetails
java.lang.Object
org.hibernate.models.internal.jdk.AbstractAnnotationTarget
org.hibernate.models.internal.jdk.JdkFieldDetails
- All Implemented Interfaces:
AnnotationTargetSupport,AnnotationTarget,FieldDetails,MemberDetails,MutableAnnotationTarget,MutableMemberDetails
public class JdkFieldDetails
extends AbstractAnnotationTarget
implements FieldDetails, MutableMemberDetails
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.models.spi.AnnotationTarget
AnnotationTarget.AnnotationUsageProcessor<T>, AnnotationTarget.KindNested classes/interfaces inherited from interface org.hibernate.models.spi.MemberDetails
MemberDetails.Visibility -
Constructor Summary
ConstructorsConstructorDescriptionJdkFieldDetails(Field field, JdkClassDetails declaringType, SourceModelBuildingContext buildingContext) -
Method Summary
Modifier and TypeMethodDescriptionThe class which declares this memberintAccess to the member modifier flags.getName()The name of the member.getType()The member type.booleanisArray()booleanisPlural()For member's with an associated type, whether that type considered plural.Access to the underlying Member.toString()Methods 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, wait, wait, waitMethods 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.FieldDetails
getKind, isPersistable, resolveAttributeNameMethods inherited from interface org.hibernate.models.spi.MemberDetails
getAssociatedType, getElementType, getMapKeyType, getVisibility, isField, isFinal, isStatic, isSynthetic, resolveRelativeAssociatedType, resolveRelativeClassType, resolveRelativeTypeMethods inherited from interface org.hibernate.models.spi.MutableAnnotationTarget
addAnnotationUsage, applyAnnotationUsage, applyAnnotationUsage, clearAnnotationUsages
-
Constructor Details
-
JdkFieldDetails
public JdkFieldDetails(Field field, JdkClassDetails declaringType, SourceModelBuildingContext buildingContext)
-
-
Method Details
-
getName
Description copied from interface:MemberDetailsThe name of the member. This would be the name of the method or field.- Specified by:
getNamein interfaceAnnotationTarget- Specified by:
getNamein interfaceMemberDetails
-
getType
Description copied from interface:MemberDetailsThe member type. May benull- Specified by:
getTypein interfaceMemberDetails- Returns:
- Returns one of:
- for a field, the field type
- for a getter method, the return type
- for a setter method, the argument type
- otherwise,
null
-
getDeclaringType
Description copied from interface:MemberDetailsThe class which declares this member- Specified by:
getDeclaringTypein interfaceMemberDetails
-
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.
-
isPlural
public boolean isPlural()Description copied from interface:MemberDetailsFor member's with an associated type, whether that type considered plural.- Specified by:
isPluralin interfaceMemberDetails- Returns:
trueWhen the member has a type and that type is an array or a Map or Collection inheritor
-
isArray
public boolean isArray()- Specified by:
isArrayin interfaceMemberDetails
-
getModifiers
public int getModifiers()Description copied from interface:MemberDetailsAccess to the member modifier flags.- Specified by:
getModifiersin interfaceMemberDetails- See Also:
-
toString
-