public abstract class JrsValue extends Object implements TreeNode
TreeNode
and is usable
via matching TreeCodec
implementation (see JacksonJrsTreeCodec
).Modifier and Type | Class and Description |
---|---|
static class |
JrsValue.Scalar
Intermediate base class for non-structured types, other than
JrsMissing . |
Constructor and Description |
---|
JrsValue() |
Modifier and Type | Method and Description |
---|---|
protected abstract JrsValue |
_at(JsonPointer ptr) |
String |
asText()
Method that may be called on scalar value nodes to get a textual
representation of contents.
|
JrsValue |
at(JsonPointer ptr) |
JrsValue |
at(String s) |
Iterator<String> |
fieldNames() |
abstract JrsValue |
get(int i) |
abstract JrsValue |
get(String s) |
boolean |
isArray() |
boolean |
isEmbeddedValue() |
boolean |
isMissingNode() |
boolean |
isNull() |
boolean |
isNumber()
Method that allows checking whether this value is a JSON number
(integer or floating-point).
|
boolean |
isObject() |
JsonParser.NumberType |
numberType() |
abstract JrsValue |
path(int i) |
abstract JrsValue |
path(String s) |
JsonParser |
traverse() |
JsonParser |
traverse(ObjectCodec codec) |
protected abstract void |
write(JsonGenerator g,
JacksonJrsTreeCodec codec) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asToken, isContainerNode, isValueNode, size
public JsonParser.NumberType numberType()
numberType
in interface TreeNode
public boolean isMissingNode()
isMissingNode
in interface TreeNode
public boolean isNull()
public boolean isEmbeddedValue()
public Iterator<String> fieldNames()
fieldNames
in interface TreeNode
public JrsValue at(JsonPointer ptr)
public JsonParser traverse()
public JsonParser traverse(ObjectCodec codec)
public boolean isNumber()
public String asText()
protected abstract JrsValue _at(JsonPointer ptr)
protected abstract void write(JsonGenerator g, JacksonJrsTreeCodec codec) throws IOException
IOException
Copyright © 2020 FasterXML. All rights reserved.