oTCGOCLExpression.setClassification(classifyOCLExpression(oPropExp, in_sOCLTypeId));
}
else if(in_oExpression instanceof OperationCallExp)
{
// TODO un�re Operationen einf�hren?
OperationCallExp oOpExp = (OperationCallExp)in_oExpression;
TCGOCLOperation oOperation = GeneratedFactory.eINSTANCE.createTCGOCLOperation();
// operation call on the context class
if(oOpExp.getSource() != null &&
oOpExp.getSource().getName() != null &&
oOpExp.getSource().getName().equals("self")) {
// TODO ...
}
else {
OCLExpression oOCLLeftExpression = (OCLExpression)oOpExp.getSource();
if(oOCLLeftExpression != null)
oOperation.setLeft(
transformExpression(oOCLLeftExpression, in_sOCLTypeId,
oContextClass, oContextClass));
if(oOpExp.getArgument().size() > 0)
oOperation.setRight(
transformExpression((OCLExpression)oOpExp.getArgument().get(0),
in_sOCLTypeId, oContextClass, oContextClass));
}
oOperation.setOperation((EObject)oOpExp.getReferredOperation());
oOperation.setOperationName(oOpExp.getReferredOperation().getName());
oTCGOCLExpression = oOperation;
}
else if(in_oExpression instanceof IfExp)
{
TCGOCLIfThenElse oTCGIfExp = GeneratedFactory.eINSTANCE.createTCGOCLIfThenElse();