| 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.
|
public static final Stepper INSTANCE
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 Stepper@Nullable public @Nullable Step pushStep(java.lang.String name)
Stepper@Nullable public @Nullable Step pushStep(java.lang.String name, Step.StepContextType contextType)
Stepper@Nullable public @Nullable 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()
Stepper@Nullable public @Nullable Step pushTiming(java.lang.String name)
StepperpushTiming in interface Steppername - The name.public void popTiming()
Stepperpublic void except(java.lang.Throwable e)
Stepper