All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.shmilyhe.convert.impl.ComplexConvertor Maven / Gradle / Ivy

package io.shmilyhe.convert.impl;

import java.util.ArrayList;
import java.util.List;

import io.shmilyhe.convert.api.IConvertor;
import io.shmilyhe.convert.tools.DEBUG;
import io.shmilyhe.convert.tools.ExpEnv;

public class ComplexConvertor  extends BaseConvertor {

    @Override
    public Object convert(Object root,ExpEnv env) {
        Object o=root;
        for(IConvertor c:clist){
            if(c==null)continue;
            o=c.convert(o,env);
            if(env.isExited()){
                break;
            }
        }
        return o;
    }

    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy