public interface Stepper
Created by covers1624 on 12/5/21.
| 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.
|
@Nullable Step |
pushStep(java.lang.String name)
Starts a step in the current context.
|
@Nullable Step |
pushStep(java.lang.String name,
Step.StepContextType contextType)
Starts a step in the current context.
|
@Nullable 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.
|
@Nullable Step |
pushTiming(java.lang.String name)
Starts a non-content step.
|
DebugPrintOptions getOpts()
DebugPrintOptions for this stepper.DebugPrintOptions.void pushContext(java.util.function.Supplier<java.lang.String> contentSupp)
contentSupp - The supplier to evaluate the data on each step.void popContext()
@Nullable @Nullable Step pushStep(java.lang.String name)
name - A descriptive name for the step.@Nullable @Nullable Step pushStep(java.lang.String name, Step.StepContextType contextType)
name - A descriptive name for the step.@Nullable @Nullable Step pushStepWithContent(java.lang.String name, Step.StepContextType contextType, java.util.function.Supplier<java.lang.String> preContent)
name - A descriptive name for the step.preContent - The content supplier for the step.void popStep()
@Nullable @Nullable Step pushTiming(java.lang.String name)
name - The name.void popTiming()
void except(java.lang.Throwable e)
e - The throwable. Will be re-throw silently.@Nullable @Nullable Step getRoot()
null if no steps were taken.