Class DynamicMethodDetails
java.lang.Object
org.hibernate.models.internal.dynamic.AbstractAnnotationTarget
org.hibernate.models.internal.dynamic.DynamicMethodDetails
- All Implemented Interfaces:
AnnotationTargetSupport,AnnotationTarget,MemberDetails,MethodDetails,MutableAnnotationTarget,MutableMemberDetails
public class DynamicMethodDetails
extends AbstractAnnotationTarget
implements MethodDetails, MutableMemberDetails
MethodDetails which does not necessarily map to a physical Method (dynamic models)
-
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.VisibilityNested classes/interfaces inherited from interface org.hibernate.models.spi.MethodDetails
MethodDetails.MethodKind -
Constructor Summary
ConstructorsConstructorDescriptionDynamicMethodDetails(String name, TypeDetails type, ClassDetails declaringType, MethodDetails.MethodKind methodKind, int modifierFlags, boolean isArray, boolean isPlural, ClassDetails returnType, List<ClassDetails> argumentTypes, SourceModelBuildingContext buildingContext) DynamicMethodDetails(String name, TypeDetails type, ClassDetails declaringType, MethodDetails.MethodKind methodKind, int modifierFlags, ClassDetails returnType, List<ClassDetails> argumentTypes, 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.resolveRelativeType(TypeVariableScope container) Determine the type of the member relative to the givencontainertype.Access to the underlying Member.toString()Methods inherited from class org.hibernate.models.internal.dynamic.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.MemberDetails
getAssociatedType, getElementType, getMapKeyType, getVisibility, isField, isFinal, isStatic, isSynthetic, resolveRelativeAssociatedType, resolveRelativeClassTypeMethods inherited from interface org.hibernate.models.spi.MethodDetails
getKind, isPersistable, resolveAttributeNameMethods inherited from interface org.hibernate.models.spi.MutableAnnotationTarget
addAnnotationUsage, applyAnnotationUsage, applyAnnotationUsage, clearAnnotationUsages
-
Constructor Details
-
DynamicMethodDetails
public DynamicMethodDetails(String name, TypeDetails type, ClassDetails declaringType, MethodDetails.MethodKind methodKind, int modifierFlags, ClassDetails returnType, List<ClassDetails> argumentTypes, SourceModelBuildingContext buildingContext) -
DynamicMethodDetails
public DynamicMethodDetails(String name, TypeDetails type, ClassDetails declaringType, MethodDetails.MethodKind methodKind, int modifierFlags, boolean isArray, boolean isPlural, ClassDetails returnType, List<ClassDetails> argumentTypes, 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
-
getMethodKind
- Specified by:
getMethodKindin interfaceMethodDetails
-
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.
-
resolveRelativeType
Description copied from interface:MemberDetailsDetermine the type of the member relative to the givencontainertype. For example, given
Accessing theclass Thing<T extends Number>{ T id; }class SubThing extends Thing<Integer>{ ... }idmember relative toThingsimply returns the type variableT. However, asking theidmember for its type relative toSubThingwill reportInteger.- Specified by:
resolveRelativeTypein interfaceMemberDetails
-
getReturnType
- Specified by:
getReturnTypein interfaceMethodDetails
-
getArgumentTypes
- Specified by:
getArgumentTypesin interfaceMethodDetails
-
toString
-