Examples of OperationCallExp


Examples of fr.tm.elibel.smartqvt.qvt.essentialocl.OperationCallExp

      res = QVTEditorUtilities.stringOfTypedElement((Variable) modelObj, type);
      if ((Variable) modelObj instanceof VarParameter)
        res = ((VarParameter)modelObj).getKind().getLiteral() + " " + res;
    }
    if (modelObj instanceof OperationCallExp) {
      OperationCallExp ope = (OperationCallExp) modelObj;
      if ((ope.getReferredOperation() != null)
          && ("T".equals(ope.getReferredOperation().getType()
              .getName()))) {
        type = ope.getSource().getType();
        if (type instanceof CollectionType) {
          Type elemType = ((CollectionType) type).getElementType();
          if (elemType != null)
            type = elemType;
        }
      }
      modelObj = ope.getReferredOperation();
    }
    if (modelObj instanceof Operation) {
      Operation op = (Operation) modelObj;
      res = op.getClass().getSimpleName() + "<br>";
View Full Code Here

Examples of org.eclipse.ocl.uml.OperationCallExp

        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();
View Full Code Here

Examples of org.eclipse.ocl.uml.OperationCallExp

        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();
        OCLExpression oOCLLeftExpression = (OCLExpression)oOpExp.getSource();
        if(oOCLLeftExpression != null)
          oOperation.setLeft(
              transformExpression(oOCLLeftExpression, in_sOCLTypeId, oContextClass));
        if(oOpExp.getArgument().size() > 0)
          oOperation.setRight(
              transformExpression((OCLExpression)oOpExp.getArgument().get(0), in_sOCLTypeId, oContextClass));
        oOperation.setOperation((EObject)oOpExp.getReferredOperation());
        oOperation.setOperationName(oOpExp.getReferredOperation().getName());
        oTCGOCLExpression = oOperation;
      }
      else if(in_oExpression instanceof IfExp)
      {
        TCGOCLIfThenElse oTCGIfExp = GeneratedFactory.eINSTANCE.createTCGOCLIfThenElse();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.