TypeTester

Base class for ISO type-checking predicates of arity 1 (e.g. atom/1, var/1, is_list/1): succeeds if testType returns true for the (dereferenced) argument, fails (rather than throwing) otherwise. Contrast with TypeEnsurer, which throws instead of failing.

Inheritors

Constructors

Link copied to clipboard
constructor(typeName: String)

Properties

Link copied to clipboard

Gets this wrapped primitive description Pair formed by signature and wrapped primitive type

Link copied to clipboard

A shorthand to get the signature functor name

Link copied to clipboard
open val help: String
Link copied to clipboard

Checked primitive implementation, retaining this wrapper's help metadata.

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun testType(term: Term): Boolean

Template method testing whether term has the expected shape/type.