Package no.hal.jex.jextest.jexTest

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


   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetState(State newState, NotificationChain msgs)
  {
    State oldState = state;
    state = newState;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JexTestPackage.TRANSITION_TARGET_EFFECT__STATE, oldState, newState);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here


   * <!-- end-user-doc -->
   * @generated
   */
  public void setStateRef(State newStateRef)
  {
    State oldStateRef = stateRef;
    stateRef = newStateRef;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, JexTestPackage.TRANSITION_TARGET_EFFECT__STATE_REF, oldStateRef, stateRef));
  }
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetState(State newState, NotificationChain msgs)
  {
    State oldState = state;
    state = newState;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JexTestPackage.TRANSITION_SOURCE__STATE, oldState, newState);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public void setStateRef(State newStateRef)
  {
    State oldStateRef = stateRef;
    stateRef = newStateRef;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, JexTestPackage.TRANSITION_SOURCE__STATE_REF, oldStateRef, stateRef));
  }
View Full Code Here

                boolean _notEquals_3 = (!Objects.equal(_source, null));
                if (!_notEquals_3) {
                  _and = false;
                } else {
                  TransitionSource _source_1 = transition.getSource();
                  State _state = _source_1.getState();
                  boolean _notEquals_4 = (!Objects.equal(_state, null));
                  _and = (_notEquals_3 && _notEquals_4);
                }
                if (_and) {
                  TransitionSource _source_2 = transition.getSource();
                  State _state_1 = _source_2.getState();
                  JexTestJvmModelInferrer.this.inferStateTestMethods(sequence_1, _state_1, jvmClass);
                }
                EList<TransitionAction> _actions = transition.getActions();
                Iterable<TransitionExpressionAction> _filter = Iterables.<TransitionExpressionAction>filter(_actions, TransitionExpressionAction.class);
                for (final TransitionExpressionAction action : _filter) {
                  {
                    EList<JvmMember> _members_6 = it.getMembers();
                    JvmOperation _inferActionMethod = JexTestJvmModelInferrer.this.inferActionMethod(sequence_1, action);
                    JexTestJvmModelInferrer.this._jvmTypesBuilder.<JvmOperation>operator_add(_members_6, _inferActionMethod);
                    XExpression _times = action.getTimes();
                    boolean _notEquals_5 = (!Objects.equal(_times, null));
                    if (_notEquals_5) {
                      EList<JvmMember> _members_7 = it.getMembers();
                      XExpression _times_1 = action.getTimes();
                      JvmOperation _inferTestHelperMethod = JexTestJvmModelInferrer.this.inferTestHelperMethod(sequence_1, "_transition_exprAction_times_", action, _times_1, null);
                      JexTestJvmModelInferrer.this._jvmTypesBuilder.<JvmOperation>operator_add(_members_7, _inferTestHelperMethod);
                    }
                  }
                }
                TransitionEffect _effect = transition.getEffect();
                if ((_effect instanceof TransitionTargetEffect)) {
                  TransitionEffect _effect_1 = transition.getEffect();
                  final TransitionTargetEffect targetEffect = ((TransitionTargetEffect) _effect_1);
                  State _state_2 = targetEffect.getState();
                  boolean _notEquals_5 = (!Objects.equal(_state_2, null));
                  if (_notEquals_5) {
                    State _state_3 = targetEffect.getState();
                    JexTestJvmModelInferrer.this.inferStateTestMethods(sequence_1, _state_3, jvmClass);
                  }
                }
              }
            }
View Full Code Here

  }
 
  public ITreeAppendable generateStateTesterCall(final State state, final State stateRef, final ITreeAppendable appendable) {
    ITreeAppendable _xblockexpression = null;
    {
      State theState = state;
      boolean _equals = Objects.equal(theState, null);
      if (_equals) {
        theState = stateRef;
      }
      ITreeAppendable _xifexpression = null;
View Full Code Here

  public void generateTransition(final Transition transition, final ITreeAppendable appendable) {
    TransitionSource _source = transition.getSource();
    boolean _notEquals = (!Objects.equal(_source, null));
    if (_notEquals) {
      TransitionSource _source_1 = transition.getSource();
      State _state = _source_1.getState();
      TransitionSource _source_2 = transition.getSource();
      State _stateRef = _source_2.getStateRef();
      this.generateStateTesterCall(_state, _stateRef, appendable);
    }
    TransitionEffect _effect = transition.getEffect();
    this.generateTransitionActionsEffect(_effect, transition, appendable);
  }
View Full Code Here

    }
  }
 
  protected void _generateTransitionActionsEffect(final TransitionTargetEffect effect, final Transition transition, final ITreeAppendable appendable) {
    this._generateTransitionActionsEffect(((TransitionEffect) effect), transition, appendable);
    State _state = effect.getState();
    State _stateRef = effect.getStateRef();
    this.generateStateTesterCall(_state, _stateRef, appendable);
  }
View Full Code Here

TOP

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

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.