Package no.hal.jex.jextest.jexTest

Examples of no.hal.jex.jextest.jexTest.Instance


   * <!-- end-user-doc -->
   * @generated
   */
  public void setInstance(Instance newInstance)
  {
    Instance oldInstance = instance;
    instance = newInstance;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, JexTestPackage.OBJECT_TEST__INSTANCE, oldInstance, instance));
  }
View Full Code Here


      final PropertiesTestOwner propertiesTestOwner = this.<PropertiesTestOwner>ancestor(eObject, PropertiesTestOwner.class);
      if ((propertiesTestOwner instanceof StateFunction)) {
        return XbaseScopeProvider.IT.toString();
      } else {
        if ((propertiesTestOwner instanceof ObjectTest)) {
          final Instance instance = ((ObjectTest) propertiesTestOwner).getInstance();
          boolean _notEquals = (!Objects.equal(instance, null));
          if (_notEquals) {
            return instance.getName();
          }
        }
      }
      JexTestCase _ancestor = this.<JexTestCase>ancestor(eObject, JexTestCase.class);
      final EList<Instance> instances = _ancestor.getInstances();
      String _xifexpression = null;
      boolean _isEmpty = instances.isEmpty();
      if (_isEmpty) {
        String _defaultInstanceName = this.defaultInstanceName(eObject);
        _xifexpression = _defaultInstanceName;
      } else {
        String _xifexpression_1 = null;
        int _size = instances.size();
        boolean _equals = (_size == 1);
        if (_equals) {
          Instance _head = IterableExtensions.<Instance>head(instances);
          String _name = _head.getName();
          _xifexpression_1 = _name;
        } else {
          _xifexpression_1 = null;
        }
        _xifexpression = _xifexpression_1;
View Full Code Here

          _elvis = ObjectExtensions.<JvmParameterizedTypeReference>operator_elvis(_type, _defaultInstanceType);
        }
        return _elvis;
      } else {
        if ((propertiesTestOwner instanceof ObjectTest)) {
          final Instance instance = ((ObjectTest) propertiesTestOwner).getInstance();
          boolean _notEquals = (!Objects.equal(instance, null));
          if (_notEquals) {
            return this.jvmType(instance);
          }
        }
      }
      JexTestCase _ancestor = this.<JexTestCase>ancestor(eObject, JexTestCase.class);
      final EList<Instance> instances = _ancestor.getInstances();
      JvmTypeReference _xifexpression = null;
      boolean _isEmpty = instances.isEmpty();
      if (_isEmpty) {
        JvmParameterizedTypeReference _defaultInstanceType_1 = this.defaultInstanceType(eObject);
        _xifexpression = _defaultInstanceType_1;
      } else {
        JvmTypeReference _xifexpression_1 = null;
        int _size = instances.size();
        boolean _equals = (_size == 1);
        if (_equals) {
          Instance _head = IterableExtensions.<Instance>head(instances);
          JvmTypeReference _jvmType = this.jvmType(_head);
          _xifexpression_1 = _jvmType;
        } else {
          _xifexpression_1 = null;
        }
View Full Code Here

TOP

Related Classes of no.hal.jex.jextest.jexTest.Instance

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.