1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc (1.8.0_162) on Tue Nov 05 19:39:10 PST 2019 --> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<title>ValueNode (jackson-databind 2.10.0 API)</title> 8<meta name="date" content="2019-11-05"> 9<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> 10<script type="text/javascript" src="../../../../../script.js"></script> 11</head> 12<body> 13<script type="text/javascript"><!-- 14 try { 15 if (location.href.indexOf('is-external=true') == -1) { 16 parent.document.title="ValueNode (jackson-databind 2.10.0 API)"; 17 } 18 } 19 catch(err) { 20 } 21//--> 22var methods = {"i0":10,"i1":6,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10}; 23var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"]}; 24var altColor = "altColor"; 25var rowColor = "rowColor"; 26var tableTab = "tableTab"; 27var activeTableTab = "activeTableTab"; 28</script> 29<noscript> 30<div>JavaScript is disabled on your browser.</div> 31</noscript> 32<!-- ========= START OF TOP NAVBAR ======= --> 33<div class="topNav"><a name="navbar.top"> 34<!-- --> 35</a> 36<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> 37<a name="navbar.top.firstrow"> 38<!-- --> 39</a> 40<ul class="navList" title="Navigation"> 41<li><a href="../../../../../overview-summary.html">Overview</a></li> 42<li><a href="package-summary.html">Package</a></li> 43<li class="navBarCell1Rev">Class</li> 44<li><a href="class-use/ValueNode.html">Use</a></li> 45<li><a href="package-tree.html">Tree</a></li> 46<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 47<li><a href="../../../../../index-all.html">Index</a></li> 48<li><a href="../../../../../help-doc.html">Help</a></li> 49</ul> 50</div> 51<div class="subNav"> 52<ul class="navList"> 53<li><a href="../../../../../com/fasterxml/jackson/databind/node/TreeTraversingParser.html" title="class in com.fasterxml.jackson.databind.node"><span class="typeNameLink">Prev Class</span></a></li> 54<li>Next Class</li> 55</ul> 56<ul class="navList"> 57<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/node/ValueNode.html" target="_top">Frames</a></li> 58<li><a href="ValueNode.html" target="_top">No Frames</a></li> 59</ul> 60<ul class="navList" id="allclasses_navbar_top"> 61<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 62</ul> 63<div> 64<script type="text/javascript"><!-- 65 allClassesLink = document.getElementById("allclasses_navbar_top"); 66 if(window==top) { 67 allClassesLink.style.display = "block"; 68 } 69 else { 70 allClassesLink.style.display = "none"; 71 } 72 //--> 73</script> 74</div> 75<div> 76<ul class="subNavList"> 77<li>Summary: </li> 78<li>Nested | </li> 79<li>Field | </li> 80<li><a href="#constructor.summary">Constr</a> | </li> 81<li><a href="#method.summary">Method</a></li> 82</ul> 83<ul class="subNavList"> 84<li>Detail: </li> 85<li>Field | </li> 86<li><a href="#constructor.detail">Constr</a> | </li> 87<li><a href="#method.detail">Method</a></li> 88</ul> 89</div> 90<a name="skip.navbar.top"> 91<!-- --> 92</a></div> 93<!-- ========= END OF TOP NAVBAR ========= --> 94<!-- ======== START OF CLASS DATA ======== --> 95<div class="header"> 96<div class="subTitle">com.fasterxml.jackson.databind.node</div> 97<h2 title="Class ValueNode" class="title">Class ValueNode</h2> 98</div> 99<div class="contentContainer"> 100<ul class="inheritance"> 101<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> 102<li> 103<ul class="inheritance"> 104<li><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html" title="class in com.fasterxml.jackson.databind">com.fasterxml.jackson.databind.JsonSerializable.Base</a></li> 105<li> 106<ul class="inheritance"> 107<li><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">com.fasterxml.jackson.databind.JsonNode</a></li> 108<li> 109<ul class="inheritance"> 110<li><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html" title="class in com.fasterxml.jackson.databind.node">com.fasterxml.jackson.databind.node.BaseJsonNode</a></li> 111<li> 112<ul class="inheritance"> 113<li>com.fasterxml.jackson.databind.node.ValueNode</li> 114</ul> 115</li> 116</ul> 117</li> 118</ul> 119</li> 120</ul> 121</li> 122</ul> 123<div class="description"> 124<ul class="blockList"> 125<li class="blockList"> 126<dl> 127<dt>All Implemented Interfaces:</dt> 128<dd><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>></dd> 129</dl> 130<dl> 131<dt>Direct Known Subclasses:</dt> 132<dd><a href="../../../../../com/fasterxml/jackson/databind/node/BinaryNode.html" title="class in com.fasterxml.jackson.databind.node">BinaryNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/BooleanNode.html" title="class in com.fasterxml.jackson.databind.node">BooleanNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/MissingNode.html" title="class in com.fasterxml.jackson.databind.node">MissingNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/NullNode.html" title="class in com.fasterxml.jackson.databind.node">NullNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html" title="class in com.fasterxml.jackson.databind.node">NumericNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html" title="class in com.fasterxml.jackson.databind.node">POJONode</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/TextNode.html" title="class in com.fasterxml.jackson.databind.node">TextNode</a></dd> 133</dl> 134<hr> 135<br> 136<pre>public abstract class <span class="typeNameLabel">ValueNode</span> 137extends <a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html" title="class in com.fasterxml.jackson.databind.node">BaseJsonNode</a></pre> 138<div class="block">This intermediate base class is used for all leaf nodes, that is, 139 all non-container (array or object) nodes, except for the 140 "missing node".</div> 141<dl> 142<dt><span class="seeLabel">See Also:</span></dt> 143<dd><a href="../../../../../serialized-form.html#com.fasterxml.jackson.databind.node.ValueNode">Serialized Form</a></dd> 144</dl> 145</li> 146</ul> 147</div> 148<div class="summary"> 149<ul class="blockList"> 150<li class="blockList"> 151<!-- ======== NESTED CLASS SUMMARY ======== --> 152<ul class="blockList"> 153<li class="blockList"><a name="nested.class.summary"> 154<!-- --> 155</a> 156<h3>Nested Class Summary</h3> 157<ul class="blockList"> 158<li class="blockList"><a name="nested.classes.inherited.from.class.com.fasterxml.jackson.databind.JsonSerializable"> 159<!-- --> 160</a> 161<h3>Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.<a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a></h3> 162<code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html" title="class in com.fasterxml.jackson.databind">JsonSerializable.Base</a></code></li> 163</ul> 164</li> 165</ul> 166<!-- ======== CONSTRUCTOR SUMMARY ======== --> 167<ul class="blockList"> 168<li class="blockList"><a name="constructor.summary"> 169<!-- --> 170</a> 171<h3>Constructor Summary</h3> 172<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 173<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 174<tr> 175<th class="colFirst" scope="col">Modifier</th> 176<th class="colLast" scope="col">Constructor and Description</th> 177</tr> 178<tr class="altColor"> 179<td class="colFirst"><code>protected </code></td> 180<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#ValueNode--">ValueNode</a></span>()</code> </td> 181</tr> 182</table> 183</li> 184</ul> 185<!-- ========== METHOD SUMMARY =========== --> 186<ul class="blockList"> 187<li class="blockList"><a name="method.summary"> 188<!-- --> 189</a> 190<h3>Method Summary</h3> 191<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 192<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> 193<tr> 194<th class="colFirst" scope="col">Modifier and Type</th> 195<th class="colLast" scope="col">Method and Description</th> 196</tr> 197<tr id="i0" class="altColor"> 198<td class="colFirst"><code>protected <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 199<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#Z:Z_at-com.fasterxml.jackson.core.JsonPointer-">_at</a></span>(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonPointer</a> ptr)</code> </td> 200</tr> 201<tr id="i1" class="rowColor"> 202<td class="colFirst"><code>abstract <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonToken.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonToken</a></code></td> 203<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#asToken--">asToken</a></span>()</code> 204<div class="block">Method that can be used for efficient type detection 205 when using stream abstraction for traversing nodes.</div> 206</td> 207</tr> 208<tr id="i2" class="altColor"> 209<td class="colFirst"><code><T extends <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>><br>T</code></td> 210<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#deepCopy--">deepCopy</a></span>()</code> 211<div class="block">All current value nodes are immutable, so we can just return 212 them as is.</div> 213</td> 214</tr> 215<tr id="i3" class="rowColor"> 216<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/node/ObjectNode.html" title="class in com.fasterxml.jackson.databind.node">ObjectNode</a></code></td> 217<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#findParent-java.lang.String-">findParent</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 218<div class="block">Method for finding a JSON Object that contains specified field, 219 within this node or its descendants.</div> 220</td> 221</tr> 222<tr id="i4" class="altColor"> 223<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>></code></td> 224<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#findParents-java.lang.String-java.util.List-">findParents</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName, 225 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> foundSoFar)</code> </td> 226</tr> 227<tr id="i5" class="rowColor"> 228<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 229<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#findValue-java.lang.String-">findValue</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 230<div class="block">Method for finding a JSON Object field with specified name in this 231 node or its child nodes, and returning value it has.</div> 232</td> 233</tr> 234<tr id="i6" class="altColor"> 235<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>></code></td> 236<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#findValues-java.lang.String-java.util.List-">findValues</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName, 237 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> foundSoFar)</code> </td> 238</tr> 239<tr id="i7" class="rowColor"> 240<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> 241<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#findValuesAsText-java.lang.String-java.util.List-">findValuesAsText</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName, 242 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> foundSoFar)</code> </td> 243</tr> 244<tr id="i8" class="altColor"> 245<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 246<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#get-int-">get</a></span>(int index)</code> 247<div class="block">Method for accessing value of the specified element of 248 an array node.</div> 249</td> 250</tr> 251<tr id="i9" class="rowColor"> 252<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 253<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#get-java.lang.String-">get</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 254<div class="block">Method for accessing value of the specified field of 255 an object node.</div> 256</td> 257</tr> 258<tr id="i10" class="altColor"> 259<td class="colFirst"><code>boolean</code></td> 260<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#has-int-">has</a></span>(int index)</code> 261<div class="block">Method that allows checking whether this node is JSON Array node 262 and contains a value for specified index 263 If this is the case 264 (including case of specified indexing having null as value), returns true; 265 otherwise returns false.</div> 266</td> 267</tr> 268<tr id="i11" class="rowColor"> 269<td class="colFirst"><code>boolean</code></td> 270<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#has-java.lang.String-">has</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 271<div class="block">Method that allows checking whether this node is JSON Object node 272 and contains value for specified property.</div> 273</td> 274</tr> 275<tr id="i12" class="altColor"> 276<td class="colFirst"><code>boolean</code></td> 277<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#hasNonNull-int-">hasNonNull</a></span>(int index)</code> 278<div class="block">Method that is similar to <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#has-int-"><code>JsonNode.has(int)</code></a>, but that will 279 return <code>false</code> for explicitly added nulls.</div> 280</td> 281</tr> 282<tr id="i13" class="rowColor"> 283<td class="colFirst"><code>boolean</code></td> 284<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#hasNonNull-java.lang.String-">hasNonNull</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 285<div class="block">Method that is similar to <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#has-java.lang.String-"><code>JsonNode.has(String)</code></a>, but that will 286 return <code>false</code> for explicitly added nulls.</div> 287</td> 288</tr> 289<tr id="i14" class="altColor"> 290<td class="colFirst"><code>boolean</code></td> 291<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#isEmpty--">isEmpty</a></span>()</code> 292<div class="block">Convenience method that is functionally same as:</div> 293</td> 294</tr> 295<tr id="i15" class="rowColor"> 296<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 297<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#path-int-">path</a></span>(int index)</code> 298<div class="block">This method is similar to <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#get-int-"><code>JsonNode.get(int)</code></a>, except 299 that instead of returning null if no such element exists (due 300 to index being out of range, or this node not being an array), 301 a "missing node" (node that returns true for 302 <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>JsonNode.isMissingNode()</code></a>) will be returned.</div> 303</td> 304</tr> 305<tr id="i16" class="altColor"> 306<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 307<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#path-java.lang.String-">path</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 308<div class="block">This method is similar to <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#get-java.lang.String-"><code>JsonNode.get(String)</code></a>, except 309 that instead of returning null if no such value exists (due 310 to this node not being an object, or object not having value 311 for the specified field), 312 a "missing node" (node that returns true for 313 <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>JsonNode.isMissingNode()</code></a>) will be returned.</div> 314</td> 315</tr> 316<tr id="i17" class="rowColor"> 317<td class="colFirst"><code>void</code></td> 318<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#serializeWithType-com.fasterxml.jackson.core.JsonGenerator-com.fasterxml.jackson.databind.SerializerProvider-com.fasterxml.jackson.databind.jsontype.TypeSerializer-">serializeWithType</a></span>(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> g, 319 <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> provider, 320 <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a> typeSer)</code> 321<div class="block">Type information is needed, even if JsonNode instances are "plain" JSON, 322 since they may be mixed with other types.</div> 323</td> 324</tr> 325</table> 326<ul class="blockList"> 327<li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.databind.node.BaseJsonNode"> 328<!-- --> 329</a> 330<h3>Methods inherited from class com.fasterxml.jackson.databind.node.<a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html" title="class in com.fasterxml.jackson.databind.node">BaseJsonNode</a></h3> 331<code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#findPath-java.lang.String-">findPath</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#hashCode--">hashCode</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#numberType--">numberType</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#required-int-">required</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#required-java.lang.String-">required</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#serialize-com.fasterxml.jackson.core.JsonGenerator-com.fasterxml.jackson.databind.SerializerProvider-">serialize</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#toPrettyString--">toPrettyString</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#toString--">toString</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#traverse--">traverse</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#traverse-com.fasterxml.jackson.core.ObjectCodec-">traverse</a></code></li> 332</ul> 333<ul class="blockList"> 334<li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.databind.JsonNode"> 335<!-- --> 336</a> 337<h3>Methods inherited from class com.fasterxml.jackson.databind.<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></h3> 338<code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#Z:Z_reportRequiredViolation-java.lang.String-java.lang.Object...-">_reportRequiredViolation</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#Z:Z_this--">_this</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean--">asBoolean</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean-boolean-">asBoolean</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble--">asDouble</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble-double-">asDouble</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt--">asInt</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt-int-">asInt</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong--">asLong</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong-long-">asLong</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asText--">asText</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asText-java.lang.String-">asText</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#at-com.fasterxml.jackson.core.JsonPointer-">at</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#at-java.lang.String-">at</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#bigIntegerValue--">bigIntegerValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#binaryValue--">binaryValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#booleanValue--">booleanValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt--">canConvertToInt</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToLong--">canConvertToLong</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#decimalValue--">decimalValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#doubleValue--">doubleValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#elements--">elements</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#equals-java.util.Comparator-com.fasterxml.jackson.databind.JsonNode-">equals</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#equals-java.lang.Object-">equals</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#fieldNames--">fieldNames</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#fields--">fields</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findParents-java.lang.String-">findParents</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findValues-java.lang.String-">findValues</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findValuesAsText-java.lang.String-">findValuesAsText</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#floatValue--">floatValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#getNodeType--">getNodeType</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#intValue--">intValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isArray--">isArray</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBigDecimal--">isBigDecimal</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBigInteger--">isBigInteger</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBinary--">isBinary</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBoolean--">isBoolean</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isContainerNode--">isContainerNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isDouble--">isDouble</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isFloat--">isFloat</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isFloatingPointNumber--">isFloatingPointNumber</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isInt--">isInt</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isIntegralNumber--">isIntegralNumber</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isLong--">isLong</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--">isMissingNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNull--">isNull</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--">isNumber</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isObject--">isObject</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isPojo--">isPojo</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isShort--">isShort</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isTextual--">isTextual</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode--">isValueNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#iterator--">iterator</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#longValue--">longValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#numberValue--">numberValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#require--">require</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#requiredAt-com.fasterxml.jackson.core.JsonPointer-">requiredAt</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#requiredAt-java.lang.String-">requiredAt</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#requireNonNull--">requireNonNull</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#shortValue--">shortValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#size--">size</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#textValue--">textValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#with-java.lang.String-">with</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#withArray-java.lang.String-">withArray</a></code></li> 339</ul> 340<ul class="blockList"> 341<li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.databind.JsonSerializable.Base"> 342<!-- --> 343</a> 344<h3>Methods inherited from class com.fasterxml.jackson.databind.<a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html" title="class in com.fasterxml.jackson.databind">JsonSerializable.Base</a></h3> 345<code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html#isEmpty-com.fasterxml.jackson.databind.SerializerProvider-">isEmpty</a></code></li> 346</ul> 347<ul class="blockList"> 348<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> 349<!-- --> 350</a> 351<h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 352<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> 353</ul> 354<ul class="blockList"> 355<li class="blockList"><a name="methods.inherited.from.class.java.lang.Iterable"> 356<!-- --> 357</a> 358<h3>Methods inherited from interface java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a></h3> 359<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true#forEach-java.util.function.Consumer-" title="class or interface in java.lang">forEach</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true#spliterator--" title="class or interface in java.lang">spliterator</a></code></li> 360</ul> 361</li> 362</ul> 363</li> 364</ul> 365</div> 366<div class="details"> 367<ul class="blockList"> 368<li class="blockList"> 369<!-- ========= CONSTRUCTOR DETAIL ======== --> 370<ul class="blockList"> 371<li class="blockList"><a name="constructor.detail"> 372<!-- --> 373</a> 374<h3>Constructor Detail</h3> 375<a name="ValueNode--"> 376<!-- --> 377</a> 378<ul class="blockListLast"> 379<li class="blockList"> 380<h4>ValueNode</h4> 381<pre>protected ValueNode()</pre> 382</li> 383</ul> 384</li> 385</ul> 386<!-- ============ METHOD DETAIL ========== --> 387<ul class="blockList"> 388<li class="blockList"><a name="method.detail"> 389<!-- --> 390</a> 391<h3>Method Detail</h3> 392<a name="Z:Z_at-com.fasterxml.jackson.core.JsonPointer-"> 393<!-- --> 394</a> 395<ul class="blockList"> 396<li class="blockList"> 397<h4>_at</h4> 398<pre>protected <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> _at(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonPointer</a> ptr)</pre> 399<dl> 400<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 401<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#Z:Z_at-com.fasterxml.jackson.core.JsonPointer-">_at</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 402</dl> 403</li> 404</ul> 405<a name="deepCopy--"> 406<!-- --> 407</a> 408<ul class="blockList"> 409<li class="blockList"> 410<h4>deepCopy</h4> 411<pre>public <T extends <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> T deepCopy()</pre> 412<div class="block">All current value nodes are immutable, so we can just return 413 them as is.</div> 414<dl> 415<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 416<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#deepCopy--">deepCopy</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 417<dt><span class="returnLabel">Returns:</span></dt> 418<dd>Node that is either a copy of this node (and all non-leaf 419 children); or, for immutable leaf nodes, node itself.</dd> 420</dl> 421</li> 422</ul> 423<a name="asToken--"> 424<!-- --> 425</a> 426<ul class="blockList"> 427<li class="blockList"> 428<h4>asToken</h4> 429<pre>public abstract <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonToken.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonToken</a> asToken()</pre> 430<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#asToken--">BaseJsonNode</a></code></span></div> 431<div class="block">Method that can be used for efficient type detection 432 when using stream abstraction for traversing nodes. 433 Will return the first <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonToken.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonToken</code></a> that equivalent 434 stream event would produce (for most nodes there is just 435 one token but for structured/container types multiple)</div> 436<dl> 437<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 438<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#asToken--" title="class or interface in com.fasterxml.jackson.core">asToken</a></code> in interface <code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 439<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 440<dd><code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#asToken--">asToken</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html" title="class in com.fasterxml.jackson.databind.node">BaseJsonNode</a></code></dd> 441</dl> 442</li> 443</ul> 444<a name="serializeWithType-com.fasterxml.jackson.core.JsonGenerator-com.fasterxml.jackson.databind.SerializerProvider-com.fasterxml.jackson.databind.jsontype.TypeSerializer-"> 445<!-- --> 446</a> 447<ul class="blockList"> 448<li class="blockList"> 449<h4>serializeWithType</h4> 450<pre>public void serializeWithType(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> g, 451 <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> provider, 452 <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a> typeSer) 453 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 454<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#serializeWithType-com.fasterxml.jackson.core.JsonGenerator-com.fasterxml.jackson.databind.SerializerProvider-com.fasterxml.jackson.databind.jsontype.TypeSerializer-">BaseJsonNode</a></code></span></div> 455<div class="block">Type information is needed, even if JsonNode instances are "plain" JSON, 456 since they may be mixed with other types.</div> 457<dl> 458<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 459<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html#serializeWithType-com.fasterxml.jackson.core.JsonGenerator-com.fasterxml.jackson.databind.SerializerProvider-com.fasterxml.jackson.databind.jsontype.TypeSerializer-">serializeWithType</a></code> in interface <code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a></code></dd> 460<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 461<dd><code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#serializeWithType-com.fasterxml.jackson.core.JsonGenerator-com.fasterxml.jackson.databind.SerializerProvider-com.fasterxml.jackson.databind.jsontype.TypeSerializer-">serializeWithType</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html" title="class in com.fasterxml.jackson.databind.node">BaseJsonNode</a></code></dd> 462<dt><span class="throwsLabel">Throws:</span></dt> 463<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 464</dl> 465</li> 466</ul> 467<a name="isEmpty--"> 468<!-- --> 469</a> 470<ul class="blockList"> 471<li class="blockList"> 472<h4>isEmpty</h4> 473<pre>public boolean isEmpty()</pre> 474<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isEmpty--">JsonNode</a></code></span></div> 475<div class="block">Convenience method that is functionally same as: 476<pre> 477 size() == 0 478</pre> 479 for all node types.</div> 480<dl> 481<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 482<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isEmpty--">isEmpty</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 483</dl> 484</li> 485</ul> 486<a name="get-int-"> 487<!-- --> 488</a> 489<ul class="blockList"> 490<li class="blockList"> 491<h4>get</h4> 492<pre>public final <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> get(int index)</pre> 493<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#get-int-">JsonNode</a></code></span></div> 494<div class="block">Method for accessing value of the specified element of 495 an array node. For other nodes, null is always returned. 496<p> 497 For array nodes, index specifies 498 exact location within array and allows for efficient iteration 499 over child elements (underlying storage is guaranteed to 500 be efficiently indexable, i.e. has random-access to elements). 501 If index is less than 0, or equal-or-greater than 502 <code>node.size()</code>, null is returned; no exception is 503 thrown for any index. 504<p> 505 NOTE: if the element value has been explicitly set as <code>null</code> 506 (which is different from removal!), 507 a <a href="../../../../../com/fasterxml/jackson/databind/node/NullNode.html" title="class in com.fasterxml.jackson.databind.node"><code>NullNode</code></a> will be returned, 508 not null.</div> 509<dl> 510<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 511<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#get-int-" title="class or interface in com.fasterxml.jackson.core">get</a></code> in interface <code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 512<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 513<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#get-int-">get</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 514<dt><span class="returnLabel">Returns:</span></dt> 515<dd>Node that represent value of the specified element, 516 if this node is an array and has specified element. 517 Null otherwise.</dd> 518</dl> 519</li> 520</ul> 521<a name="path-int-"> 522<!-- --> 523</a> 524<ul class="blockList"> 525<li class="blockList"> 526<h4>path</h4> 527<pre>public final <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> path(int index)</pre> 528<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#path-int-">JsonNode</a></code></span></div> 529<div class="block">This method is similar to <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#get-int-"><code>JsonNode.get(int)</code></a>, except 530 that instead of returning null if no such element exists (due 531 to index being out of range, or this node not being an array), 532 a "missing node" (node that returns true for 533 <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>JsonNode.isMissingNode()</code></a>) will be returned. This allows for 534 convenient and safe chained access via path calls.</div> 535<dl> 536<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 537<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#path-int-" title="class or interface in com.fasterxml.jackson.core">path</a></code> in interface <code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 538<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 539<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#path-int-">path</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 540</dl> 541</li> 542</ul> 543<a name="has-int-"> 544<!-- --> 545</a> 546<ul class="blockList"> 547<li class="blockList"> 548<h4>has</h4> 549<pre>public final boolean has(int index)</pre> 550<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#has-int-">JsonNode</a></code></span></div> 551<div class="block">Method that allows checking whether this node is JSON Array node 552 and contains a value for specified index 553 If this is the case 554 (including case of specified indexing having null as value), returns true; 555 otherwise returns false. 556<p> 557 Note: array element indexes are 0-based. 558<p> 559 This method is equivalent to: 560<pre> 561 node.get(index) != null 562</pre> 563<p> 564 NOTE: this method will return <code>true</code> for explicitly added 565 null values.</div> 566<dl> 567<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 568<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#has-int-">has</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 569<dt><span class="paramLabel">Parameters:</span></dt> 570<dd><code>index</code> - Index to check</dd> 571<dt><span class="returnLabel">Returns:</span></dt> 572<dd>True if this node is a JSON Object node, and has a property 573 entry with specified name (with any value, including null value)</dd> 574</dl> 575</li> 576</ul> 577<a name="hasNonNull-int-"> 578<!-- --> 579</a> 580<ul class="blockList"> 581<li class="blockList"> 582<h4>hasNonNull</h4> 583<pre>public final boolean hasNonNull(int index)</pre> 584<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#hasNonNull-int-">JsonNode</a></code></span></div> 585<div class="block">Method that is similar to <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#has-int-"><code>JsonNode.has(int)</code></a>, but that will 586 return <code>false</code> for explicitly added nulls. 587<p> 588 This method is equivalent to: 589<pre> 590 node.get(index) != null && !node.get(index).isNull() 591</pre></div> 592<dl> 593<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 594<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#hasNonNull-int-">hasNonNull</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 595</dl> 596</li> 597</ul> 598<a name="get-java.lang.String-"> 599<!-- --> 600</a> 601<ul class="blockList"> 602<li class="blockList"> 603<h4>get</h4> 604<pre>public final <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> get(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> 605<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#get-java.lang.String-">JsonNode</a></code></span></div> 606<div class="block">Method for accessing value of the specified field of 607 an object node. If this node is not an object (or it 608 does not have a value for specified field name), or 609 if there is no field with such name, null is returned. 610<p> 611 NOTE: if the property value has been explicitly set as <code>null</code> 612 (which is different from removal!), 613 a <a href="../../../../../com/fasterxml/jackson/databind/node/NullNode.html" title="class in com.fasterxml.jackson.databind.node"><code>NullNode</code></a> will be returned, 614 not null.</div> 615<dl> 616<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 617<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#get-java.lang.String-" title="class or interface in com.fasterxml.jackson.core">get</a></code> in interface <code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 618<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 619<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#get-java.lang.String-">get</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 620<dt><span class="returnLabel">Returns:</span></dt> 621<dd>Node that represent value of the specified field, 622 if this node is an object and has value for the specified 623 field. Null otherwise.</dd> 624</dl> 625</li> 626</ul> 627<a name="path-java.lang.String-"> 628<!-- --> 629</a> 630<ul class="blockList"> 631<li class="blockList"> 632<h4>path</h4> 633<pre>public final <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> path(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> 634<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#path-java.lang.String-">JsonNode</a></code></span></div> 635<div class="block">This method is similar to <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#get-java.lang.String-"><code>JsonNode.get(String)</code></a>, except 636 that instead of returning null if no such value exists (due 637 to this node not being an object, or object not having value 638 for the specified field), 639 a "missing node" (node that returns true for 640 <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>JsonNode.isMissingNode()</code></a>) will be returned. This allows for 641 convenient and safe chained access via path calls.</div> 642<dl> 643<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 644<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#path-java.lang.String-" title="class or interface in com.fasterxml.jackson.core">path</a></code> in interface <code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 645<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 646<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#path-java.lang.String-">path</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 647</dl> 648</li> 649</ul> 650<a name="has-java.lang.String-"> 651<!-- --> 652</a> 653<ul class="blockList"> 654<li class="blockList"> 655<h4>has</h4> 656<pre>public final boolean has(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> 657<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#has-java.lang.String-">JsonNode</a></code></span></div> 658<div class="block">Method that allows checking whether this node is JSON Object node 659 and contains value for specified property. If this is the case 660 (including properties with explicit null values), returns true; 661 otherwise returns false. 662<p> 663 This method is equivalent to: 664<pre> 665 node.get(fieldName) != null 666</pre> 667 (since return value of get() is node, not value node contains) 668<p> 669 NOTE: when explicit <code>null</code> values are added, this 670 method will return <code>true</code> for such properties.</div> 671<dl> 672<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 673<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#has-java.lang.String-">has</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 674<dt><span class="paramLabel">Parameters:</span></dt> 675<dd><code>fieldName</code> - Name of element to check</dd> 676<dt><span class="returnLabel">Returns:</span></dt> 677<dd>True if this node is a JSON Object node, and has a property 678 entry with specified name (with any value, including null value)</dd> 679</dl> 680</li> 681</ul> 682<a name="hasNonNull-java.lang.String-"> 683<!-- --> 684</a> 685<ul class="blockList"> 686<li class="blockList"> 687<h4>hasNonNull</h4> 688<pre>public final boolean hasNonNull(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> 689<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#hasNonNull-java.lang.String-">JsonNode</a></code></span></div> 690<div class="block">Method that is similar to <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#has-java.lang.String-"><code>JsonNode.has(String)</code></a>, but that will 691 return <code>false</code> for explicitly added nulls. 692<p> 693 This method is functionally equivalent to: 694<pre> 695 node.get(fieldName) != null && !node.get(fieldName).isNull() 696</pre></div> 697<dl> 698<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 699<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#hasNonNull-java.lang.String-">hasNonNull</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 700</dl> 701</li> 702</ul> 703<a name="findValue-java.lang.String-"> 704<!-- --> 705</a> 706<ul class="blockList"> 707<li class="blockList"> 708<h4>findValue</h4> 709<pre>public final <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> findValue(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> 710<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findValue-java.lang.String-">JsonNode</a></code></span></div> 711<div class="block">Method for finding a JSON Object field with specified name in this 712 node or its child nodes, and returning value it has. 713 If no matching field is found in this node or its descendants, returns null.</div> 714<dl> 715<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 716<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findValue-java.lang.String-">findValue</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 717<dt><span class="paramLabel">Parameters:</span></dt> 718<dd><code>fieldName</code> - Name of field to look for</dd> 719<dt><span class="returnLabel">Returns:</span></dt> 720<dd>Value of first matching node found, if any; null if none</dd> 721</dl> 722</li> 723</ul> 724<a name="findParent-java.lang.String-"> 725<!-- --> 726</a> 727<ul class="blockList"> 728<li class="blockList"> 729<h4>findParent</h4> 730<pre>public final <a href="../../../../../com/fasterxml/jackson/databind/node/ObjectNode.html" title="class in com.fasterxml.jackson.databind.node">ObjectNode</a> findParent(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> 731<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findParent-java.lang.String-">JsonNode</a></code></span></div> 732<div class="block">Method for finding a JSON Object that contains specified field, 733 within this node or its descendants. 734 If no matching field is found in this node or its descendants, returns null.</div> 735<dl> 736<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 737<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findParent-java.lang.String-">findParent</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 738<dt><span class="paramLabel">Parameters:</span></dt> 739<dd><code>fieldName</code> - Name of field to look for</dd> 740<dt><span class="returnLabel">Returns:</span></dt> 741<dd>Value of first matching node found, if any; null if none</dd> 742</dl> 743</li> 744</ul> 745<a name="findValues-java.lang.String-java.util.List-"> 746<!-- --> 747</a> 748<ul class="blockList"> 749<li class="blockList"> 750<h4>findValues</h4> 751<pre>public final <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> findValues(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName, 752 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> foundSoFar)</pre> 753<dl> 754<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 755<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findValues-java.lang.String-java.util.List-">findValues</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 756</dl> 757</li> 758</ul> 759<a name="findValuesAsText-java.lang.String-java.util.List-"> 760<!-- --> 761</a> 762<ul class="blockList"> 763<li class="blockList"> 764<h4>findValuesAsText</h4> 765<pre>public final <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> findValuesAsText(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName, 766 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> foundSoFar)</pre> 767<dl> 768<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 769<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findValuesAsText-java.lang.String-java.util.List-">findValuesAsText</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 770</dl> 771</li> 772</ul> 773<a name="findParents-java.lang.String-java.util.List-"> 774<!-- --> 775</a> 776<ul class="blockListLast"> 777<li class="blockList"> 778<h4>findParents</h4> 779<pre>public final <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> findParents(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName, 780 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> foundSoFar)</pre> 781<dl> 782<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 783<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findParents-java.lang.String-java.util.List-">findParents</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 784</dl> 785</li> 786</ul> 787</li> 788</ul> 789</li> 790</ul> 791</div> 792</div> 793<!-- ========= END OF CLASS DATA ========= --> 794<!-- ======= START OF BOTTOM NAVBAR ====== --> 795<div class="bottomNav"><a name="navbar.bottom"> 796<!-- --> 797</a> 798<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> 799<a name="navbar.bottom.firstrow"> 800<!-- --> 801</a> 802<ul class="navList" title="Navigation"> 803<li><a href="../../../../../overview-summary.html">Overview</a></li> 804<li><a href="package-summary.html">Package</a></li> 805<li class="navBarCell1Rev">Class</li> 806<li><a href="class-use/ValueNode.html">Use</a></li> 807<li><a href="package-tree.html">Tree</a></li> 808<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 809<li><a href="../../../../../index-all.html">Index</a></li> 810<li><a href="../../../../../help-doc.html">Help</a></li> 811</ul> 812</div> 813<div class="subNav"> 814<ul class="navList"> 815<li><a href="../../../../../com/fasterxml/jackson/databind/node/TreeTraversingParser.html" title="class in com.fasterxml.jackson.databind.node"><span class="typeNameLink">Prev Class</span></a></li> 816<li>Next Class</li> 817</ul> 818<ul class="navList"> 819<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/node/ValueNode.html" target="_top">Frames</a></li> 820<li><a href="ValueNode.html" target="_top">No Frames</a></li> 821</ul> 822<ul class="navList" id="allclasses_navbar_bottom"> 823<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 824</ul> 825<div> 826<script type="text/javascript"><!-- 827 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 828 if(window==top) { 829 allClassesLink.style.display = "block"; 830 } 831 else { 832 allClassesLink.style.display = "none"; 833 } 834 //--> 835</script> 836</div> 837<div> 838<ul class="subNavList"> 839<li>Summary: </li> 840<li>Nested | </li> 841<li>Field | </li> 842<li><a href="#constructor.summary">Constr</a> | </li> 843<li><a href="#method.summary">Method</a></li> 844</ul> 845<ul class="subNavList"> 846<li>Detail: </li> 847<li>Field | </li> 848<li><a href="#constructor.detail">Constr</a> | </li> 849<li><a href="#method.detail">Method</a></li> 850</ul> 851</div> 852<a name="skip.navbar.bottom"> 853<!-- --> 854</a></div> 855<!-- ======== END OF BOTTOM NAVBAR ======= --> 856<p class="legalCopy"><small>Copyright © 2008–2019 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 857</body> 858</html> 859