Interface ParameterHolder<T>

All Known Subinterfaces:
ParameterizedTransformer<T>
All Known Implementing Classes:
ASTTransformer, CSTTransformer, ExecutionPlanner

public interface ParameterHolder<T>
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    setJobParameters(T parameters)
     
    default <R> R
    withJobParameters(T parameters, Supplier<R> run)
    Runs a function with job parameters available set in the context.
  • Method Details

    • getJobParameters

      T getJobParameters()
    • setJobParameters

      void setJobParameters(T parameters)
    • withJobParameters

      default <R> R withJobParameters(T parameters, Supplier<R> run)
      Runs a function with job parameters available set in the context.
      Type Parameters:
      R - The return type of the function
      Parameters:
      parameters - The job parameters to set
      run - The function to run while the transformation manager has job parameters
      Returns:
      The value returned by the supplier function