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:
HibernateOrmClassRawTypeModel
public abstract class AbstractPojoHCAnnRawTypeModel<T,I extends AbstractPojoHCAnnBootstrapIntrospector> extends AbstractPojoRawTypeModel<T,I>
-
-
Field Summary
Fields Modifier and Type Field Description protected XClassxClass-
Fields inherited from class org.hibernate.search.mapper.pojo.model.spi.AbstractPojoRawTypeModel
introspector, typeIdentifier
-
-
Constructor Summary
Constructors Constructor Description AbstractPojoHCAnnRawTypeModel(I introspector, PojoRawTypeIdentifier<T> typeIdentifier, GenericContextAwarePojoGenericTypeModel.RawTypeDeclaringContext<T> rawTypeDeclaringContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<Annotation>annotations()Optional<PojoTypeModel<?>>arrayElementType()protected List<PojoConstructorModel<T>>createDeclaredConstructors()protected Map<String,XProperty>declaredFieldAccessXPropertiesByName()protected Map<String,List<XProperty>>declaredMethodAccessXPropertiesByName()protected MemberdeclaredPropertyField(String propertyName)protected List<Member>declaredPropertyGetters(String propertyName)protected Stream<String>declaredPropertyNames()booleanisAbstract()booleanisSubTypeOf(MappableTypeModel other)Optional<PojoTypeModel<?>>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 Detail
-
xClass
protected final XClass xClass
-
-
Constructor Detail
-
AbstractPojoHCAnnRawTypeModel
public AbstractPojoHCAnnRawTypeModel(I introspector, PojoRawTypeIdentifier<T> typeIdentifier, GenericContextAwarePojoGenericTypeModel.RawTypeDeclaringContext<T> rawTypeDeclaringContext)
-
-
Method Detail
-
isAbstract
public boolean isAbstract()
- Returns:
trueif this type is abstract, i.e. it cannot be instantiated as-is (but may be as a subtype).falseotherwise.
-
isSubTypeOf
public final boolean isSubTypeOf(MappableTypeModel other)
- Parameters:
other- Another type that should be assessed as a supertype.- Returns:
trueif this type is a subtype ofsuperTypeCandidate, i.e. ifsuperTypeCandidateis mentioned inMappableTypeModel.ascendingSuperTypes().falseotherwise.
-
typeArgument
public Optional<PojoTypeModel<?>> typeArgument(Class<?> rawSuperType, int typeParameterIndex)
- 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
rawSuperTypeat 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
public Optional<PojoTypeModel<?>> 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
public Stream<Annotation> annotations()
- Returns:
- All annotations on this specific type (non-inherited annotations from supertype are excluded).
-
createDeclaredConstructors
protected List<PojoConstructorModel<T>> createDeclaredConstructors()
- Specified by:
createDeclaredConstructorsin classAbstractPojoRawTypeModel<T,I extends AbstractPojoHCAnnBootstrapIntrospector>
-
declaredPropertyNames
protected final Stream<String> declaredPropertyNames()
- Specified by:
declaredPropertyNamesin classAbstractPojoRawTypeModel<T,I extends AbstractPojoHCAnnBootstrapIntrospector>
-
declaredFieldAccessXPropertiesByName
protected final Map<String,XProperty> declaredFieldAccessXPropertiesByName()
-
declaredMethodAccessXPropertiesByName
protected final Map<String,List<XProperty>> declaredMethodAccessXPropertiesByName()
-
-