Class AbstractPojoHCAnnRawTypeModel<T,I extends AbstractPojoHCAnnBootstrapIntrospector>
java.lang.Object
org.hibernate.search.mapper.pojo.model.spi.AbstractPojoRawTypeModel<T,I>
org.hibernate.search.mapper.pojo.model.hcann.spi.AbstractPojoHCAnnRawTypeModel<T,I>
- All Implemented Interfaces:
MappableTypeModel
,PojoRawTypeModel<T>
,PojoTypeModel<T>
- Direct Known Subclasses:
PojoSimpleHCAnnRawTypeModel
public abstract class AbstractPojoHCAnnRawTypeModel<T,I extends AbstractPojoHCAnnBootstrapIntrospector>
extends AbstractPojoRawTypeModel<T,I>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.hibernate.annotations.common.reflection.XClass
Fields inherited from class org.hibernate.search.mapper.pojo.model.spi.AbstractPojoRawTypeModel
introspector, typeIdentifier
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractPojoHCAnnRawTypeModel
(I introspector, PojoRawTypeIdentifier<T> typeIdentifier, GenericContextAwarePojoGenericTypeModel.RawTypeDeclaringContext<T> rawTypeDeclaringContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<PojoConstructorModel<T>>
protected final Member
declaredPropertyField
(String propertyName) declaredPropertyGetters
(String propertyName) boolean
final boolean
isSubTypeOf
(MappableTypeModel other) typeArgument
(Class<?> rawSuperType, int typeParameterIndex) Methods inherited from class org.hibernate.search.mapper.pojo.model.spi.AbstractPojoRawTypeModel
cast, caster, castTo, constructor, createPropertyModel, declaredConstructors, declaredProperties, doCast, equals, hashCode, mainConstructor, name, property, toString, typeIdentifier
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hibernate.search.mapper.pojo.model.spi.PojoRawTypeModel
ascendingSuperTypes, descendingSuperTypes, rawType
-
Field Details
-
xClass
protected final org.hibernate.annotations.common.reflection.XClass xClass
-
-
Constructor Details
-
AbstractPojoHCAnnRawTypeModel
public AbstractPojoHCAnnRawTypeModel(I introspector, PojoRawTypeIdentifier<T> typeIdentifier, GenericContextAwarePojoGenericTypeModel.RawTypeDeclaringContext<T> rawTypeDeclaringContext)
-
-
Method Details
-
isAbstract
public boolean isAbstract()- Returns:
true
if this type is abstract, i.e. it cannot be instantiated as-is (but may be as a subtype).false
otherwise.
-
isSubTypeOf
- Parameters:
other
- Another type that should be assessed as a supertype.- Returns:
true
if this type is a subtype ofsuperTypeCandidate
, i.e. ifsuperTypeCandidate
is mentioned inMappableTypeModel.ascendingSuperTypes()
.false
otherwise.
-
typeArgument
- Parameters:
rawSuperType
- The supertype to resolve type parameters fortypeParameterIndex
- The index of the type parameter to resolve- Returns:
- The model for the type argument for the type parameter defined in
rawSuperType
at indextypeParameterIndex
, or an empty optional if the current type does not extendrawSuperType
. Implementations may decide to return a model of the raw type argument, or to retain generics information.
-
arrayElementType
- Returns:
- The model for the array element type, or an empty optional if the current type is not an array type. Implementations may decide to return a model of the raw array element type, or to retain generics information.
-
annotations
- Returns:
- All annotations on this specific type (non-inherited annotations from supertype are excluded).
-
createDeclaredConstructors
- Specified by:
createDeclaredConstructors
in classAbstractPojoRawTypeModel<T,
I extends AbstractPojoHCAnnBootstrapIntrospector>
-
declaredPropertyNames
- Specified by:
declaredPropertyNames
in classAbstractPojoRawTypeModel<T,
I extends AbstractPojoHCAnnBootstrapIntrospector>
-
declaredFieldAccessXPropertiesByName
-
declaredMethodAccessXPropertiesByName
-
declaredPropertyGetters
-
declaredPropertyField
-