Package org.eclipse.ocl.uml

Examples of org.eclipse.ocl.uml.IntegerLiteralExp


        result.append("1");
      else
        result.append("0");
    }
    else if (tcgOCLAtomConstraint.getElement() instanceof IntegerLiteralExp) {
      IntegerLiteralExp oIntExp = (IntegerLiteralExp) tcgOCLAtomConstraint.getElement();
      result.append(oIntExp.getIntegerSymbol());
    }     

    return result.toString();
  }
View Full Code Here


        oAtom.setElement(oBooleanExp);
        oTCGOCLExpression = oAtom;
        oTCGOCLExpression.setClassification(VariableClassification.INDEPENDENT);
      }
      else if(in_oExpression instanceof IntegerLiteralExp) {
        IntegerLiteralExp oIntegerExp = (IntegerLiteralExp)in_oExpression;
        TCGOCLAtom oAtom = GeneratedFactory.eINSTANCE.createTCGOCLAtom();
        oAtom.setElement(oIntegerExp);
        oTCGOCLExpression = oAtom;
        oTCGOCLExpression.setClassification(VariableClassification.INDEPENDENT);       
      }
View Full Code Here

    else if(tcgOCLAtomConstraint.getElement() instanceof BooleanLiteralExp){
      BooleanLiteralExp oBoolExp = (BooleanLiteralExp) tcgOCLAtomConstraint.getElement();
      result.append(oBoolExp.getBooleanSymbol());
    }
    else if (tcgOCLAtomConstraint.getElement() instanceof IntegerLiteralExp) {
      IntegerLiteralExp oIntExp = (IntegerLiteralExp) tcgOCLAtomConstraint.getElement();
      result.append(oIntExp.getIntegerSymbol());
    }     

    return result.toString();
  }
View Full Code Here

      if (oPropExp.getElement() instanceof EReferenceImpl) {
        EReferenceImpl oRef = (EReferenceImpl) oPropExp.getElement();
        return Integer.valueOf(oRef.getDefaultValueLiteral());
      }
      if (oPropExp.getElement() instanceof IntegerLiteralExp) {
        IntegerLiteralExp oIntExp = (IntegerLiteralExp) oPropExp.getElement();
        return oIntExp.getIntegerSymbol();
      }     
    } else if (in_oTCGOCLExpression instanceof TCGOCLOperation) {
      TCGOCLOperation oOpExp = (TCGOCLOperation) in_oTCGOCLExpression;
      if (oOpExp.getOperationName().compareTo("+") == 0) {
        return getIntegerValue(oOpExp.getLeft()) + getIntegerValue(oOpExp.getRight());
View Full Code Here

    if(in_oLiteralExp instanceof EnumLiteralExp){
      EnumLiteralExp oExp = (EnumLiteralExp)in_oLiteralExp;
      return TestCaseGraphHelper.getFullEnumerationLiteralName(oExp.getReferredEnumLiteral());
    }
    else if(in_oLiteralExp instanceof IntegerLiteralExp) {
      IntegerLiteralExp oExp = (IntegerLiteralExp)in_oLiteralExp;
      return oExp.getIntegerSymbol().toString();     
    }
    else if(in_oLiteralExp instanceof BooleanLiteralExp) {
      BooleanLiteralExp oExp = (BooleanLiteralExp)in_oLiteralExp;
      return oExp.getBooleanSymbol().toString();     
    }
    return "";
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ocl.uml.IntegerLiteralExp

Copyright © 2018 www.massapicom. 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.