|
GNU Prolog for Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.prolog.vm.interpreter.Tracer
public class Tracer
Nested Class Summary | |
---|---|
static class |
Tracer.TraceLevel
Different trace levels |
Field Summary | |
---|---|
protected CompoundTermTag[] |
callStack
|
protected static int |
callStackGrow
|
protected int |
callStackMax
|
protected int |
callStackPointer
|
protected Set<TracerEventListener> |
listeners
|
protected PrologStream |
output
|
protected Map<CompoundTermTag,EnumSet<Tracer.TraceLevel>> |
tracePoints
Current active trace points |
protected boolean |
tracingActive
If tracing is active |
static Set<CompoundTermTag> |
UNTRACEABLE
|
Constructor Summary | |
---|---|
Tracer(PrologStream stdout)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Set<CompoundTermTag> UNTRACEABLE
protected boolean tracingActive
protected Map<CompoundTermTag,EnumSet<Tracer.TraceLevel>> tracePoints
protected PrologStream output
protected Set<TracerEventListener> listeners
protected static final int callStackGrow
protected CompoundTermTag[] callStack
protected int callStackPointer
protected int callStackMax
Constructor Detail |
---|
public Tracer(PrologStream stdout)
stdout
- Method Detail |
---|
public void addTracerEventListener(TracerEventListener listener)
public void removeTracerEventListener(TracerEventListener listener)
public void setActive(boolean tracingActive)
tracingActive
- public boolean isActive()
public void setTrace(CompoundTermTag pred, EnumSet<Tracer.TraceLevel> levels)
pred
- levels
- public void addTrace(CompoundTermTag pred, EnumSet<Tracer.TraceLevel> levels)
pred
- levels
- public void addTrace(CompoundTermTag pred, Tracer.TraceLevel level)
pred
- level
- public void removeTrace(CompoundTermTag pred)
pred
- public void removeTrace(CompoundTermTag pred, EnumSet<Tracer.TraceLevel> levels)
pred
- levels
- public void removeTrace(CompoundTermTag pred, Tracer.TraceLevel level)
pred
- level
- public void removeAllTraces()
public CompoundTermTag[] getCallStack()
public void decreaseDepth()
public void traceEvent(Tracer.TraceLevel level, Interpreter interpreter, CompoundTermTag tag, Term[] args)
level
- interpreter
- tag
- args
- protected void sendEvent(Tracer.TraceLevel level, Interpreter interpreter, CompoundTermTag tag, Term[] args)
level
- interpreter
- tag
- args
- protected void println(String string)
public void reportStatus()
|
GNU Prolog for Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |