PreProcessingConditionParser

An interface extending ConditionParser, designed for parsing and preprocessing constraints in conditional expressions.

This parser provides an additional layer of preprocessing to normalize constraint strings before parsing them into Condition instances. It is typically used when the raw input requires adjustments to conform to a specific syntactical format expected by the ConditionParser.

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.

Link copied to clipboard
abstract fun preProcessConstraint(constraint: String): String

Preprocesses the given constraint string to normalize it for further parsing.