public class DefaultModelElementProcessorContext extends Object implements ModelElementProcessor.ProcessorContext
Constructor and Description |
---|
DefaultModelElementProcessorContext(ProcessingEnvironment processingEnvironment,
Options options,
RoundContext roundContext,
Map<String,String> notToBeImported) |
Modifier and Type | Method and Description |
---|---|
AccessorNamingUtils |
getAccessorNaming() |
Elements |
getElementUtils() |
EnumMappingStrategy |
getEnumMappingStrategy() |
Map<String,EnumTransformationStrategy> |
getEnumTransformationStrategies() |
Filer |
getFiler() |
FormattingMessager |
getMessager() |
Options |
getOptions() |
TypeFactory |
getTypeFactory() |
Types |
getTypeUtils() |
VersionInformation |
getVersionInformation() |
boolean |
isErroneous()
Whether the currently processed mapper type is erroneous which is the
case if at least one diagnostic with
Diagnostic.Kind.ERROR is reported
by any of the participating processors. |
public DefaultModelElementProcessorContext(ProcessingEnvironment processingEnvironment, Options options, RoundContext roundContext, Map<String,String> notToBeImported)
public Filer getFiler()
getFiler
in interface ModelElementProcessor.ProcessorContext
public Types getTypeUtils()
getTypeUtils
in interface ModelElementProcessor.ProcessorContext
public Elements getElementUtils()
getElementUtils
in interface ModelElementProcessor.ProcessorContext
public TypeFactory getTypeFactory()
getTypeFactory
in interface ModelElementProcessor.ProcessorContext
public FormattingMessager getMessager()
getMessager
in interface ModelElementProcessor.ProcessorContext
public AccessorNamingUtils getAccessorNaming()
getAccessorNaming
in interface ModelElementProcessor.ProcessorContext
public Map<String,EnumTransformationStrategy> getEnumTransformationStrategies()
getEnumTransformationStrategies
in interface ModelElementProcessor.ProcessorContext
public EnumMappingStrategy getEnumMappingStrategy()
getEnumMappingStrategy
in interface ModelElementProcessor.ProcessorContext
public Options getOptions()
getOptions
in interface ModelElementProcessor.ProcessorContext
public VersionInformation getVersionInformation()
getVersionInformation
in interface ModelElementProcessor.ProcessorContext
public boolean isErroneous()
ModelElementProcessor.ProcessorContext
Diagnostic.Kind.ERROR
is reported
by any of the participating processors.isErroneous
in interface ModelElementProcessor.ProcessorContext
true
if the currently processed mapper type is
erroneous, false
otherwise.Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.