FunctionWrapper

abstract class FunctionWrapper<C : ExecutionContext> : AbstractWrapper<PrologFunction>

A class wrapping a PrologFunction implementation

Fields

Name Description
val wrappedImplementation: PrologFunction

Checked PrologFunction implementation

Constructors

<init>

constructor(signature: Signature)

Parameters

Name Description
signature: Signature

<init>

constructor(name: String, arity: Int, vararg: Boolean)

Parameters

Name Description
name: String
arity: Int
vararg: Boolean

Methods

uncheckedImplementation

protected abstract fun uncheckedImplementation(request: Request<C>): Response

The function expressing the implementation of the PrologFunction, without any check for application to correct signature

Parameters

Name Description
request: Request<C>

ReturnValue

Name Description
Response