public class Tracer extends Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
Tracer.TraceEvent |
The trace event holding all relevant data.
|
static class |
Tracer.TraceEventType |
The trace event type differentiating between activation and return.
|
| Constructor | Description |
|---|---|
Tracer() |
| Modifier and Type | Method | Description |
|---|---|---|
static Parser |
on(Parser source,
Consumer<Tracer.TraceEvent> consumer) |
Returns a parser that calls the provided consumer with a
Tracer.TraceEvent whenever a parser
is activated or returning. |
public static Parser on(Parser source, Consumer<Tracer.TraceEvent> consumer)
Tracer.TraceEvent whenever a parser
is activated or returning.Copyright © 2018 PetitParser. All rights reserved.