Examples of OperationCall


Examples of org.jresearch.flexess.models.expression.OperationCall

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @see org.jresearch.flexess.models.expression.OperationCall#getOperationName()
   */
  public void testGetOperationName() {
    OperationCall call = getFixture();
    EOperation operation = StdLib.OR;   
    String operationName = operation.getName();     
    call.setOperation(operation);   
    assertEquals( operationName,  call.getOperationName());

  }
View Full Code Here

Examples of org.jresearch.flexess.models.expression.OperationCall

    result.setValue(value);
    return result;
  }
 
  public static OperationCall createOperationCall(Expression source, EOperation operation, List<? extends Expression> args) {
    OperationCall result = ExpressionFactory.eINSTANCE.createOperationCall();
    result.setOperation(operation);
    result.setSource(source);
    result.getArguments().addAll(args);
    return result;
 
View Full Code Here

Examples of org.jresearch.flexess.models.expression.OperationCall

   
    // For all types
    for(EDataType type : typesAndValues.keySet()){
     
      // Test a = a           
      OperationCall call = createEqOperation(type, true, false);
      assertTrue(tested.eq(ExpressionUtils.getLeftArg(call), ExpressionUtils.getRightArg(call)));
      call = createEqOperation(type, true, true);
      assertTrue(tested.eq(ExpressionUtils.getLeftArg(call), ExpressionUtils.getRightArg(call)));
     
//       Test a != b           
View Full Code Here

Examples of org.jresearch.flexess.models.expression.OperationCall

   
    // For all types
    for(EDataType type : typesAndValues.keySet()){
     
      // Test a != b = true           
      OperationCall call = createNeqOperation(type, true, false);
      assertTrue(tested.notEq(ExpressionUtils.getLeftArg(call), ExpressionUtils.getRightArg(call)));
      call = createNeqOperation(type, true, true);
      assertTrue(tested.notEq(ExpressionUtils.getLeftArg(call), ExpressionUtils.getRightArg(call)));
     
      // Test a == b = false           
View Full Code Here

Examples of org.jresearch.flexess.models.expression.OperationCall

   
    Boolean result = null;   
    for(Object arg : args ){     
      boolean iterationResult; 
      if ( arg instanceof OperationCall){
        OperationCall call = (OperationCall)arg;       
        if (ExpressionUtils.isBoolean(call)){
          if (ExpressionUtils.isAnd(call)){
            iterationResult = and(call.getArguments());
          }else if (ExpressionUtils.isOr(call)){
            iterationResult = or(call.getArguments());
          }else{
            continue;
          }
        }else if (ExpressionUtils.isBinary(call)){
          Expression leftArg = ExpressionUtils.getLeftArg(call);
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.