Package-level declarations

Types

Link copied to clipboard
data class ArgumentItem<E>(val op: Op, val index: Int, val transformation: (BackendDataItem) -> TransformationResult<E, String> = { TransformationResult.failure("No transformation given from user") }) : CanChangeTransformation<E>

Represents the argument at index given to the function call represented by op.

Link copied to clipboard
interface BackendDataItem

Interface for accessing info about a DataItem from the CokoBackend

Link copied to clipboard

A ConditionComponent that has two children and a operator

Link copied to clipboard

A BinaryConditionComponent that logically combines left and right based on operator (e.g. logical and)

Link copied to clipboard
sealed interface BinaryOperatorName
Link copied to clipboard

A ConditionComponent that represents a function call

Link copied to clipboard
sealed interface CanChangeTransformation<E> : DataItem<E>

Adds an infix function withTransformation to a DataItem.

Link copied to clipboard

A BinaryConditionComponent that compares left and right based on operator (e.g. equality or less than)

Link copied to clipboard

ConditionNode that can have children

Link copied to clipboard
sealed interface ConditionLeaf : ConditionNode

ConditionNode that does not have children

Link copied to clipboard
sealed interface ConditionNode
Link copied to clipboard
class ContainsConditionComponent<E, T>(val item: DataItem<E>, val collection: Collection<T>) : ConditionComponent

A ConditionComponent that represents the condition that the value of item should be in collection

Link copied to clipboard
sealed interface DataItem<E> : ConditionLeaf

Represents a data item such as a variable or literal.

Link copied to clipboard
class Definition(val fqn: String)

Represents the definitions of a function with the fully qualified name fqn.

Link copied to clipboard
typealias Parameter = Any?

Represents a parameter in the Signature

Link copied to clipboard

Represents a group of parameters that all belong to the same index

Link copied to clipboard
data class ReturnValueItem<E>(val op: Op, val transformation: (BackendDataItem) -> TransformationResult<E, String> = { TransformationResult.failure("No transformation given from user") }) : CanChangeTransformation<E>

Represents the data item that a function call represented by op returns.

Link copied to clipboard
class Signature

Represents a signature of a function.

Link copied to clipboard

A ConditionComponent that has one child, conditionNode, and a operator (e.g. negation)

Link copied to clipboard
Link copied to clipboard
data class Value<E> : DataItem<E>

A wrapper class for value to make it a DataItem.

Functions

Link copied to clipboard
fun <E> value(value: E): DataItem<E>
fun <E> value(value: DataItem<E>): DataItem<E>