Package org.mapstruct.ap.internal.writer
Class ModelWriter.DefaultModelElementWriterContext
- java.lang.Object
-
- org.mapstruct.ap.internal.writer.ModelWriter.DefaultModelElementWriterContext
-
- All Implemented Interfaces:
Writable.Context
- Enclosing class:
- ModelWriter
static class ModelWriter.DefaultModelElementWriterContext extends java.lang.Object implements Writable.Context
Writable.Contextimplementation which provides access to the current FreeMarkerConfiguration.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.Class<?>,java.lang.Object>values
-
Constructor Summary
Constructors Constructor Description DefaultModelElementWriterContext(java.util.Map<java.lang.Class<?>,java.lang.Object> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tget(java.lang.Class<T> type)Retrieves the object with the given type from this context.
-
-
-
Method Detail
-
get
public <T> T get(java.lang.Class<T> type)
Description copied from interface:Writable.ContextRetrieves the object with the given type from this context.- Specified by:
getin interfaceWritable.Context- Type Parameters:
T- the type- Parameters:
type- The type of the object to retrieve from this context.- Returns:
- The object with the given type from this context.
-
-