Java 类com.alibaba.fastjson.parser.deserializer.CollectionResolveFieldDeserializer 实例源码

项目:boohee_v5.6    文件:DefaultJSONParser.java   
public void checkListResolve(Collection array) {
    if (this.resolveStatus != 1) {
        return;
    }
    if (array instanceof List) {
        int index = array.size() - 1;
        List list = (List) array;
        ResolveTask task = getLastResolveTask();
        task.setFieldDeserializer(new ListResolveFieldDeserializer(this, list, index));
        task.setOwnerContext(this.context);
        setResolveStatus(0);
        return;
    }
    task = getLastResolveTask();
    task.setFieldDeserializer(new CollectionResolveFieldDeserializer(this, array));
    task.setOwnerContext(this.context);
    setResolveStatus(0);
}