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() |
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() |
com.fasterxml.jackson.core.JsonParser.NumberType |
numberType() |
abstract JrsValue |
path(int i) |
abstract JrsValue |
path(String s) |
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 boolean isNull()
public boolean isEmbeddedValue()
public 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()
public abstract JrsValue get(String s)
get in interface com.fasterxml.jackson.core.TreeNodepublic abstract JrsValue get(int i)
get in interface com.fasterxml.jackson.core.TreeNodepublic abstract JrsValue path(String s)
path in interface com.fasterxml.jackson.core.TreeNodepublic abstract JrsValue path(int i)
path in interface com.fasterxml.jackson.core.TreeNodeprotected abstract JrsValue _at(com.fasterxml.jackson.core.JsonPointer ptr)
protected abstract void write(com.fasterxml.jackson.core.JsonGenerator g,
JacksonJrsTreeCodec codec)
throws IOException
IOExceptionCopyright © 2025 FasterXML. All rights reserved.