public class BindingsTable extends Object
Constructor and Description |
---|
BindingsTable() |
Modifier and Type | Method and Description |
---|---|
Struct |
createStructList(Collection complete) |
Number |
evalExpression(Prolog prolog,
EvaluableTerm expression) |
void |
expandLinkTable(int newSize) |
Term |
flatCopy(Term original,
int keepCtx) |
int |
getUniqueExecutionCtxID() |
Term |
resolve(Term term) |
Term |
resolveFaster(Term term,
int ctx) |
Iterator |
structListIterator(Struct origin,
boolean skipLastEmptyList) |
boolean |
unify(Term t0,
Term t1) |
static Term |
unWrap(Term l) |
Term |
variant(Term original)
See 7.1.6.1 Variants of a term in the ISO spec this method resolves all
the terms children.
|
Term |
wrapWithID(Term t) |
static Term |
wrapWithID(Term t,
int renameVarID) |
public int getUniqueExecutionCtxID()
public void expandLinkTable(int newSize)
public Number evalExpression(Prolog prolog, EvaluableTerm expression) throws PrologException, Throwable
prolog
- expression
- PrologException
- instantiation error if one of the Variables to be evaluated
is not instantiated type_error(Evaluable, other) if a part in
the evaluable Term is not evaluableThrowable
- any other exception that might be thrown by parts of the
expression to be evaluatedpublic Iterator structListIterator(Struct origin, boolean skipLastEmptyList) throws PrologException
PrologException
public Struct createStructList(Collection complete)
public Term variant(Term original)
original
- such as - f(X,Y,X) - g(A,B) - P + QCopyright © 2020–2024 Prolobjectlink Project. All rights reserved.