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() |
boolean |
isArray() |
boolean |
isMissingNode() |
boolean |
isNumber()
Method that allows checking whether this value is a JSON number
(integer or floating-point).
|
boolean |
isObject() |
JsonParser.NumberType |
numberType() |
JsonParser |
traverse() |
JsonParser |
traverse(ObjectCodec codec) |
protected abstract void |
write(JsonGenerator g,
JacksonJrsTreeCodec codec) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasToken, get, get, isContainerNode, isValueNode, path, path, sizepublic JsonParser.NumberType numberType()
numberType in interface TreeNodepublic boolean isMissingNode()
isMissingNode in interface TreeNodepublic Iterator<String> fieldNames()
fieldNames in interface TreeNodepublic 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
IOExceptionCopyright © 2017 FasterXML. All rights reserved.