Convert an event to its optional corresponding stack value.
Convert an event to its optional corresponding stack value.
An event
None
if isPush(event) == false
, otherwise a Some
with
the corresponding stack value
Test if the event is one that will cause a "pop" from the context stack.
Test if the event is one that will cause a "pop" from the context stack.
An event
true
if the event would cause a "pop" from the context stack.
Test if the event is one that will cause a "push" to the context stack.
Test if the event is one that will cause a "push" to the context stack.
An event
true
if the event would cause a "push" to the context stack.
Signals where a context change (if any) should happen relative to handling the event.
Signals where a context change (if any) should happen relative to handling the event. This allows a splitter to decide to include or exclude the stack-changing event in its context.
Returning a negative number signifies the context change should happen *before* handling the event, which would cause the event to become part of the new, changed context.
Returning a positive number (or 0) signifies the context change should happen *after* handling the event, which would cause the event to be excluded from the new context.
Returning 0 should be reserved for events that are neither a pop nor a push.
(stackable: StringAdd).self
(stackable: StringFormat).self
(stackable: ArrowAssoc[Stackable[E]]).x
(Since version 2.10.0) Use leftOfArrow
instead
(stackable: Ensuring[Stackable[E]]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
Generalization for event types that can be interpreted as a "push" or "pop" to a stack. For example,
XMLEvent
hasStartElement
andEndElement
subclasses which can be treated as "push" and "pop" respectively.