Skip to content

I have a new method to submit #32

@mujianfenghe

Description

@mujianfenghe

##in NgxBlock Class ,I have a new method to submit

public void getAllElementByBlock(NgxBlock ngxBlock,StringBuilder stringBuilder){
    <NgxEntry> iterator = ngxBlock.iterator();
    while(iterator.hasNext()){
        NgxEntry ngxEntry = iterator.next();
        if(ngxEntry instanceof NgxBlock){
            NgxBlock block = (NgxBlock) ngxEntry;
            stringBuilder.append(block.getName()+" " +block.getValue()+"}");
            getAllElementByBlock(block,stringBuilder);
            stringBuilder.append(“}”);
        }else if(ngxEntry instanceof NgxParam){
            NgxParam ngxParam = (NgxParam) ngxEntry;
            stringBuilder.append(ngxParam.getName+" "+ngxParam.getValue()+";");
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions