package Visual_DVM_2021.Passes.All;
import Common.Current_;
import _VisualDVM.Current;
import Visual_DVM_2021.Passes.SapforFilesModification;
import _VisualDVM.Global;
public class SPF_ChangeSpfIntervals extends SapforFilesModification {
    //  SPF_ChangeSpfIntervals (addOpt1_c -> file, addOpt2_c-> int lines, '|' as delimiter)
    int start;
    int end;
    int mod;
    @Override
    protected boolean canStart(Object... args) throws Exception {
        if (super.canStart(args) && Global.mainModule.Check(Log, Current.File)) {
            start = (int) args[0];
            end = (int) args[1];
            mod = (int) args[2];
            addOpt1 = Global.mainModule.getFile().name;
            addOpt2 = start + "|" + end + "|" + mod;
            return true;
        }
        return false;
    }
}
