Class DefaultModelElementProcessorContext
- java.lang.Object
-
- org.mapstruct.ap.internal.processor.DefaultModelElementProcessorContext
-
- All Implemented Interfaces:
ModelElementProcessor.ProcessorContext
public class DefaultModelElementProcessorContext extends Object implements ModelElementProcessor.ProcessorContext
Default implementation of the processor context.- Author:
- Gunnar Morling
-
-
Constructor Summary
Constructors Constructor Description DefaultModelElementProcessorContext(ProcessingEnvironment processingEnvironment, Options options, RoundContext roundContext, Map<String,String> notToBeImported, TypeElement mapperElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessorNamingUtils
getAccessorNaming()
ElementUtils
getElementUtils()
EnumMappingStrategy
getEnumMappingStrategy()
Map<String,EnumTransformationStrategy>
getEnumTransformationStrategies()
Filer
getFiler()
FormattingMessager
getMessager()
Options
getOptions()
TypeFactory
getTypeFactory()
TypeUtils
getTypeUtils()
VersionInformation
getVersionInformation()
boolean
isErroneous()
Whether the currently processed mapper type is erroneous which is the case if at least one diagnostic withDiagnostic.Kind.ERROR
is reported by any of the participating processors.
-
-
-
Constructor Detail
-
DefaultModelElementProcessorContext
public DefaultModelElementProcessorContext(ProcessingEnvironment processingEnvironment, Options options, RoundContext roundContext, Map<String,String> notToBeImported, TypeElement mapperElement)
-
-
Method Detail
-
getFiler
public Filer getFiler()
- Specified by:
getFiler
in interfaceModelElementProcessor.ProcessorContext
-
getTypeUtils
public TypeUtils getTypeUtils()
- Specified by:
getTypeUtils
in interfaceModelElementProcessor.ProcessorContext
-
getElementUtils
public ElementUtils getElementUtils()
- Specified by:
getElementUtils
in interfaceModelElementProcessor.ProcessorContext
-
getTypeFactory
public TypeFactory getTypeFactory()
- Specified by:
getTypeFactory
in interfaceModelElementProcessor.ProcessorContext
-
getMessager
public FormattingMessager getMessager()
- Specified by:
getMessager
in interfaceModelElementProcessor.ProcessorContext
-
getAccessorNaming
public AccessorNamingUtils getAccessorNaming()
- Specified by:
getAccessorNaming
in interfaceModelElementProcessor.ProcessorContext
-
getEnumTransformationStrategies
public Map<String,EnumTransformationStrategy> getEnumTransformationStrategies()
- Specified by:
getEnumTransformationStrategies
in interfaceModelElementProcessor.ProcessorContext
-
getEnumMappingStrategy
public EnumMappingStrategy getEnumMappingStrategy()
- Specified by:
getEnumMappingStrategy
in interfaceModelElementProcessor.ProcessorContext
-
getOptions
public Options getOptions()
- Specified by:
getOptions
in interfaceModelElementProcessor.ProcessorContext
-
getVersionInformation
public VersionInformation getVersionInformation()
- Specified by:
getVersionInformation
in interfaceModelElementProcessor.ProcessorContext
-
isErroneous
public boolean isErroneous()
Description copied from interface:ModelElementProcessor.ProcessorContext
Whether the currently processed mapper type is erroneous which is the case if at least one diagnostic withDiagnostic.Kind.ERROR
is reported by any of the participating processors.- Specified by:
isErroneous
in interfaceModelElementProcessor.ProcessorContext
- Returns:
true
if the currently processed mapper type is erroneous,false
otherwise.
-
-