Order

OrderBuilder subclass to hide some implementation details of OrderBuilder to coko users.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun add(op: Op): OrderNode

Add an Op to the userDefinedOps.

fun add(fragment: OrderFragment): OrderNode

Add an OrderFragment to the orderNodes. All instances of the fragment object are removed from the list before the OrderNode from fragment is added.

fun add(token: OrderToken): OrderNode

Add an OrderToken to the orderNodes

Link copied to clipboard
fun OrderBuilder.group(vararg tokens: OrderToken): OrderNode

Minimalist way to create a group with a function call. However, this minimalist group constructor only works with OrderTokens

Link copied to clipboard

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

Link copied to clipboard
fun remove(fragment: OrderFragment)

Remove all instance of fragment from the orderNodes

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

Represent this OrderFragment as a binary syntax tree.

Link copied to clipboard
operator fun Op.unaryMinus(): OrderNode

Add an Op to the userDefinedOps

Add an OrderToken to the orderNodes