There are two source classes A and B
class A {
public Double x;
public Double y;
}
class B {
public Double x;
public Double y;
}
and another target class C
class C {
public Double x;
public Double y;
}
It is clear how to map A to C or B to C.
Is it possible to map some function, for example, addition or pow of source objects to the target one so that the generated code will look like this
C.x = A.x + B.x
C.y = A.y + B.y
or
C.x = Math.pow(A.x, B.x)
C.y = Math.pow(A.y, B.y)