FunctionalExpressionAlgebra

abstract class FunctionalExpressionAlgebra<T, out A : Algebra<T>>(algebra: A) : ExpressionAlgebra<T, Expression<T>>

A context class for Expression construction.

Parameters

algebra

The algebra to provide for Expressions built.

Constructors

FunctionalExpressionAlgebra
Link copied to clipboard
common
fun <out A : Algebra<T>> FunctionalExpressionAlgebra(algebra: A)
The algebra to provide for Expressions built.

Functions

binaryOperation
Link copied to clipboard
common
open fun binaryOperation(operation: String, left: Expression<T>, right: Expression<T>): Expression<T>
Dynamically invokes a binary operation with the certain name.
binaryOperationFunction
Link copied to clipboard
common
open override fun binaryOperationFunction(operation: String): (left: Expression<T>, right: Expression<T>) -> Expression<T>
Dynamically dispatches a binary operation with the certain name.
bindSymbol
Link copied to clipboard
common
open fun bindSymbol(value: String): Expression<T>
The same as bindSymbolOrNull but throws an error if symbol could not be bound
bindSymbolOrNull
Link copied to clipboard
common
open override fun bindSymbolOrNull(value: String): Expression<T>?
Builds an Expression to access a variable.
const
Link copied to clipboard
common
open override fun const(value: T): Expression<T>
Builds an Expression of constant expression that does not depend on arguments.
unaryOperation
Link copied to clipboard
common
open fun unaryOperation(operation: String, arg: Expression<T>): Expression<T>
Dynamically invokes a unary operation with the certain name.
unaryOperationFunction
Link copied to clipboard
common
open override fun unaryOperationFunction(operation: String): (arg: Expression<T>) -> Expression<T>
Dynamically dispatches a unary operation with the certain name.

Properties

algebra
Link copied to clipboard
common
val algebra: A
The algebra to provide for Expressions built.

Inheritors

FunctionalExpressionGroup
Link copied to clipboard

Sources

common source
Link copied to clipboard