public class MethodReference extends MappingMethod implements Assignment
new operator).Assignment.AssignmentTypeWritable.Context| Constructor and Description | 
|---|
| MethodReference(BuiltInMethod method,
               ConversionContext contextParam) | 
| MethodReference(Method method,
               MapperReference declaringMapper,
               Type targetType)Creates a new reference to the given method. | 
| Modifier and Type | Method and Description | 
|---|---|
| Assignment | getAssignment() | 
| String | getContextParam() | 
| MapperReference | getDeclaringMapper() | 
| Type | getDefiningType() | 
| 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() | 
| Type | getSingleSourceParameterType() | 
| String | getSourceReference()the source reference being a source-getter, a constant, etc. | 
| List<Type> | getThrownTypes()returns all types exception types thrown by this assignment. | 
| Assignment.AssignmentType | getType()Returns whether the type of assignment | 
| boolean | isUpdateMethod() | 
| void | setAssignment(Assignment assignment)An assignment in itself can wrap another assignment. | 
getAccessibility, getAfterMappingReferences, getBeforeMappingReferencesWithMappingTarget, getBeforeMappingReferencesWithoutMappingTarget, getName, getParameterNames, getParameters, getResultName, getResultType, getReturnType, getSourceParameters, isExistingInstanceMapping, isStatic, toStringwritegetTemplateName, getTemplateNameForClasspublic MethodReference(Method 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 Assignment getAssignment()
public void setAssignment(Assignment assignment)
AssignmentsetAssignment in interface Assignmentassignment - the assignment to setpublic String getSourceReference()
AssignmentgetSourceReference in interface Assignmentpublic Type getSingleSourceParameterType()
@TargetType parameterpublic Type getDefiningType()
public 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 List<Type> getThrownTypes()
AssignmentgetThrownTypes in interface AssignmentgetThrownTypes in class MappingMethodpublic Assignment.AssignmentType getType()
AssignmentgetType in interface AssignmentAssignment.AssignmentTypepublic boolean isUpdateMethod()
isUpdateMethod in interface AssignmentCopyright © 2012-2015 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.