public class LogtalkObject<T extends Term> extends Object implements TermConvertable<T>, PrologDatabase
Constructor and Description |
---|
LogtalkObject(Object object,
PrologEngine prologEngine) |
LogtalkObject(Object object,
PrologEngine prologEngine,
Jpc context) |
Modifier and Type | Method and Description |
---|---|
boolean |
abolish(Term term) |
int |
arity() |
boolean |
asserta(Term term)
Assert a clause in the logic database.
|
boolean |
assertz(Term term)
Assert a clause in the logic database.
|
T |
asTerm() |
Query |
clause(Term head,
Term body) |
Query |
currentOp(Term priority,
Term specifier,
Term operator) |
Query |
currentPredicate(Term predicate) |
static boolean |
isLogtalkMessage(Term term) |
static Compound |
logtalkMessage(Term receiver,
String message) |
static Compound |
logtalkMessage(Term receiver,
String message,
List<? extends Term> args) |
static Compound |
logtalkMessage(Term receiver,
Term message) |
Term |
message(Term message) |
Term |
name() |
Query |
perform(Term message) |
Query |
predicateProperty(Term predicate,
Term property) |
Query |
retract(Term term) |
boolean |
retractAll(Term term) |
Query |
threaded(Term goals) |
boolean |
threadedCall(Term goal) |
boolean |
threadedCall(Term goal,
Term tag) |
Query |
threadedExit(Term goal) |
Query |
threadedExit(Term goal,
Term tag) |
boolean |
threadedIgnore(Term goal) |
Query |
threadedNotify(Term term) |
boolean |
threadedOnce(Term goal) |
boolean |
threadedOnce(Term goal,
Term tag) |
boolean |
threadedPeek(Term goal) |
boolean |
threadedPeek(Term goal,
Term tag) |
String |
toString() |
public LogtalkObject(Object object, PrologEngine prologEngine)
public LogtalkObject(Object object, PrologEngine prologEngine, Jpc context)
public static Compound logtalkMessage(Term receiver, String message, List<? extends Term> args)
public static boolean isLogtalkMessage(Term term)
public T asTerm()
asTerm
in interface TermConvertable<T extends Term>
public Term name()
public int arity()
public boolean asserta(Term term)
PrologDatabase
asserta
in interface PrologDatabase
public boolean assertz(Term term)
PrologDatabase
assertz
in interface PrologDatabase
public Query retract(Term term)
retract
in interface PrologDatabase
public boolean retractAll(Term term)
retractAll
in interface PrologDatabase
public boolean abolish(Term term)
abolish
in interface PrologDatabase
public Query clause(Term head, Term body)
clause
in interface PrologDatabase
public boolean threadedCall(Term goal)
public boolean threadedOnce(Term goal)
public boolean threadedPeek(Term goal)
public boolean threadedIgnore(Term goal)
Copyright © 2014. All rights reserved.