java/com/google/copybara/transform/Sequence.java
/**
   * Create a sequence from a list of native and Skylark transforms.
   *
   * @param joinTransformations if compatible and consecutive transformations can be joined for
   *     efficiency
   * @param description a description of the argument being converted, such as its name
   * @param thread skylark environment for user defined transformations
   */
Create a sequence from a list of native and Skylark transforms.
@param joinTransformations if compatible and consecutive transformations can be joined for
efficiency
@param description a description of the argument being converted, such as its name
@param thread skylark environment for user defined transformations
Create a sequence from a list of native and Skylark transforms . @param joinTransformations if compatible and consecutive transformations can be joined for efficiency @param description a description of the argument being converted such as its name @param thread skylark environment for user defined transformations
public static Sequence fromConfig(
      Profiler profiler,
      boolean joinTransformations,
      com.google.devtools.build.lib.syntax.Sequence<?> elements,
      String description,
      StarlarkThread.PrintHandler printHandler,
      Function<Transformation, Transformation> transformWrapper)
      throws EvalException {
    ImmutableList.Builder<Transformation> transformations = ImmutableList.builder();
    for (Object element : elements) {
      transformations.add(
          transformWrapper.apply(convertToTransformation(description, printHandler, element)));
    }
    return new Sequence(profiler, joinTransformations, transformations.build());
  }
public static Sequence fromConfig ( Profiler profiler , boolean joinTransformations , com . google . devtools . build . lib . syntax . Sequence < ? > elements , String description , StarlarkThread . PrintHandler printHandler , Function < Transformation , Transformation > transformWrapper ) throws EvalException { ImmutableList . Builder < Transformation > transformations = ImmutableList . builder ( ) ; for ( Object element : elements ) { transformations . add ( transformWrapper . apply ( convertToTransformation ( description , printHandler , element ) ) ) ; } return new Sequence ( profiler , joinTransformations , transformations . build ( ) ) ; }
Create a sequence from a list of native and Skylark transforms.
Create a sequence from a list of native and Skylark transforms .