LogicalOperator

abstract class LogicalOperator : BinaryInfixOperator

An infix operator that takes two booleans and returns a boolean.

Constructors

LogicalOperator
Link copied to clipboard
fun LogicalOperator()

Functions

alternativeTypes
Link copied to clipboard
open fun alternativeTypes(): List<FunctionType>

In lieu of polymorphic types, have an optional list of alternative types to check against.

apply
Link copied to clipboard
open override fun apply(arguments: List<Value>): Value

Computes the result of applying this operator to arguments.

override fun apply(argument1: Value, argument2: Value): Value

Computes the result of applying this operator to argument1 and argument2.

abstract fun apply(left: Boolean, right: Boolean): Boolean
toDocument
Link copied to clipboard
open override fun toDocument(arguments: List<PrettyPrintable>): Document

Shows this operator applied to arguments.

override fun toDocument(argument1: PrettyPrintable, argument2: PrettyPrintable): Document

Shows this operator applied to argument1 and argument2.

Properties

associativity
Link copied to clipboard
override val associativity: Associativity

Determines the grouping of consecutive operators that have the same precedence.

precedence
Link copied to clipboard
override val precedence: Precedence

Determines the order of this operator with respect to (a subset of) other operators. Operators with higher precedence bind tighter than operators with lower precedence (for example, multiplication has higher precedence than addition).

type
Link copied to clipboard
override val type: FunctionType

The type of this operator.

Inheritors

And
Link copied to clipboard
Or
Link copied to clipboard