Package org.hibernate.models.internal
Class ArrayTypeDescriptor<V>
java.lang.Object
org.hibernate.models.internal.ArrayTypeDescriptor<V>
- All Implemented Interfaces:
ValueTypeDescriptor<List<V>>
Descriptor for array values. These are modeled as an array in the
annotation, but as a List here.
-
Constructor Summary
ConstructorsConstructorDescriptionArrayTypeDescriptor(ValueTypeDescriptor<V> elementTypeDescriptor, Class<?> componentType) -
Method Summary
Modifier and TypeMethodDescriptioncreateAttributeDescriptor(AnnotationDescriptor<?> annotationDescriptor, String attributeName) Factory for creating typed AttributeDescriptor referencesValueExtractor<org.jboss.jandex.AnnotationInstance,List<V>> createJandexExtractor(SourceModelBuildingContext buildingContext) ValueWrapper<List<V>,org.jboss.jandex.AnnotationValue> createJandexWrapper(SourceModelBuildingContext buildingContext) createJdkExtractor(SourceModelBuildingContext buildingContext) ValueWrapper<List<V>,Object[]> createJdkWrapper(SourceModelBuildingContext buildingContext) createValue(AttributeDescriptor<?> attributeDescriptor, AnnotationTarget target, SourceModelBuildingContext context) Creates a properly typed default attribute value.The type for the value as modeled in AnnotationUsage.ValueExtractor<org.jboss.jandex.AnnotationInstance,List<V>> resolveJandexExtractor(SourceModelBuildingContext buildingContext) resolveJdkExtractor(SourceModelBuildingContext buildingContext) ValueWrapper<List<V>,Object[]> resolveJkWrapper(SourceModelBuildingContext buildingContext)
-
Constructor Details
-
ArrayTypeDescriptor
-
-
Method Details
-
getWrappedValueType
Description copied from interface:ValueTypeDescriptorThe type for the value as modeled in AnnotationUsage.- Specified by:
getWrappedValueTypein interfaceValueTypeDescriptor<V>
-
createValue
public List<V> createValue(AttributeDescriptor<?> attributeDescriptor, AnnotationTarget target, SourceModelBuildingContext context) Description copied from interface:ValueTypeDescriptorCreates a properly typed default attribute value. Generally used in creating dynamic annotations.- Specified by:
createValuein interfaceValueTypeDescriptor<V>
-
createAttributeDescriptor
public AttributeDescriptor<List<V>> createAttributeDescriptor(AnnotationDescriptor<?> annotationDescriptor, String attributeName) Description copied from interface:ValueTypeDescriptorFactory for creating typed AttributeDescriptor references- Specified by:
createAttributeDescriptorin interfaceValueTypeDescriptor<V>
-
createJandexExtractor
public ValueExtractor<org.jboss.jandex.AnnotationInstance,List<V>> createJandexExtractor(SourceModelBuildingContext buildingContext) - Specified by:
createJandexExtractorin interfaceValueTypeDescriptor<V>
-
resolveJandexExtractor
public ValueExtractor<org.jboss.jandex.AnnotationInstance,List<V>> resolveJandexExtractor(SourceModelBuildingContext buildingContext) -
createJandexWrapper
public ValueWrapper<List<V>,org.jboss.jandex.AnnotationValue> createJandexWrapper(SourceModelBuildingContext buildingContext) - Specified by:
createJandexWrapperin interfaceValueTypeDescriptor<V>
-
createJdkExtractor
public ValueExtractor<Annotation,List<V>> createJdkExtractor(SourceModelBuildingContext buildingContext) - Specified by:
createJdkExtractorin interfaceValueTypeDescriptor<V>
-
resolveJdkExtractor
public ValueExtractor<Annotation,List<V>> resolveJdkExtractor(SourceModelBuildingContext buildingContext) -
createJdkWrapper
- Specified by:
createJdkWrapperin interfaceValueTypeDescriptor<V>
-
resolveJkWrapper
-
unwrap
- Specified by:
unwrapin interfaceValueTypeDescriptor<V>
-