Sha256: e2b90e406ae9d0a595f47f4325416bea37750d422c1765379315a9a8140d1a8a

Contents?: true

Size: 1.73 KB

Versions: 164

Compression:

Stored size: 1.73 KB

Contents

package sh.calaba.org.codehaus.jackson.node;

import java.io.IOException;

import sh.calaba.org.codehaus.jackson.JsonGenerator;
import sh.calaba.org.codehaus.jackson.JsonNode;
import sh.calaba.org.codehaus.jackson.JsonProcessingException;
import sh.calaba.org.codehaus.jackson.JsonToken;
import sh.calaba.org.codehaus.jackson.map.SerializerProvider;
import sh.calaba.org.codehaus.jackson.map.TypeSerializer;

/**
 * This intermediate base class is used for all leaf nodes, that is,
 * all non-container (array or object) nodes, except for the
 * "missing node".
 */
public abstract class ValueNode
    extends BaseJsonNode
{
    protected ValueNode() { }

    @Override
    public boolean isValueNode() { return true; }

    @Override
    public abstract JsonToken asToken();

    @Override
    public void serializeWithType(JsonGenerator jg, SerializerProvider provider,
            TypeSerializer typeSer)
        throws IOException, JsonProcessingException
    {
        typeSer.writeTypePrefixForScalar(this, jg);
        serialize(jg, provider);
        typeSer.writeTypeSuffixForScalar(this, jg);
    }
    
    /*
    /**********************************************************************
    /* Public API, path handling
    /**********************************************************************
     */

    @Override
    public JsonNode path(String fieldName) { return MissingNode.getInstance(); }

    @Override
    public JsonNode path(int index) { return MissingNode.getInstance(); }

    /*
    /**********************************************************************
    /* Base impls for standard methods
    /**********************************************************************
     */

    @Override
    public String toString() { return asText(); }
}

Version data entries

164 entries across 164 versions & 2 rubygems

Version Path
calabash-android-0.4.15.pre1 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.14 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.13 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.12 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.11 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.10.pre5 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.10.pre4 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.10.pre3 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.10.pre2 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.10.pre1 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.9 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
testautoa-0.4.5 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.9.pre4 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.9.pre3 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.9.pre2 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.9.pre1 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.8 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.7.pre10 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.7.pre9 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.7.pre8 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java