com.fasterxml.jackson.databind.node.ContainerNode.java Source code

Java tutorial

Introduction

Here is the source code for com.fasterxml.jackson.databind.node.ContainerNode.java

Source

package com.fasterxml.jackson.databind.node;

import com.fasterxml.jackson.databind.JsonNode;
import java.util.Iterator;
import java.util.NoSuchElementException;

public abstract class ContainerNode<T extends ContainerNode<T>> extends BaseJsonNode {
    protected final JsonNodeFactory _nodeFactory;

    protected ContainerNode(JsonNodeFactory paramJsonNodeFactory) {
        this._nodeFactory = paramJsonNodeFactory;
    }

    public final POJONode POJONode(Object paramObject) {
        return this._nodeFactory.POJONode(paramObject);
    }

    public String asText() {
        return "";
    }

    public final NullNode nullNode() {
        return this._nodeFactory.nullNode();
    }

    public final TextNode textNode(String paramString) {
        return this._nodeFactory.textNode(paramString);
    }

    protected static class NoNodesIterator implements Iterator<JsonNode> {
        static final NoNodesIterator instance = new NoNodesIterator();

        public static NoNodesIterator instance() {
            return instance;
        }

        public boolean hasNext() {
            return false;
        }

        public JsonNode next() {
            throw new NoSuchElementException();
        }

        public void remove() {
            throw new IllegalStateException();
        }
    }
}

/* Location:           /Users/dantheman/src/fffffffffattttt/basis/classes_dex2jar.jar
 * Qualified Name:     com.fasterxml.jackson.databind.node.ContainerNode
 * JD-Core Version:    0.6.2
 */