Class TransformContextBase
java.lang.Object
net.covers1624.coffeegrinder.bytecode.transform.TransformContextBase
- All Implemented Interfaces:
Stepper
- Direct Known Subclasses:
ClassTransformContext,MethodTransformContext
Created by covers1624 on 5/3/22.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTransformContextBase(Stepper stepper, TypeResolver typeResolver, DecompilerSettings settings) -
Method Summary
Modifier and TypeMethodDescriptionvoidMarks the Stepper as having caught an exception.getOpts()Get theDebugPrintOptionsfor this stepper.@Nullable StepgetRoot()Gets the root node for the step tree.voidPops the current context off of the stepper.voidpopStep()Stops a transformation step.voidStops a non-content step.voidpushContext(Supplier<String> contentSupp) Pushes a new context to the Stepper.@Nullable StepStarts a step in the current context.@Nullable SteppushStep(String name, Step.StepContextType contextType) Starts a step in the current context.@Nullable SteppushStepWithContent(String name, Step.StepContextType contextType, Supplier<String> preContent) Start a step in the current context, overriding the current context's content supplier.pushTiming(String name) Starts a non-content step.
-
Constructor Details
-
TransformContextBase
-
TransformContextBase
public TransformContextBase(Stepper stepper, TypeResolver typeResolver, DecompilerSettings settings)
-
-
Method Details
-
getStepper
-
getTypeResolver
-
getSettings
-
getOpts
Description copied from interface:StepperGet theDebugPrintOptionsfor this stepper.- Specified by:
getOptsin interfaceStepper- Returns:
- The
DebugPrintOptions.
-
pushContext
Description copied from interface:StepperPushes a new context to the Stepper.- Specified by:
pushContextin interfaceStepper- Parameters:
contentSupp- The supplier to evaluate the data on each step.
-
popContext
public void popContext()Description copied from interface:StepperPops the current context off of the stepper.- Specified by:
popContextin interfaceStepper
-
pushStep
Description copied from interface:StepperStarts a step in the current context. -
pushStep
Description copied from interface:StepperStarts a step in the current context. -
pushStepWithContent
@Nullable public @Nullable Step pushStepWithContent(String name, Step.StepContextType contextType, Supplier<String> preContent) Description copied from interface:StepperStart a step in the current context, overriding the current context's content supplier.- Specified by:
pushStepWithContentin interfaceStepper- Parameters:
name- A descriptive name for the step.preContent- The content supplier for the step.
-
popStep
public void popStep()Description copied from interface:StepperStops a transformation step. -
pushTiming
Description copied from interface:StepperStarts a non-content step.- Specified by:
pushTimingin interfaceStepper- Parameters:
name- The name.
-
popTiming
public void popTiming()Description copied from interface:StepperStops a non-content step. -
except
Description copied from interface:StepperMarks the Stepper as having caught an exception. -
getRoot
Description copied from interface:StepperGets the root node for the step tree.
-