Examples of XBinaryOperation


Examples of org.eclipse.xtext.xbase.XBinaryOperation

      } else {
        JvmIdentifiableElement _feature = ((XBinaryOperation) expr).getFeature();
        _and_1 = ((expr instanceof XBinaryOperation) && (_feature instanceof JvmOperation));
      }
      if (_and_1) {
        final XBinaryOperation binOp = ((XBinaryOperation) expr);
        JvmIdentifiableElement _feature_1 = binOp.getFeature();
        final JvmOperation feature = ((JvmOperation) _feature_1);
        JvmDeclaredType _declaringType = feature.getDeclaringType();
        final String typeName = _declaringType.getQualifiedName();
        boolean _and_2 = false;
        boolean _startsWith = typeName.startsWith("org.eclipse.xtext.xbase.lib.");
        if (!_startsWith) {
          _and_2 = false;
        } else {
          boolean _endsWith = typeName.endsWith("Extensions");
          _and_2 = (_startsWith && _endsWith);
        }
        if (_and_2) {
          String _simpleName = feature.getSimpleName();
          final String _switchValue = _simpleName;
          boolean _matched = false;
          if (!_matched) {
            if (Objects.equal(_switchValue,"operator_equals")) {
              _matched=true;
              assertMethodName = "assertEquals";
              XExpression _rightOperand = binOp.getRightOperand();
              XExpression _leftOperand = binOp.getLeftOperand();
              exprs = Collections.<XExpression>unmodifiableList(Lists.<XExpression>newArrayList(_rightOperand, _leftOperand));
            }
          }
          if (!_matched) {
            if (Objects.equal(_switchValue,"operator_tripleEquals")) {
              _matched=true;
              assertMethodName = "assertEquals";
              XExpression _rightOperand_1 = binOp.getRightOperand();
              XExpression _leftOperand_1 = binOp.getLeftOperand();
              exprs = Collections.<XExpression>unmodifiableList(Lists.<XExpression>newArrayList(_rightOperand_1, _leftOperand_1));
            }
          }
        }
      }
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.