public abstract class MappingMethod extends ModelElement
Mapper
class.Writable.Context
Modifier | Constructor and Description |
---|---|
protected |
MappingMethod(Method method) |
protected |
MappingMethod(Method method,
Collection<String> existingVariableNames,
List<LifecycleCallbackMethodReference> beforeMappingReferences,
List<LifecycleCallbackMethodReference> afterMappingReferences)
constructor to be overloaded when local variable names are required prior to calling this constructor.
|
protected |
MappingMethod(Method method,
List<LifecycleCallbackMethodReference> beforeMappingReferences,
List<LifecycleCallbackMethodReference> afterMappingReferences) |
Modifier and Type | Method and Description |
---|---|
Accessibility |
getAccessibility() |
List<LifecycleCallbackMethodReference> |
getAfterMappingReferences() |
List<LifecycleCallbackMethodReference> |
getBeforeMappingReferencesWithMappingTarget() |
List<LifecycleCallbackMethodReference> |
getBeforeMappingReferencesWithoutMappingTarget() |
Set<Type> |
getImportTypes()
Returns a set containing those
Type s referenced by this model element for which an import statement needs
to be declared. |
String |
getName() |
protected List<String> |
getParameterNames() |
List<Parameter> |
getParameters() |
String |
getResultName() |
Type |
getResultType() |
Type |
getReturnType() |
List<Parameter> |
getSourceParameters() |
List<Type> |
getThrownTypes() |
boolean |
isExistingInstanceMapping() |
boolean |
isStatic() |
String |
toString() |
write
getTemplateName, getTemplateNameForClass
protected MappingMethod(Method method, Collection<String> existingVariableNames, List<LifecycleCallbackMethodReference> beforeMappingReferences, List<LifecycleCallbackMethodReference> afterMappingReferences)
method
- the method for which this mapping is applicableexistingVariableNames
- set of already assigned variable namesbeforeMappingReferences
- all life cycle methods to be called prior to carrying out mappingafterMappingReferences
- all life cycle methods to be called after carrying out mappingprotected MappingMethod(Method method)
protected MappingMethod(Method method, List<LifecycleCallbackMethodReference> beforeMappingReferences, List<LifecycleCallbackMethodReference> afterMappingReferences)
public String getName()
public Type getResultType()
public String getResultName()
public Type getReturnType()
public Accessibility getAccessibility()
public boolean isExistingInstanceMapping()
public boolean isStatic()
public Set<Type> getImportTypes()
ModelElement
Type
s referenced by this model element for which an import statement needs
to be declared.getImportTypes
in class ModelElement
null
.public List<LifecycleCallbackMethodReference> getAfterMappingReferences()
public List<LifecycleCallbackMethodReference> getBeforeMappingReferencesWithMappingTarget()
public List<LifecycleCallbackMethodReference> getBeforeMappingReferencesWithoutMappingTarget()
Copyright © 2012-2016 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.