Lines Matching refs:checkCondition
661 $this->checkCondition($state->epsilonOnlyTransitions || $state->getNumberOfTransitions() <= 1);
665 $this->checkCondition($state->loopBackState !== null);
670 $this->checkCondition($state->loopBackState !== null);
671 $this->checkCondition($state->getNumberOfTransitions() === 2);
674 $this->checkCondition($state->getTransition(1)->target instanceof LoopEndState);
675 $this->checkCondition(!$state->nonGreedy);
677 $this->checkCondition($state->getTransition(1)->target instanceof StarBlockStartState);
678 $this->checkCondition($state->nonGreedy);
686 $this->checkCondition($state->getNumberOfTransitions() === 1);
687 $this->checkCondition($state->getTransition(0)->target instanceof StarLoopEntryState);
692 $this->checkCondition($state->loopBackState !== null);
697 $this->checkCondition($state->stopState !== null);
702 $this->checkCondition($state->endState !== null);
707 $this->checkCondition($state->startState !== null);
712 $this->checkCondition($state->getNumberOfTransitions() <= 1 || $state->decision >= 0);
717 $this->checkCondition($state->getNumberOfTransitions() <= 1 || $state instanceof RuleStopState);
722 private function checkCondition(?bool $condition, $message = 'IllegalState') : void