public class TransformContextBase extends java.lang.Object implements Stepper
| Modifier | Constructor and Description |
|---|---|
|
TransformContextBase(Stepper stepper,
TypeResolver typeResolver,
DecompilerSettings settings) |
protected |
TransformContextBase(TransformContextBase other) |
| 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.
|
DecompilerSettings |
getSettings() |
Stepper |
getStepper() |
TypeResolver |
getTypeResolver() |
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.
|
Step |
pushTiming(java.lang.String name)
Starts a non-content step.
|
protected TransformContextBase(TransformContextBase other)
public TransformContextBase(Stepper stepper, TypeResolver typeResolver, DecompilerSettings settings)
public Stepper getStepper()
public TypeResolver getTypeResolver()
public DecompilerSettings getSettings()
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()
Stepperpublic Step pushTiming(java.lang.String name)
StepperpushTiming in interface Steppername - The name.public void popTiming()
Stepperpublic void except(java.lang.Throwable e)
Stepper