Constant

io.github.kelvindev15.prolog.core.Constant
See theConstant companion trait
object Constant

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Constant.type

Members list

Type members

Classlikes

object Atom

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Atom.type
trait Atom extends Constant, Struct

A Prolog atom.

A Prolog atom.

Attributes

Companion
object
Supertypes
trait Struct
trait Constant
trait Term
trait Visitable
class Object
trait Matchable
class Any
Show all
object Numeric

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Numeric.type
trait Numeric extends Constant

A Prolog numeric constant.

A Prolog numeric constant.

Attributes

Companion
object
Supertypes
trait Constant
trait Term
trait Visitable
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def apply(value: Any): Constant

Returns a Prolog Constant.

Returns a Prolog Constant.

Value parameters

value

the value of the constant.

Attributes

Throws
IllegalArgumentException

if the value cannot be used for an Atom or a Numeric.