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

项目: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);
}
项目:android_http_demo    文件:DefaultJSONParser.java   
@SuppressWarnings("rawtypes")
public void checkListResolve(Collection array) {
    if (resolveStatus == NeedToResolve) {
        final int index = array.size() - 1;
        final List list = (List) array;
        ResolveTask task = getLastResolveTask();
        task.setFieldDeserializer(new ListResolveFieldDeserializer(this, list, index));
        task.setOwnerContext(context);
        setResolveStatus(DefaultJSONParser.NONE);
    }
}
项目:AndroidNio    文件:DefaultJSONParser.java   
@SuppressWarnings("rawtypes")
public void checkListResolve(Collection array) {
    if (resolveStatus == NeedToResolve) {
        final int index = array.size() - 1;
        final List list = (List) array;
        ResolveTask task = getLastResolveTask();
        task.setFieldDeserializer(new ListResolveFieldDeserializer(this, list, index));
        task.setOwnerContext(context);
        setResolveStatus(DefaultJSONParser.NONE);
    }
}