| Constructor and Description |
|---|
GsonDataTree(com.google.gson.JsonElement element) |
| Modifier and Type | Method and Description |
|---|---|
Stream<GsonDataTree> |
asArray()
Gets a stream of the member nodes, as if this tree was a
JsonArray. |
boolean |
asBoolean()
Returns a
Boolean representation of this node. |
double |
asDouble()
Returns a
Double representation of this node. |
Stream<Map.Entry<Integer,GsonDataTree>> |
asIndexedArray()
Gets an indexed stream of the member nodes, as if this tree was a
JsonArray. |
int |
asInt()
Returns an
Integer representation of this node. |
Number |
asNumber()
Returns a
Number representation of this node. |
Stream<Map.Entry<String,GsonDataTree>> |
asObject()
Gets a stream of the member nodes, as if this tree was a
JsonObject. |
String |
asString()
Returns a
String representation of this node. |
com.google.gson.JsonElement |
getElement() |
GsonDataTree |
resolve(Object... path)
Resolves the given path.
|
public com.google.gson.JsonElement getElement()
@Nonnull public GsonDataTree resolve(@Nonnull Object... path)
DataTree@Nonnull public Stream<Map.Entry<String,GsonDataTree>> asObject()
DataTreeJsonObject.@Nonnull public Stream<GsonDataTree> asArray()
DataTreeJsonArray.@Nonnull public Stream<Map.Entry<Integer,GsonDataTree>> asIndexedArray()
DataTreeJsonArray.asIndexedArray in interface DataTree@Nonnull public String asString()
DataTreeString representation of this node.@Nonnull public Number asNumber()
DataTreeNumber representation of this node.public int asInt()
DataTreeInteger representation of this node.public double asDouble()
DataTreeDouble representation of this node.Copyright © 2020. All rights reserved.