QuantifierOrderNode

data class QuantifierOrderNode(val child: OrderNode, val type: OrderQuantifier, val value: Any? = null) : OrderNode(source)

Represents a regex quantifier like: '*', '?', etc.

Constructors

Link copied to clipboard
constructor(child: OrderNode, type: OrderQuantifier, value: Any? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val value: Any? = null

Functions

Link copied to clipboard
open fun applyToAll(block: OrderNode.() -> Unit)

Apply the given block to each OrderNode in this OrderNode. Uses Depth First Search (DFS).

Link copied to clipboard

Adds an alternation token (|) between the current OrderFragment and other. All OrderToken are converted into OrderFragments.

Link copied to clipboard
open override fun toNode(): OrderNode

Convert this OrderNode to a binary syntax tree