Signature

data class Signature(    val name: String,     val arity: Int,     val vararg: Boolean = false)

The signature of a query Struct or a Primitive

Constructors

Link copied to clipboard
fun Signature(    name: String,     arity: Int,     vararg: Boolean = false)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun toIndicator(): <ERROR CLASS>

Converts this Signature to Indicator, if possible without loosing information, otherwise throws an exception

Link copied to clipboard
open fun toTerm(): <ERROR CLASS>

Converts this signature to a Struct '/'([name], [arity]) or '/'([name],'+'([arity], vararg))

Link copied to clipboard
infix fun withArgs(arguments: Iterable<<ERROR CLASS>>): <ERROR CLASS>

Creates corresponding Struct of this Signature with provided arguments

Properties

Link copied to clipboard
val arity: Int
Link copied to clipboard
val name: String
Link copied to clipboard
val vararg: Boolean = false