BooleanExpression
A boolean expression
Parameters
T
the type of the variable elements. This allows representing BooleanExpression that only contain variables and other that may also contain possibleTypes
Types
Link copied to clipboard
data class And<T : Any>(val operands: Set<BooleanExpression<T>>) : BooleanExpression<T>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class Not<out T : Any>(val operand: BooleanExpression<T>) : BooleanExpression<T>
Content copied to clipboard
Link copied to clipboard
data class Or<T : Any>(val operands: Set<BooleanExpression<T>>) : BooleanExpression<T>
Content copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
This is not super well defined but works well enough for our simple use cases
Inheritors
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Extensions
Link copied to clipboard
fun <T : Any> BooleanExpression<T>.and(vararg other: BooleanExpression<T>): BooleanExpression<T>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T : Any> BooleanExpression<T>.evaluate(block: (T) -> Boolean): Boolean
Content copied to clipboard
Content copied to clipboard
fun BooleanExpression<BTerm>.evaluate( variables: Set<String>, typename: String?, adapterContext: AdapterContext, path: List<Any>?): Boolean
Content copied to clipboard
Link copied to clipboard
fun <T : Any, U : Any> BooleanExpression<T>.firstElementOfType(type: KClass<U>): U?
Content copied to clipboard
Link copied to clipboard
fun <T : Any> BooleanExpression<T>.or(vararg other: BooleanExpression<T>): BooleanExpression<T>
Content copied to clipboard