public class MethodReference extends MappingMethod implements Assignment, FactoryMethod
MappingMethod.Assignment.AssignmentTypeWritable.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 |
|---|---|
Assignment |
getAssignment() |
java.lang.String |
getContextParam() |
MapperReference |
getDeclaringMapper() |
java.util.List<Type> |
getExceptionTypes()
returns all types exception types thrown by this assignment.
|
java.util.Set<Type> |
getImportTypes()
Returns a set containing those
Types referenced by this model element for which an import statement needs
to be declared. |
java.lang.String |
getMapperVariableName() |
Type |
getSingleSourceParameterType() |
java.lang.String |
getSourceReference()
the source reference being a source-getter, a constant, etc.
|
Assignment.AssignmentType |
getType()
Returns whether the type of assignment
|
void |
setAssignment(Assignment assignment)
An assignment in itself can wrap another assignment.
|
getAccessibility, getName, getParameterNames, getParameters, getResultName, getResultType, getReturnType, getSourceParameters, getThrownTypes, 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 java.lang.String getMapperVariableName()
public java.lang.String getContextParam()
public Assignment getAssignment()
public void setAssignment(Assignment assignment)
AssignmentsetAssignment in interface Assignmentpublic java.lang.String getSourceReference()
AssignmentgetSourceReference in interface Assignmentpublic Type getSingleSourceParameterType()
@TargetType parameterpublic java.util.Set<Type> getImportTypes()
ModelElementTypes referenced by this model element for which an import statement needs
to be declared.getImportTypes in interface AssignmentgetImportTypes in class MappingMethodnull.public java.util.List<Type> getExceptionTypes()
AssignmentgetExceptionTypes in interface AssignmentgetExceptionTypes in interface FactoryMethodpublic Assignment.AssignmentType getType()
AssignmentgetType in interface AssignmentAssignment.AssignmentTypeCopyright © 2012-2014. All Rights Reserved.