public final class SpyPoints extends Object
Spy points are useful in the debugging of Prolog programs. When a spy point is set on a predicate a
SpyPoints.SpyPointEvent
is generated every time the predicate is executed, fails or succeeds.
Each KnowledgeBase
has a single unique SpyPoints
instance.
KnowledgeBase.getSpyPoints()
Modifier and Type | Class and Description |
---|---|
class |
SpyPoints.SpyPoint |
class |
SpyPoints.SpyPointEvent |
class |
SpyPoints.SpyPointExitEvent |
Constructor and Description |
---|
SpyPoints(KnowledgeBase kb) |
SpyPoints(ProjogListeners observable,
TermFormatter termFormatter) |
Modifier and Type | Method and Description |
---|---|
SpyPoints.SpyPoint |
getSpyPoint(PredicateKey key) |
Map<PredicateKey,SpyPoints.SpyPoint> |
getSpyPoints() |
void |
setSpyPoint(PredicateKey key,
boolean set) |
void |
setTraceEnabled(boolean traceEnabled) |
public SpyPoints(KnowledgeBase kb)
public SpyPoints(ProjogListeners observable, TermFormatter termFormatter)
public void setTraceEnabled(boolean traceEnabled)
public void setSpyPoint(PredicateKey key, boolean set)
public SpyPoints.SpyPoint getSpyPoint(PredicateKey key)
public Map<PredicateKey,SpyPoints.SpyPoint> getSpyPoints()
Copyright © 2024. All rights reserved.