execute

fun execute(initialContext: StyleRuleContext, classifier: String, injector: (StyleRuleContext) -> Unit): StyleRuleContext

Using the machine state recorded in the initial context, run the associated rule until leaves the RUNNING state.

Return

The context after leaving the RUNNING state.

Parameters

initialContext

The initial context. Must be in the RUNNING state.

classifier

The interned style classifier, which is possibly the special end-of-sequence classifier. Non-interned classifiers will not match literals correctly, because identity checks, not value checks, are used for efficiency!

injector

How to inject a forked context into the pool of pending contexts.