Jalog 1.4


io.github.JalogTeam.jalog
Class BuiltIns

java.lang.Object
  extended by io.github.JalogTeam.jalog.BuiltIns

public class BuiltIns
    

Class BuiltIns enumerates all classes that implement built-in predicates. Subclasses and instances of this class should not be made. When built-in predicates are added or removed, this class must be modified.

Each built-in predicate must be presented on a separate row in the table list.

A typical row of the table:

new ClassInfo("exit", Pred_exit.class, 0, 1),
where
"exit"
Name of a built-in predicate as a String. Must differ from other predicate names in the table.
Pred_exit
Class that implements the predicate. Must always be followed by .class .
0
(optional) The minimum number of arguments of the predicate.
1
(optional) The maximum number of the arguments of the predicate.
If only one nuber is given it is the only permitted number of arguments.
If no numbers are given the predicate accepts any number of arguments.
It is not possible to specify that some numbers between the minimum and maximum numbers are not permitted.

Every class that implements a built-in predicate must be a subclass of Pred.


Field Summary
static ClassInfo[] list
           List of built-in predicates.
 


Authors: Mikko Levanto, Ari Okkonen