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

项目:boohee_v5.6    文件:ParserConfig.java   
public ObjectDeserializer getDeserializer(Type type) {
    ObjectDeserializer derializer = (ObjectDeserializer) this.derializers.get(type);
    if (derializer != null) {
        return derializer;
    }
    if (type instanceof Class) {
        return getDeserializer((Class) type, type);
    }
    if (!(type instanceof ParameterizedType)) {
        return JavaObjectDeserializer.instance;
    }
    Type rawType = ((ParameterizedType) type).getRawType();
    if (rawType instanceof Class) {
        return getDeserializer((Class) rawType, type);
    }
    return getDeserializer(rawType);
}
项目:uavstack    文件:ParserConfig.java   
public ObjectDeserializer getDeserializer(Type type) {
    ObjectDeserializer derializer = this.derializers.get(type);
    if (derializer != null) {
        return derializer;
    }

    if (type instanceof Class<?>) {
        return getDeserializer((Class<?>) type, type);
    }

    if (type instanceof ParameterizedType) {
        Type rawType = ((ParameterizedType) type).getRawType();
        if (rawType instanceof Class<?>) {
            return getDeserializer((Class<?>) rawType, type);
        } else {
            return getDeserializer(rawType);
        }
    }

    return JavaObjectDeserializer.instance;
}
项目:itmarry    文件:ParserConfig.java   
public ObjectDeserializer getDeserializer(Type type) {
    ObjectDeserializer derializer = this.derializers.get(type);
    if (derializer != null) {
        return derializer;
    }

    if (type instanceof Class<?>) {
        return getDeserializer((Class<?>) type, type);
    }

    if (type instanceof ParameterizedType) {
        Type rawType = ((ParameterizedType) type).getRawType();
        if (rawType instanceof Class<?>) {
            return getDeserializer((Class<?>) rawType, type);
        } else {
            return getDeserializer(rawType);
        }
    }

    return JavaObjectDeserializer.instance;
}