Package org.hibernate.models.spi
Interface ValueTypeDescriptor<V>
- All Known Implementing Classes:
AbstractTypeDescriptor,ArrayTypeDescriptor,BooleanTypeDescriptor,ByteTypeDescriptor,CharacterTypeDescriptor,ClassTypeDescriptor,DoubleTypeDescriptor,EnumTypeDescriptor,FloatTypeDescriptor,IntegerTypeDescriptor,LongTypeDescriptor,NestedTypeDescriptor,ShortTypeDescriptor,StringTypeDescriptor
public interface ValueTypeDescriptor<V>
Descriptor for the annotation attribute types, acting as a producer for
AttributeDescriptor, ValueWrapper and ValueExtractor references-
Method Summary
Modifier and TypeMethodDescriptioncreateAttributeDescriptor(AnnotationDescriptor<?> annotationDescriptor, String attributeName) Factory for creating typed AttributeDescriptor referencesValueExtractor<org.jboss.jandex.AnnotationInstance,V> createJandexExtractor(SourceModelBuildingContext buildingContext) ValueWrapper<V,org.jboss.jandex.AnnotationValue> createJandexWrapper(SourceModelBuildingContext buildingContext) createJdkExtractor(SourceModelBuildingContext buildingContext) ValueWrapper<V,?> 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.
-
Method Details
-
getWrappedValueType
The type for the value as modeled in AnnotationUsage. -
createValue
V createValue(AttributeDescriptor<?> attributeDescriptor, AnnotationTarget target, SourceModelBuildingContext context) Creates a properly typed default attribute value. Generally used in creating dynamic annotations. -
createAttributeDescriptor
AttributeDescriptor<V> createAttributeDescriptor(AnnotationDescriptor<?> annotationDescriptor, String attributeName) Factory for creating typed AttributeDescriptor references -
createJandexWrapper
ValueWrapper<V,org.jboss.jandex.AnnotationValue> createJandexWrapper(SourceModelBuildingContext buildingContext) -
createJandexExtractor
ValueExtractor<org.jboss.jandex.AnnotationInstance,V> createJandexExtractor(SourceModelBuildingContext buildingContext) -
createJdkWrapper
-
createJdkExtractor
-
unwrap
-