| Constructor and Description |
|---|
DebugStepper(DebugPrintOptions opts,
int stopAtStep) |
| Modifier and Type | Method and Description |
|---|---|
void |
except(java.lang.Throwable e)
Marks the Stepper as having caught an exception.
|
DebugPrintOptions |
getOpts()
Get the
DebugPrintOptions for this stepper. |
@Nullable Step |
getRoot()
Gets the root node for the step tree.
|
void |
popContext()
Pops the current context off of the stepper.
|
void |
popStep()
Stops a transformation step.
|
void |
popTiming()
Stops a non-content step.
|
void |
pushContext(java.util.function.Supplier<java.lang.String> contentSupp)
Pushes a new context to the Stepper.
|
Step |
pushStep(java.lang.String name)
Starts a step in the current context.
|
Step |
pushStep(java.lang.String name,
Step.StepContextType contextType)
Starts a step in the current context.
|
Step |
pushStepWithContent(java.lang.String name,
Step.StepContextType contextType,
java.util.function.Supplier<java.lang.String> preContent)
Start a step in the current context, overriding the current context's
content supplier.
|
Step |
pushTiming(java.lang.String name)
Starts a non-content step.
|
public DebugStepper(DebugPrintOptions opts, int stopAtStep)
public DebugPrintOptions getOpts()
StepperDebugPrintOptions for this stepper.getOpts in interface StepperDebugPrintOptions.public void pushContext(java.util.function.Supplier<java.lang.String> contentSupp)
StepperpushContext in interface SteppercontentSupp - The supplier to evaluate the data on each step.public void popContext()
StepperpopContext in interface Stepperpublic Step pushStep(java.lang.String name)
Stepperpublic Step pushStep(java.lang.String name, Step.StepContextType contextType)
Stepperpublic Step pushStepWithContent(java.lang.String name, Step.StepContextType contextType, java.util.function.Supplier<java.lang.String> preContent)
StepperpushStepWithContent in interface Steppername - A descriptive name for the step.preContent - The content supplier for the step.public void popStep()
Stepperpublic Step pushTiming(java.lang.String name)
StepperpushTiming in interface Steppername - The name.public void popTiming()
Stepperpublic void except(java.lang.Throwable e)
Stepper