public abstract class JrsValue extends Object implements com.fasterxml.jackson.core.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(com.fasterxml.jackson.core.JsonPointer ptr) |
String |
asText()
Method that may be called on scalar value nodes to get a textual
representation of contents.
|
JrsValue |
at(com.fasterxml.jackson.core.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() |
com.fasterxml.jackson.core.JsonParser.NumberType |
numberType() |
com.fasterxml.jackson.core.JsonParser |
traverse() |
com.fasterxml.jackson.core.JsonParser |
traverse(com.fasterxml.jackson.core.ObjectCodec codec) |
protected abstract void |
write(com.fasterxml.jackson.core.JsonGenerator g,
JacksonJrsTreeCodec codec) |
public com.fasterxml.jackson.core.JsonParser.NumberType numberType()
numberType in interface com.fasterxml.jackson.core.TreeNodepublic boolean isMissingNode()
isMissingNode in interface com.fasterxml.jackson.core.TreeNodepublic boolean isArray()
isArray in interface com.fasterxml.jackson.core.TreeNodepublic boolean isObject()
isObject in interface com.fasterxml.jackson.core.TreeNodepublic Iterator<String> fieldNames()
fieldNames in interface com.fasterxml.jackson.core.TreeNodepublic JrsValue at(com.fasterxml.jackson.core.JsonPointer ptr)
at in interface com.fasterxml.jackson.core.TreeNodepublic com.fasterxml.jackson.core.JsonParser traverse()
traverse in interface com.fasterxml.jackson.core.TreeNodepublic com.fasterxml.jackson.core.JsonParser traverse(com.fasterxml.jackson.core.ObjectCodec codec)
traverse in interface com.fasterxml.jackson.core.TreeNodepublic boolean isNumber()
public String asText()
protected abstract JrsValue _at(com.fasterxml.jackson.core.JsonPointer ptr)
protected abstract void write(com.fasterxml.jackson.core.JsonGenerator g,
JacksonJrsTreeCodec codec)
throws IOException
IOExceptionCopyright © 2018 FasterXML. All rights reserved.