public class BuiltIn extends Library
Modifier and Type | Method and Description |
---|---|
boolean |
$debug_1(BindingsTable bt,
Term arg0) |
boolean |
$debug_3(BindingsTable bt,
Term arg0,
Term arg2,
Term arg3) |
boolean |
$domain_error_zero_1(BindingsTable bt,
Term term) |
boolean |
$find_2(BindingsTable bt,
Struct arg0,
Term arg1) |
boolean |
$instantiation_error_0(BindingsTable bt) |
boolean |
$representation_error_1(BindingsTable bt,
Term maxArity) |
boolean |
$retract_1(BindingsTable bt,
Struct arg0) |
boolean |
$type_error_2(BindingsTable bt,
Term typeName,
Term term) |
boolean |
abolish_1(BindingsTable bt,
Struct predicateIndicator)
see 8.9.4 p.81 in ISO standard
|
boolean |
asserta_1(BindingsTable bt,
Term arg0) |
boolean |
assertz_1(BindingsTable bt,
Term arg0) |
static boolean |
call_1(BindingsTable bt,
Term arg1) |
boolean |
comma_2(BindingsTable bt,
Term arg0,
Term arg1)
Primitives
|
void |
consult_1(BindingsTable bt,
Term theory) |
static Clause |
convertTermToClause(Term arg0)
see ISO 7.6.1 and 7.6.2
|
static Struct |
convertTermToClauseBody(Term body) |
static Struct[] |
convertTermToClauseBody2(Term body) |
boolean |
copy_2(BindingsTable bt,
Term arg0,
Term arg1) |
static boolean |
cut_0(BindingsTable bt) |
boolean |
deunify_2(BindingsTable bt,
Term arg0,
Term arg1) |
boolean |
dynamic_1(BindingsTable bt,
Struct predicateIndicator)
Registers the existence predicate indicator in the dynamic data base.
|
static boolean |
fail_0(BindingsTable bt) |
void |
flag_4(BindingsTable bt,
Term flagName,
Struct flagSet,
Term flagDefault,
Term flagModifiable) |
boolean |
flag_list_1(BindingsTable bt,
Term arg0) |
boolean |
get_prolog_flag_2(BindingsTable bt,
Term arg0,
Term arg1) |
String[] |
getSynonym(String primitive)
Defines a map for synonyms for primitives.
|
static boolean |
halt_0(BindingsTable bt) |
boolean |
halt_1(BindingsTable bt,
Number arg0) |
static String |
isPredicateIndicator(Struct predicateIndicator,
BindingsTable bt) |
boolean |
load_library_1(BindingsTable bt,
Struct arg0) |
void |
load_library_1(BindingsTable bt,
Term lib) |
boolean |
newlist_2(BindingsTable bt,
Int length,
Var out) |
void |
op_3(BindingsTable bt,
Number arg0,
StructAtom arg1,
StructAtom arg2)
op(+Precedence, +Type, +Name) defines a new operator if precedence not in
0..1200 = delete currently present op
|
boolean |
set_prolog_flag_2(BindingsTable bt,
Term arg0,
Term arg1) |
void |
solve_1(BindingsTable bt,
Struct goal) |
static boolean |
true_0(BindingsTable bt) |
boolean |
unify_2(BindingsTable bt,
Term arg0,
Term arg1) |
boolean |
unload_library_1(BindingsTable bt,
Struct arg0)
unloads a engine library, given its java class name
|
dismiss, getName, getTheory, onSolveBegin, onSolveEnd, setEngine
public BuiltIn(Prolog mediator)
public String[] getSynonym(String primitive)
getSynonym
in class Library
public boolean comma_2(BindingsTable bt, Term arg0, Term arg1)
public static boolean cut_0(BindingsTable bt)
public static boolean fail_0(BindingsTable bt)
public static boolean true_0(BindingsTable bt)
public static boolean call_1(BindingsTable bt, Term arg1)
public static boolean halt_0(BindingsTable bt) throws PrologException
PrologException
public boolean halt_1(BindingsTable bt, Number arg0) throws PrologException
PrologException
public boolean $debug_1(BindingsTable bt, Term arg0)
public boolean $debug_3(BindingsTable bt, Term arg0, Term arg2, Term arg3)
public boolean asserta_1(BindingsTable bt, Term arg0) throws PrologException
PrologException
public boolean assertz_1(BindingsTable bt, Term arg0) throws PrologException
PrologException
public boolean $retract_1(BindingsTable bt, Struct arg0) throws PrologException
PrologException
public boolean abolish_1(BindingsTable bt, Struct predicateIndicator) throws PrologException
predicateIndicator
- PrologException
- in case of errorspublic boolean dynamic_1(BindingsTable bt, Struct predicateIndicator) throws PrologException
predicateIndicator
- PrologException
- in case of bad inputpublic boolean load_library_1(BindingsTable bt, Struct arg0) throws InvalidLibraryException
InvalidLibraryException
public boolean unload_library_1(BindingsTable bt, Struct arg0) throws InvalidLibraryException
InvalidLibraryException
public boolean flag_list_1(BindingsTable bt, Term arg0)
public boolean unify_2(BindingsTable bt, Term arg0, Term arg1)
public boolean deunify_2(BindingsTable bt, Term arg0, Term arg1)
public boolean newlist_2(BindingsTable bt, Int length, Var out) throws PrologException
PrologException
public boolean copy_2(BindingsTable bt, Term arg0, Term arg1)
public boolean $find_2(BindingsTable bt, Struct arg0, Term arg1) throws PrologException, CloneNotSupportedException
public boolean set_prolog_flag_2(BindingsTable bt, Term arg0, Term arg1)
public boolean get_prolog_flag_2(BindingsTable bt, Term arg0, Term arg1)
public void op_3(BindingsTable bt, Number arg0, StructAtom arg1, StructAtom arg2)
public void flag_4(BindingsTable bt, Term flagName, Struct flagSet, Term flagDefault, Term flagModifiable)
public void solve_1(BindingsTable bt, Struct goal) throws Throwable
Throwable
public void load_library_1(BindingsTable bt, Term lib) throws InvalidLibraryException
InvalidLibraryException
public void consult_1(BindingsTable bt, Term theory) throws FileNotFoundException, PrologException, IOException
public boolean $instantiation_error_0(BindingsTable bt) throws PrologException
PrologException
public boolean $type_error_2(BindingsTable bt, Term typeName, Term term) throws PrologException
PrologException
public boolean $representation_error_1(BindingsTable bt, Term maxArity) throws PrologException
PrologException
public boolean $domain_error_zero_1(BindingsTable bt, Term term) throws Exception
Exception
public static Clause convertTermToClause(Term arg0) throws PrologException
arg0
- PrologException
public static Struct[] convertTermToClauseBody2(Term body) throws PrologException
PrologException
public static Struct convertTermToClauseBody(Term body) throws PrologException
PrologException
public static String isPredicateIndicator(Struct predicateIndicator, BindingsTable bt) throws PrologException
PrologException
Copyright © 2020–2024 Prolobjectlink Project. All rights reserved.