| Modifier and Type | Field and Description |
|---|---|
| protected final String | |
| pack-priv static final StringNode | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Boolean | _asBoolean()
Overrides tools. Method sub-classes should override if they can produce |
| protected String | _asString()
Overrides tools. Method sub-classes should override if they can produce |
| protected BigDecimal | |
| protected BigInteger | |
| protected Double | |
| protected Float | |
| protected Integer | |
| protected Long | |
| protected Short | |
| protected String | _valueDesc()
Implements abstract tools. Method for implementation classes to return a short description of contained value, to be used in error messages. |
| public BigInteger | asBigInteger()
Overrides tools. Method similar to
|
| public BigInteger | asBigInteger(BigInteger defaultValue)
Overrides tools. Method similar to |
| public Optional | asBigIntegerOpt()
Overrides tools. Method similar to |
| public BigDecimal | asDecimal()
Overrides tools. Method that will try to access value of this node as a |
| public BigDecimal | asDecimal(BigDecimal defaultValue)
Overrides tools. Method similar to |
| public Optional | asDecimalOpt()
Overrides tools. Method similar to |
| public double | asDouble()
Overrides tools. Method similar to
|
| public double | asDouble(double defaultValue)
Overrides tools. Method similar to |
| public OptionalDouble | asDoubleOpt()
Overrides tools. Method similar to |
| public float | asFloat()
Overrides tools. Method similar to
|
| public float | asFloat(float defaultValue)
Overrides tools. Method similar to |
| public Optional | asFloatOpt()
Overrides tools. Method similar to |
| public int | asInt()
Overrides tools. Method similar to
|
| public int | asInt(int defaultValue)
Overrides tools. Method similar to |
| public OptionalInt | asIntOpt()
Overrides tools. Method similar to |
| public long | asLong()
Overrides tools. Method similar to
|
| public long | asLong(long defaultValue)
Overrides tools. Method similar to |
| public OptionalLong | asLongOpt()
Overrides tools. Method similar to |
| public short | asShort()
Overrides tools. Method similar to
|
| public short | asShort(short defaultValue)
Overrides tools. Method similar to |
| public Optional | asShortOpt()
Overrides tools. Method similar to |
| public String | asString()
Overrides tools. Method that will try to convert value of this node to a |
| public String | asString(String defaultValue)
Overrides tools. Similar to |
| public Optional | asStringOpt()
Overrides tools. Similar to |
| public JsonToken | asToken()
Implements abstract tools. Implements tools. Method that can be used for efficient type detection when using stream abstraction for traversing nodes. |
| public byte[] | binaryValue()
Overrides tools. Method that will try to access value of this node as binary value (Java |
| public StringNode | deepCopy()
Overrides tools. All current value nodes are immutable, so we can just return them as is. |
| public boolean | equals(Object o)
Implements abstract tools. Equality for node objects is defined as full (deep) value equality. |
| public byte[] | getBinaryValue(Base64Variant b64variant)
Method for accessing content String assuming they were base64 encoded; if so, content is decoded and resulting binary data is returned. |
| public JsonNodeType | getNodeType()
Implements abstract tools. Return the type of this node |
| public int | hashCode()
Implements abstract tools. Returns a hash code value for this object. |
| public final void | serialize(JsonGenerator g, SerializationContext provider)
Implements abstract tools. Implements tools. Method called to serialize node instances using given generator. |
| public String | stringValue()
Overrides tools. Method that will try to access value of this node as a Java |
| public String | stringValue(String defaultValue)
Overrides tools. Method similar to |
| public Optional | stringValueOpt()
Overrides tools. Method similar to |
| public static StringNode | Returns: ResultingStringNode object, if v
is NOT null; null if it is.Factory method that should be used to construct instances. |
| _value | back to summary |
|---|---|
| protected final String _value | |
| EMPTY_STRING_NODE | back to summary |
|---|---|
| pack-priv static final StringNode EMPTY_STRING_NODE | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides tools. | |
| StringNode | back to summary |
|---|---|
| public StringNode(String v) | |
| _asBoolean | back to summary |
|---|---|
| public Boolean _asBoolean() Overrides tools. Doc from tools. Method sub-classes should override if they can produce
| |
| _asString | back to summary |
|---|---|
| protected String _asString() Overrides tools. Doc from tools. Method sub-classes should override if they can produce
| |
| _tryParseAsBigDecimal | back to summary |
|---|---|
| protected BigDecimal _tryParseAsBigDecimal() | |
| _tryParseAsBigInteger | back to summary |
|---|---|
| protected BigInteger _tryParseAsBigInteger() | |
| _tryParseAsDouble | back to summary |
|---|---|
| protected Double _tryParseAsDouble() | |
| _tryParseAsFloat | back to summary |
|---|---|
| protected Float _tryParseAsFloat() | |
| _tryParseAsInteger | back to summary |
|---|---|
| protected Integer _tryParseAsInteger() | |
| _tryParseAsLong | back to summary |
|---|---|
| protected Long _tryParseAsLong() | |
| _tryParseAsShort | back to summary |
|---|---|
| protected Short _tryParseAsShort() | |
| _valueDesc | back to summary |
|---|---|
| protected String _valueDesc() Implements abstract tools. Doc from tools. Method for implementation classes to return a short description of contained value, to be used in error messages.
| |
| asBigInteger | back to summary |
|---|---|
| public BigInteger asBigInteger() Overrides tools. Doc from tools. Method similar to
| |
| asBigInteger | back to summary |
|---|---|
| public BigInteger asBigInteger(BigInteger defaultValue) Overrides tools. Doc from tools. Method similar to
| |
| asBigIntegerOpt | back to summary |
|---|---|
| public Optional Overrides tools. Doc from tools. Method similar to
| |
| asDecimal | back to summary |
|---|---|
| public BigDecimal asDecimal() Overrides tools. Doc from tools. Method that will try to access value of this node as a
| |
| asDecimal | back to summary |
|---|---|
| public BigDecimal asDecimal(BigDecimal defaultValue) Overrides tools. Doc from tools. Method similar to
| |
| asDecimalOpt | back to summary |
|---|---|
| public Optional Overrides tools. Doc from tools. Method similar to
| |
| asDouble | back to summary |
|---|---|
| public double asDouble() Overrides tools. Doc from tools. Method similar to
| |
| asDouble | back to summary |
|---|---|
| public double asDouble(double defaultValue) Overrides tools. Doc from tools. Method similar to
| |
| asDoubleOpt | back to summary |
|---|---|
| public OptionalDouble asDoubleOpt() Overrides tools. Doc from tools. Method similar to
| |
| asFloat | back to summary |
|---|---|
| public float asFloat() Overrides tools. Doc from tools. Method similar to
| |
| asFloat | back to summary |
|---|---|
| public float asFloat(float defaultValue) Overrides tools. Doc from tools. Method similar to
| |
| asFloatOpt | back to summary |
|---|---|
| public Optional Overrides tools. Doc from tools. Method similar to
| |
| asInt | back to summary |
|---|---|
| public int asInt() Overrides tools. Doc from tools. Method similar to
| |
| asInt | back to summary |
|---|---|
| public int asInt(int defaultValue) Overrides tools. Doc from tools. Method similar to
| |
| asIntOpt | back to summary |
|---|---|
| public OptionalInt asIntOpt() Overrides tools. Doc from tools. Method similar to
| |
| asLong | back to summary |
|---|---|
| public long asLong() Overrides tools. Doc from tools. Method similar to
| |
| asLong | back to summary |
|---|---|
| public long asLong(long defaultValue) Overrides tools. Doc from tools. Method similar to
| |
| asLongOpt | back to summary |
|---|---|
| public OptionalLong asLongOpt() Overrides tools. Doc from tools. Method similar to
| |
| asShort | back to summary |
|---|---|
| public short asShort() Overrides tools. Doc from tools. Method similar to
| |
| asShort | back to summary |
|---|---|
| public short asShort(short defaultValue) Overrides tools. Doc from tools. Method similar to
| |
| asShortOpt | back to summary |
|---|---|
| public Optional Overrides tools. Doc from tools. Method similar to
| |
| asString | back to summary |
|---|---|
| public String asString() Overrides tools. Doc from tools. Method that will try to convert value of this node to a Note this is NOT same as NOT VALID ENCODED JSON for all nodes (although is for some, likeNumberNodes and BooleanNodes).
| |
| asString | back to summary |
|---|---|
| public String asString(String defaultValue) Overrides tools. Doc from tools. Similar to
| |
| asStringOpt | back to summary |
|---|---|
| public Optional Overrides tools. Doc from tools. Similar to
| |
| asToken | back to summary |
|---|---|
| public JsonToken asToken() Implements abstract tools. Implements tools. Doc from tools. Method that can be used for efficient type detection
when using stream abstraction for traversing nodes.
Will return the first
| |
| binaryValue | back to summary |
|---|---|
| public byte[] binaryValue() throws JacksonException Overrides tools. Doc from tools. Method that will try to access value of this node as binary value (Java
| |
| deepCopy | back to summary |
|---|---|
| public StringNode deepCopy() Overrides tools. Doc from tools. All current value nodes are immutable, so we can just return them as is.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Implements abstract tools. Doc from tools. Equality for node objects is defined as full (deep) value equality. This means that it is possible to compare complete JSON trees for equality by comparing equality of root nodes. Note marked as abstract to ensure all implementation
classes define it properly and not rely on definition
from
| |
| getBinaryValue | back to summary |
|---|---|
| public byte[] getBinaryValue(Base64Variant b64variant) throws JacksonException Method for accessing content String assuming they were base64 encoded; if so, content is decoded and resulting binary data is returned.
| |
| getNodeType | back to summary |
|---|---|
| public JsonNodeType getNodeType() Implements abstract tools. Doc from tools. Return the type of this node
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract tools. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| serialize | back to summary |
|---|---|
| public final void serialize(JsonGenerator g, SerializationContext provider) throws JacksonException Implements abstract tools. Implements tools. Doc from tools. Method called to serialize node instances using given generator.
| |
| stringValue | back to summary |
|---|---|
| public String stringValue() Overrides tools. Doc from tools. Method that will try to access value of this node as a Java Note for more conversions, use Note in Jackson 2.x, this method was named
| |
| stringValue | back to summary |
|---|---|
| public String stringValue(String defaultValue) Overrides tools. Doc from tools. Method similar to
| |
| stringValueOpt | back to summary |
|---|---|
| public Optional Overrides tools. Doc from tools. Method similar to
| |
| valueOf | back to summary |
|---|---|
| public static StringNode valueOf(String v) Factory method that should be used to construct instances. For some common cases, can reuse canonical instances: currently this is the case for empty Strings, in future possible for others as well. If null is passed, will return null.
| |