Class JandexFieldDetails
java.lang.Object
org.hibernate.models.internal.jandex.AbstractAnnotationTarget
org.hibernate.models.internal.jandex.JandexFieldDetails
- All Implemented Interfaces:
AnnotationTargetSupport,AnnotationTarget,FieldDetails,MemberDetails,MutableAnnotationTarget,MutableMemberDetails
public class JandexFieldDetails
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
ConstructorsConstructorDescriptionJandexFieldDetails(org.jboss.jandex.FieldInfo fieldInfo, ClassDetails declaringType, SourceModelBuildingContext buildingContext) -
Method Summary
Modifier and TypeMethodDescriptionThe class which declares this memberprotected org.jboss.jandex.AnnotationTargetThe Jandex AnnotationTarget we can use to read the AnnotationInstance from which to build the AnnotationUsage mapintAccess 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.jandex.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
-
JandexFieldDetails
public JandexFieldDetails(org.jboss.jandex.FieldInfo fieldInfo, ClassDetails declaringType, SourceModelBuildingContext buildingContext)
-
-
Method Details
-
getJandexAnnotationTarget
protected org.jboss.jandex.AnnotationTarget getJandexAnnotationTarget()Description copied from class:AbstractAnnotationTargetThe Jandex AnnotationTarget we can use to read the AnnotationInstance from which to build the AnnotationUsage map- Specified by:
getJandexAnnotationTargetin classAbstractAnnotationTarget
-
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
-
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:
-
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.
-
toString
-