ConditionParser

Interface for parsing conditional expressions into Condition instances.

A ConditionParser is responsible for interpreting text patterns that match a certain syntax, converting them into corresponding Condition objects which can then be evaluated against specific versions.

Inheritors

Properties

Link copied to clipboard

The separator used to split the OR segments of a constraint expression.

Link copied to clipboard
abstract val regex: Regex

A regular expression used for parsing and matching conditional expressions. It serves as a pattern to identify and extract components from the input string that conform to the expected condition syntax, enabling the creation of valid Condition objects.

Functions

Link copied to clipboard
abstract fun parseCondition(match: MatchResult): Condition

Parses the given MatchResult into a corresponding Condition instance.