public class MapperGeneratorContext extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
MapperGeneratorContext.MappingMethod |
| Modifier and Type | Field and Description |
|---|---|
List<TypeElement> |
sources |
| Constructor and Description |
|---|
MapperGeneratorContext(ProcessingEnvironment processingEnvironment) |
| Modifier and Type | Method and Description |
|---|---|
Elements |
elements() |
void |
error(Element element,
String message,
Object... args) |
int |
getSourcesCount() |
TypeElement |
getTypeElement(String classe) |
boolean |
hasMappingMethods() |
String |
mappingMethod(InOutType inOutType)
return mappingMethod name and push it inType registry if not already done
|
void |
mappingMethod(InOutType inOutType,
String name)
Push a custom mapping to the registry for later use
|
String |
newParams() |
MapperGeneratorContext.MappingMethod |
popMappingMethod() |
fr.xebia.extras.selma.codegen.MapperGeneratorContext.StackElem |
popStack() |
void |
pushStackForBody(MappingSourceNode node,
SourceNodeVars vars) |
void |
pushStackForChild(MappingSourceNode node,
SourceNodeVars vars) |
void |
setNewParams(String newParams) |
void |
setSources(List<TypeElement> _sources) |
List<TypeElement> |
sources() |
void |
warn(Element element,
String templateMessage,
Object... args) |
void |
warn(String s,
ExecutableElement element) |
public final List<TypeElement> sources
public MapperGeneratorContext(ProcessingEnvironment processingEnvironment)
public void pushStackForBody(MappingSourceNode node, SourceNodeVars vars)
public void pushStackForChild(MappingSourceNode node, SourceNodeVars vars)
public fr.xebia.extras.selma.codegen.MapperGeneratorContext.StackElem popStack()
public void warn(String s, ExecutableElement element)
public void mappingMethod(InOutType inOutType, String name)
inOutType - name - public String mappingMethod(InOutType inOutType)
inOutType - public boolean hasMappingMethods()
public MapperGeneratorContext.MappingMethod popMappingMethod()
public Elements elements()
public void setNewParams(String newParams)
public String newParams()
public int getSourcesCount()
public TypeElement getTypeElement(String classe)
public void setSources(List<TypeElement> _sources)
public List<TypeElement> sources()
Copyright © 2016. All Rights Reserved.