Java tutorial
package com.fasterxml.jackson.databind.deser.std; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonToken; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonDeserializer; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.ArrayNode; import com.fasterxml.jackson.databind.node.ObjectNode; public class JsonNodeDeserializer extends BaseNodeDeserializer<JsonNode> { private static final JsonNodeDeserializer instance = new JsonNodeDeserializer(); protected JsonNodeDeserializer() { super(JsonNode.class); } public static JsonDeserializer<? extends JsonNode> getDeserializer(Class<?> paramClass) { if (paramClass == ObjectNode.class) return ObjectDeserializer.getInstance(); if (paramClass == ArrayNode.class) return ArrayDeserializer.getInstance(); return instance; } public JsonNode deserialize(JsonParser paramJsonParser, DeserializationContext paramDeserializationContext) { switch (1.$SwitchMap$com$fasterxml$jackson$core$JsonToken[paramJsonParser.getCurrentToken().ordinal()]) { default: return deserializeAny(paramJsonParser, paramDeserializationContext, paramDeserializationContext.getNodeFactory()); case 1: return deserializeObject(paramJsonParser, paramDeserializationContext, paramDeserializationContext.getNodeFactory()); case 2: } return deserializeArray(paramJsonParser, paramDeserializationContext, paramDeserializationContext.getNodeFactory()); } static final class ArrayDeserializer extends BaseNodeDeserializer<ArrayNode> { protected static final ArrayDeserializer _instance = new ArrayDeserializer(); protected ArrayDeserializer() { super(); } public static ArrayDeserializer getInstance() { return _instance; } public ArrayNode deserialize(JsonParser paramJsonParser, DeserializationContext paramDeserializationContext) { if (paramJsonParser.isExpectedStartArrayToken()) return deserializeArray(paramJsonParser, paramDeserializationContext, paramDeserializationContext.getNodeFactory()); throw paramDeserializationContext.mappingException(ArrayNode.class); } } static final class ObjectDeserializer extends BaseNodeDeserializer<ObjectNode> { protected static final ObjectDeserializer _instance = new ObjectDeserializer(); protected ObjectDeserializer() { super(); } public static ObjectDeserializer getInstance() { return _instance; } public ObjectNode deserialize(JsonParser paramJsonParser, DeserializationContext paramDeserializationContext) { if (paramJsonParser.getCurrentToken() == JsonToken.START_OBJECT) { paramJsonParser.nextToken(); return deserializeObject(paramJsonParser, paramDeserializationContext, paramDeserializationContext.getNodeFactory()); } if (paramJsonParser.getCurrentToken() == JsonToken.FIELD_NAME) return deserializeObject(paramJsonParser, paramDeserializationContext, paramDeserializationContext.getNodeFactory()); throw paramDeserializationContext.mappingException(ObjectNode.class); } } } /* Location: /Users/dantheman/src/fffffffffattttt/basis/classes_dex2jar.jar * Qualified Name: com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer * JD-Core Version: 0.6.2 */