Class MethodParameterMappingAnnotationProcessorContextImpl
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.mapping.definition.annotation.processing.impl.AbstractMappingAnnotationProcessorContext
-
- org.hibernate.search.mapper.pojo.mapping.definition.annotation.processing.impl.MethodParameterMappingAnnotationProcessorContextImpl
-
- All Implemented Interfaces:
MappingAnnotatedElement,MappingAnnotatedMethodParameter,MappingAnnotationProcessorContext,MethodParameterMappingAnnotationProcessorContext
public class MethodParameterMappingAnnotationProcessorContextImpl extends AbstractMappingAnnotationProcessorContext implements MethodParameterMappingAnnotationProcessorContext, MappingAnnotatedMethodParameter
-
-
Field Summary
-
Fields inherited from class org.hibernate.search.mapper.pojo.mapping.definition.annotation.processing.impl.AbstractMappingAnnotationProcessorContext
annotationHelper
-
-
Constructor Summary
Constructors Constructor Description MethodParameterMappingAnnotationProcessorContextImpl(PojoConstructorModel<?> constructorModel, PojoMethodParameterModel<?> methodParameterModel, Annotation annotation, AnnotationHelper annotationHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<Annotation>allAnnotations()MappingAnnotatedMethodParameterannotatedElement()EventContexteventContext()Class<?>javaClass()Optional<String>name()-
Methods inherited from class org.hibernate.search.mapper.pojo.mapping.definition.annotation.processing.impl.AbstractMappingAnnotationProcessorContext
toBeanReference, toContainerExtractorPath, toNullIfDefault, toPojoModelPathValueNode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.search.mapper.pojo.mapping.definition.annotation.processing.MappingAnnotationProcessorContext
toBeanReference, toBeanReference, toContainerExtractorPath, toMap, toNullIfDefault, toPojoModelPathValueNode
-
-
-
-
Constructor Detail
-
MethodParameterMappingAnnotationProcessorContextImpl
public MethodParameterMappingAnnotationProcessorContextImpl(PojoConstructorModel<?> constructorModel, PojoMethodParameterModel<?> methodParameterModel, Annotation annotation, AnnotationHelper annotationHelper)
-
-
Method Detail
-
annotatedElement
public MappingAnnotatedMethodParameter annotatedElement()
- Specified by:
annotatedElementin interfaceMappingAnnotationProcessorContext- Specified by:
annotatedElementin interfaceMethodParameterMappingAnnotationProcessorContext- Returns:
- A representation of the annotated element.
-
eventContext
public EventContext eventContext()
- Specified by:
eventContextin interfaceMappingAnnotationProcessorContext- Returns:
- An event context describing the annotation being processed and its location, for use in log messages and exception messages.
-
name
public Optional<String> name()
- Specified by:
namein interfaceMappingAnnotatedMethodParameter- Returns:
- An optional containing the name of the method parameter, or
Optional.empty()if unavailable.
-
javaClass
public Class<?> javaClass()
- Specified by:
javaClassin interfaceMappingAnnotatedElement- Returns:
- The Java class corresponding to the raw type of the annotated element.
-
allAnnotations
public Stream<Annotation> allAnnotations()
- Specified by:
allAnnotationsin interfaceMappingAnnotatedElement- Returns:
- All annotations declared on the annotated element.
-
-