Skip to contents

Class representing a nullary operation in an expression

Super class

scidb::scidb.expression -> scidb.expression.nullary

Methods


Method new()

Usage

Arguments

op

operation string

input

input scidb.epxression object


Method type()

Returns the type of the expression as a string

Usage

scidb.expression.nullary$type()

Returns

"NULLARY"


Method operation()

Returns the nullary operation name

Usage

scidb.expression.nullary$operation()

Returns

nullary op name (length-1 character)


Method symbols()

Returns the distinct symbols used in the expression

Usage

scidb.expression.nullary$symbols()

Returns

vector of symbol names


Method unary()

Whether or not the expression is a function of (at most) a single symbol

Usage

scidb.expression.nullary$unary()

Returns

a boolean value indicating unary or non-unary


Method unary_composite()

Whether or not the expression is unary or a boolean AND or OR of two other in-turn unary composite expressions

Usage

scidb.expression.nullary$unary_composite()

Returns

a boolean value indicating unary-composite or not


Method substitute()

Renames the symbols in the expression according to replacements in the arguments

Usage

scidb.expression.nullary$substitute(...)

Arguments

...

optional list of string replacements for each symbol in the expression


Method to_r()

Convert the expression to an R string, with optional symbol substitutions

Usage

scidb.expression.nullary$to_r(...)

Arguments

...

optional list of string replacements for each symbol in the expression

Returns

evaluation of this predicate as a single R string


Method to_afl()

Convert the expression to an AFL string, with optional symbol substitutions

Usage

scidb.expression.nullary$to_afl(...)

Arguments

...

optional list of string replacements for each symbol in the expression

Returns

evaluation of this predicate as a single AFL string


Method clone()

The objects of this class are cloneable with this method.

Usage

scidb.expression.nullary$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.