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.3.pre2 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.3.pre1 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
testautoa-0.4.1 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.2 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.1 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.0 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.0.pre18 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
testautoa-0.4.0.pre19 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
testautoa-0.4.0.pre18 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
testautoa-0.4.0.pre16 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.0.pre17 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.0.pre16 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.0.pre15 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.0.pre11 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.0.pre10 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.0.pre9 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.0.pre8 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.0.pre7 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.0.pre6 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java
calabash-android-0.4.0.pre5 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java