class LoopELWrapper extends ELWrapper {

    protected Integer loopNumber;

    /**
     * 以loopFunction变量进行区分FOR、WHILE、ITERATOR
     */
    protected String loopFunction;

    protected boolean parallel;

    public LoopELWrapper(Integer loopNumber, String loopFunction){
        this.loopNumber = loopNumber;
        this.loopFunction = loopFunction;
        this.addWrapper(null, 0);
    }

    public LoopELWrapper(ELWrapper elWrapper, String loopFunction){
        this.loopFunction = loopFunction;
        this.addWrapper(elWrapper, 0);
    }

    public LoopELWrapper doOpt(Object object){
        ELWrapper elWrapper = ELBus.convertToNonLogicOpt(object);
        this.addWrapper(elWrapper, 1);
        return this;
    }

    protected void setParallel(boolean parallel){
        this.parallel = parallel;
    }

    @Override
    public LoopELWrapper tag(String tag) {
        this.setTag(tag);
        return this;
    }

    @Override
    public LoopELWrapper id(String id) {
        this.setId(id);
        return this;
    }

    @Override
    public LoopELWrapper maxWaitSeconds(Integer maxWaitSeconds){
        setMaxWaitSeconds(maxWaitSeconds);
        return this;
    }

    @Override
    protected String toEL(Integer depth, StringBuilder paramContext) {<FILL_FUNCTION_BODY>}
}

        checkMaxWaitSeconds();

        Integer sonDepth = depth == null ? null : depth + 1;
        StringBuilder sb = new StringBuilder();

        // 设置循坏组件的类型以及循环节点
        processWrapperTabs(sb, depth);
        sb.append(loopFunction).append("(");
        if(loopNumber != null){
            sb.append(loopNumber.toString());
        } else {
            processWrapperNewLine(sb, depth);
            sb.append(this.getElWrapperList().get(0).toEL(sonDepth, paramContext));
            processWrapperNewLine(sb, depth);
            processWrapperTabs(sb, depth);
        }
        sb.append(")");

        // 循环独有的并行语义
        if(this.parallel){
            sb.append(".parallel(true)");
        }

        // 设置循环组件输出
        if(this.getElWrapperList().size() > 1) {
            sb.append(".DO(");
            processWrapperNewLine(sb, depth);
            sb.append(this.getElWrapperList().get(1).toEL(sonDepth, paramContext));
            processWrapperNewLine(sb, depth);
            processWrapperTabs(sb, depth);
            sb.append(")");
        }

        // 设置退出循环组件输出
        if(this.getElWrapperList().size() > 2){
            sb.append(".BREAK(");
            processWrapperNewLine(sb, depth);
            sb.append(this.getElWrapperList().get(2).toEL(sonDepth, paramContext));
            processWrapperNewLine(sb, depth);
            processWrapperTabs(sb, depth);
            sb.append(")");
        }

        // 设置共有属性
        processWrapperProperty(sb, paramContext);
        return sb.toString();
    
<methods>public non-sealed void <init>() ,public com.yomahub.liteflow.builder.el.ELWrapper id(java.lang.String) ,public com.yomahub.liteflow.builder.el.ELWrapper tag(java.lang.String) ,public java.lang.String toEL() ,public java.lang.String toEL(boolean) <variables>private java.lang.String data,private java.lang.String dataName,private final List<com.yomahub.liteflow.builder.el.ELWrapper> elWrapperList,private java.lang.String id,private java.lang.Integer maxWaitSeconds,private java.lang.String tag