public class MethodReference extends MappingMethod
MappingMethod.Writable.Context| Constructor and Description |
|---|
MethodReference(BuiltInMethod method,
ConversionContext contextParam) |
MethodReference(SourceMethod method,
MapperReference declaringMapper,
Type targetType)
Creates a new reference to the given method.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContextParam() |
MapperReference |
getDeclaringMapper() |
Set<Type> |
getImportTypes()
Returns a set containing those
Types referenced by this model element for which an import statement needs
to be declared. |
String |
getMapperVariableName() |
MethodReference |
getMethodRefChild() |
Type |
getSingleSourceParameterType() |
void |
setMethodRefChild(MethodReference methodRefChild) |
getAccessibility, getName, getParameterNames, getParameters, getResultName, getResultType, getReturnType, getSourceParameters, isExistingInstanceMapping, toStringwritegetTemplateNamepublic MethodReference(SourceMethod method, MapperReference declaringMapper, Type targetType)
method - the target method of the referencedeclaringMapper - the method declaring the mapper; null if the current mapper itselftargetType - in case the referenced method has a parameter for passing the target type, the given
target type, otherwise nullpublic MethodReference(BuiltInMethod method, ConversionContext contextParam)
public MapperReference getDeclaringMapper()
public String getMapperVariableName()
public String getContextParam()
public Type getSingleSourceParameterType()
@TargetType parameterpublic void setMethodRefChild(MethodReference methodRefChild)
public MethodReference getMethodRefChild()
public Set<Type> getImportTypes()
ModelElementTypes referenced by this model element for which an import statement needs
to be declared.getImportTypes in class MappingMethodnull.Copyright © 2012-2014. All Rights Reserved.