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 (version 1.7.0_10-ea) on Sun Jul 14 20:03:21 PDT 2013 --> 6<title>JsonToken (Jackson JSON Processor)</title> 7<meta name="date" content="2013-07-14"> 8<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> 9</head> 10<body> 11<script type="text/javascript"><!-- 12 if (location.href.indexOf('is-external=true') == -1) { 13 parent.document.title="JsonToken (Jackson JSON Processor)"; 14 } 15//--> 16</script> 17<noscript> 18<div>JavaScript is disabled on your browser.</div> 19</noscript> 20<!-- ========= START OF TOP NAVBAR ======= --> 21<div class="topNav"><a name="navbar_top"> 22<!-- --> 23</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> 24<!-- --> 25</a> 26<ul class="navList" title="Navigation"> 27<li><a href="../../../overview-summary.html">Overview</a></li> 28<li><a href="package-summary.html">Package</a></li> 29<li class="navBarCell1Rev">Class</li> 30<li><a href="class-use/JsonToken.html">Use</a></li> 31<li><a href="package-tree.html">Tree</a></li> 32<li><a href="../../../deprecated-list.html">Deprecated</a></li> 33<li><a href="../../../index-all.html">Index</a></li> 34<li><a href="../../../help-doc.html">Help</a></li> 35</ul> 36</div> 37<div class="subNav"> 38<ul class="navList"> 39<li><a href="../../../org/codehaus/jackson/JsonStreamContext.html" title="class in org.codehaus.jackson"><span class="strong">Prev Class</span></a></li> 40<li><a href="../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson"><span class="strong">Next Class</span></a></li> 41</ul> 42<ul class="navList"> 43<li><a href="../../../index.html?org/codehaus/jackson/JsonToken.html" target="_top">Frames</a></li> 44<li><a href="JsonToken.html" target="_top">No Frames</a></li> 45</ul> 46<ul class="navList" id="allclasses_navbar_top"> 47<li><a href="../../../allclasses-noframe.html">All Classes</a></li> 48</ul> 49<div> 50<script type="text/javascript"><!-- 51 allClassesLink = document.getElementById("allclasses_navbar_top"); 52 if(window==top) { 53 allClassesLink.style.display = "block"; 54 } 55 else { 56 allClassesLink.style.display = "none"; 57 } 58 //--> 59</script> 60</div> 61<div> 62<ul class="subNavList"> 63<li>Summary: </li> 64<li>Nested | </li> 65<li><a href="#enum_constant_summary">Enum Constants</a> | </li> 66<li>Field | </li> 67<li><a href="#method_summary">Method</a></li> 68</ul> 69<ul class="subNavList"> 70<li>Detail: </li> 71<li><a href="#enum_constant_detail">Enum Constants</a> | </li> 72<li>Field | </li> 73<li><a href="#method_detail">Method</a></li> 74</ul> 75</div> 76<a name="skip-navbar_top"> 77<!-- --> 78</a></div> 79<!-- ========= END OF TOP NAVBAR ========= --> 80<!-- ======== START OF CLASS DATA ======== --> 81<div class="header"> 82<div class="subTitle">org.codehaus.jackson</div> 83<h2 title="Enum JsonToken" class="title">Enum JsonToken</h2> 84</div> 85<div class="contentContainer"> 86<ul class="inheritance"> 87<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> 88<li> 89<ul class="inheritance"> 90<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">java.lang.Enum</a><<a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a>></li> 91<li> 92<ul class="inheritance"> 93<li>org.codehaus.jackson.JsonToken</li> 94</ul> 95</li> 96</ul> 97</li> 98</ul> 99<div class="description"> 100<ul class="blockList"> 101<li class="blockList"> 102<dl> 103<dt>All Implemented Interfaces:</dt> 104<dd><a href="http://docs.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><<a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a>></dd> 105</dl> 106<hr> 107<br> 108<pre>public enum <span class="strong">JsonToken</span> 109extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><<a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a>></pre> 110<div class="block">Enumeration for basic token types used for returning results 111 of parsing JSON content.</div> 112</li> 113</ul> 114</div> 115<div class="summary"> 116<ul class="blockList"> 117<li class="blockList"> 118<!-- =========== ENUM CONSTANT SUMMARY =========== --> 119<ul class="blockList"> 120<li class="blockList"><a name="enum_constant_summary"> 121<!-- --> 122</a> 123<h3>Enum Constant Summary</h3> 124<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Enum Constant Summary table, listing enum constants, and an explanation"> 125<caption><span>Enum Constants</span><span class="tabEnd"> </span></caption> 126<tr> 127<th class="colOne" scope="col">Enum Constant and Description</th> 128</tr> 129<tr class="altColor"> 130<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonToken.html#END_ARRAY">END_ARRAY</a></strong></code> 131<div class="block">START_OBJECT is returned when encountering ']' 132 which signals ending of an Array value</div> 133</td> 134</tr> 135<tr class="rowColor"> 136<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonToken.html#END_OBJECT">END_OBJECT</a></strong></code> 137<div class="block">START_OBJECT is returned when encountering '}' 138 which signals ending of an Object value</div> 139</td> 140</tr> 141<tr class="altColor"> 142<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonToken.html#FIELD_NAME">FIELD_NAME</a></strong></code> 143<div class="block">FIELD_NAME is returned when a String token is encountered 144 as a field name (same lexical value, different function)</div> 145</td> 146</tr> 147<tr class="rowColor"> 148<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonToken.html#NOT_AVAILABLE">NOT_AVAILABLE</a></strong></code> 149<div class="block">NOT_AVAILABLE can be returned if <a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson"><code>JsonParser</code></a> 150 implementation can not currently return the requested 151 token (usually next one), or even if any will be 152 available, but that may be able to determine this in 153 future.</div> 154</td> 155</tr> 156<tr class="altColor"> 157<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonToken.html#START_ARRAY">START_ARRAY</a></strong></code> 158<div class="block">START_OBJECT is returned when encountering '[' 159 which signals starting of an Array value</div> 160</td> 161</tr> 162<tr class="rowColor"> 163<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonToken.html#START_OBJECT">START_OBJECT</a></strong></code> 164<div class="block">START_OBJECT is returned when encountering '{' 165 which signals starting of an Object value.</div> 166</td> 167</tr> 168<tr class="altColor"> 169<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_EMBEDDED_OBJECT">VALUE_EMBEDDED_OBJECT</a></strong></code> 170<div class="block">Placeholder token returned when the input source has a concept 171 of embedded Object that are not accessible as usual structure 172 (of starting with <a href="../../../org/codehaus/jackson/JsonToken.html#START_OBJECT"><code>START_OBJECT</code></a>, having values, ending with 173 <a href="../../../org/codehaus/jackson/JsonToken.html#END_OBJECT"><code>END_OBJECT</code></a>), but as "raw" objects.</div> 174</td> 175</tr> 176<tr class="rowColor"> 177<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_FALSE">VALUE_FALSE</a></strong></code> 178<div class="block">VALUE_FALSE is returned when encountering literal "false" in 179 value context</div> 180</td> 181</tr> 182<tr class="altColor"> 183<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NULL">VALUE_NULL</a></strong></code> 184<div class="block">VALUE_NULL is returned when encountering literal "null" in 185 value context</div> 186</td> 187</tr> 188<tr class="rowColor"> 189<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_FLOAT">VALUE_NUMBER_FLOAT</a></strong></code> 190<div class="block">VALUE_NUMBER_INT is returned when a numeric token other 191 that is not an integer is encountered: that is, a number that does 192 have floating point or exponent marker in it, in addition 193 to one or more digits.</div> 194</td> 195</tr> 196<tr class="altColor"> 197<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_NUMBER_INT">VALUE_NUMBER_INT</a></strong></code> 198<div class="block">VALUE_NUMBER_INT is returned when an integer numeric token is 199 encountered in value context: that is, a number that does 200 not have floating point or exponent marker in it (consists 201 only of an optional sign, followed by one or more digits)</div> 202</td> 203</tr> 204<tr class="rowColor"> 205<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_STRING">VALUE_STRING</a></strong></code> 206<div class="block">VALUE_STRING is returned when a String token is encountered 207 in value context (array element, field value, or root-level 208 stand-alone value)</div> 209</td> 210</tr> 211<tr class="altColor"> 212<td class="colOne"><code><strong><a href="../../../org/codehaus/jackson/JsonToken.html#VALUE_TRUE">VALUE_TRUE</a></strong></code> 213<div class="block">VALUE_TRUE is returned when encountering literal "true" in 214 value context</div> 215</td> 216</tr> 217</table> 218</li> 219</ul> 220<!-- ========== METHOD SUMMARY =========== --> 221<ul class="blockList"> 222<li class="blockList"><a name="method_summary"> 223<!-- --> 224</a> 225<h3>Method Summary</h3> 226<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 227<caption><span>Methods</span><span class="tabEnd"> </span></caption> 228<tr> 229<th class="colFirst" scope="col">Modifier and Type</th> 230<th class="colLast" scope="col">Method and Description</th> 231</tr> 232<tr class="altColor"> 233<td class="colFirst"><code>byte[]</code></td> 234<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonToken.html#asByteArray()">asByteArray</a></strong>()</code> </td> 235</tr> 236<tr class="rowColor"> 237<td class="colFirst"><code>char[]</code></td> 238<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonToken.html#asCharArray()">asCharArray</a></strong>()</code> </td> 239</tr> 240<tr class="altColor"> 241<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 242<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonToken.html#asString()">asString</a></strong>()</code> </td> 243</tr> 244<tr class="rowColor"> 245<td class="colFirst"><code>boolean</code></td> 246<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonToken.html#isNumeric()">isNumeric</a></strong>()</code> </td> 247</tr> 248<tr class="altColor"> 249<td class="colFirst"><code>boolean</code></td> 250<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonToken.html#isScalarValue()">isScalarValue</a></strong>()</code> 251<div class="block">Method that can be used to check whether this token represents 252 a valid non-structured value.</div> 253</td> 254</tr> 255<tr class="rowColor"> 256<td class="colFirst"><code>static <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a></code></td> 257<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonToken.html#valueOf(java.lang.String)">valueOf</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</code> 258<div class="block">Returns the enum constant of this type with the specified name.</div> 259</td> 260</tr> 261<tr class="altColor"> 262<td class="colFirst"><code>static <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a>[]</code></td> 263<td class="colLast"><code><strong><a href="../../../org/codehaus/jackson/JsonToken.html#values()">values</a></strong>()</code> 264<div class="block">Returns an array containing the constants of this enum type, in 265the order they are declared.</div> 266</td> 267</tr> 268</table> 269<ul class="blockList"> 270<li class="blockList"><a name="methods_inherited_from_class_java.lang.Enum"> 271<!-- --> 272</a> 273<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a></h3> 274<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#compareTo(E)" title="class or interface in java.lang">compareTo</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#getDeclaringClass()" title="class or interface in java.lang">getDeclaringClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#name()" title="class or interface in java.lang">name</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#ordinal()" title="class or interface in java.lang">ordinal</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#valueOf(java.lang.Class, java.lang.String)" title="class or interface in java.lang">valueOf</a></code></li> 275</ul> 276<ul class="blockList"> 277<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 278<!-- --> 279</a> 280<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 281<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li> 282</ul> 283</li> 284</ul> 285</li> 286</ul> 287</div> 288<div class="details"> 289<ul class="blockList"> 290<li class="blockList"> 291<!-- ============ ENUM CONSTANT DETAIL =========== --> 292<ul class="blockList"> 293<li class="blockList"><a name="enum_constant_detail"> 294<!-- --> 295</a> 296<h3>Enum Constant Detail</h3> 297<a name="NOT_AVAILABLE"> 298<!-- --> 299</a> 300<ul class="blockList"> 301<li class="blockList"> 302<h4>NOT_AVAILABLE</h4> 303<pre>public static final <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> NOT_AVAILABLE</pre> 304<div class="block">NOT_AVAILABLE can be returned if <a href="../../../org/codehaus/jackson/JsonParser.html" title="class in org.codehaus.jackson"><code>JsonParser</code></a> 305 implementation can not currently return the requested 306 token (usually next one), or even if any will be 307 available, but that may be able to determine this in 308 future. This is the case with non-blocking parsers -- 309 they can not block to wait for more data to parse and 310 must return something.</div> 311<dl><dt><span class="strong">Since:</span></dt> 312 <dd>0.9.7</dd></dl> 313</li> 314</ul> 315<a name="START_OBJECT"> 316<!-- --> 317</a> 318<ul class="blockList"> 319<li class="blockList"> 320<h4>START_OBJECT</h4> 321<pre>public static final <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> START_OBJECT</pre> 322<div class="block">START_OBJECT is returned when encountering '{' 323 which signals starting of an Object value.</div> 324</li> 325</ul> 326<a name="END_OBJECT"> 327<!-- --> 328</a> 329<ul class="blockList"> 330<li class="blockList"> 331<h4>END_OBJECT</h4> 332<pre>public static final <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> END_OBJECT</pre> 333<div class="block">START_OBJECT is returned when encountering '}' 334 which signals ending of an Object value</div> 335</li> 336</ul> 337<a name="START_ARRAY"> 338<!-- --> 339</a> 340<ul class="blockList"> 341<li class="blockList"> 342<h4>START_ARRAY</h4> 343<pre>public static final <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> START_ARRAY</pre> 344<div class="block">START_OBJECT is returned when encountering '[' 345 which signals starting of an Array value</div> 346</li> 347</ul> 348<a name="END_ARRAY"> 349<!-- --> 350</a> 351<ul class="blockList"> 352<li class="blockList"> 353<h4>END_ARRAY</h4> 354<pre>public static final <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> END_ARRAY</pre> 355<div class="block">START_OBJECT is returned when encountering ']' 356 which signals ending of an Array value</div> 357</li> 358</ul> 359<a name="FIELD_NAME"> 360<!-- --> 361</a> 362<ul class="blockList"> 363<li class="blockList"> 364<h4>FIELD_NAME</h4> 365<pre>public static final <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> FIELD_NAME</pre> 366<div class="block">FIELD_NAME is returned when a String token is encountered 367 as a field name (same lexical value, different function)</div> 368</li> 369</ul> 370<a name="VALUE_EMBEDDED_OBJECT"> 371<!-- --> 372</a> 373<ul class="blockList"> 374<li class="blockList"> 375<h4>VALUE_EMBEDDED_OBJECT</h4> 376<pre>public static final <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> VALUE_EMBEDDED_OBJECT</pre> 377<div class="block">Placeholder token returned when the input source has a concept 378 of embedded Object that are not accessible as usual structure 379 (of starting with <a href="../../../org/codehaus/jackson/JsonToken.html#START_OBJECT"><code>START_OBJECT</code></a>, having values, ending with 380 <a href="../../../org/codehaus/jackson/JsonToken.html#END_OBJECT"><code>END_OBJECT</code></a>), but as "raw" objects. 381<p> 382 Note: this token is never returned by regular JSON readers, but 383 only by readers that expose other kinds of source (like 384 <a href="../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson"><code>JsonNode</code></a>-based JSON trees, Maps, Lists and such).</div> 385<dl><dt><span class="strong">Since:</span></dt> 386 <dd>1.1</dd></dl> 387</li> 388</ul> 389<a name="VALUE_STRING"> 390<!-- --> 391</a> 392<ul class="blockList"> 393<li class="blockList"> 394<h4>VALUE_STRING</h4> 395<pre>public static final <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> VALUE_STRING</pre> 396<div class="block">VALUE_STRING is returned when a String token is encountered 397 in value context (array element, field value, or root-level 398 stand-alone value)</div> 399</li> 400</ul> 401<a name="VALUE_NUMBER_INT"> 402<!-- --> 403</a> 404<ul class="blockList"> 405<li class="blockList"> 406<h4>VALUE_NUMBER_INT</h4> 407<pre>public static final <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> VALUE_NUMBER_INT</pre> 408<div class="block">VALUE_NUMBER_INT is returned when an integer numeric token is 409 encountered in value context: that is, a number that does 410 not have floating point or exponent marker in it (consists 411 only of an optional sign, followed by one or more digits)</div> 412</li> 413</ul> 414<a name="VALUE_NUMBER_FLOAT"> 415<!-- --> 416</a> 417<ul class="blockList"> 418<li class="blockList"> 419<h4>VALUE_NUMBER_FLOAT</h4> 420<pre>public static final <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> VALUE_NUMBER_FLOAT</pre> 421<div class="block">VALUE_NUMBER_INT is returned when a numeric token other 422 that is not an integer is encountered: that is, a number that does 423 have floating point or exponent marker in it, in addition 424 to one or more digits.</div> 425</li> 426</ul> 427<a name="VALUE_TRUE"> 428<!-- --> 429</a> 430<ul class="blockList"> 431<li class="blockList"> 432<h4>VALUE_TRUE</h4> 433<pre>public static final <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> VALUE_TRUE</pre> 434<div class="block">VALUE_TRUE is returned when encountering literal "true" in 435 value context</div> 436</li> 437</ul> 438<a name="VALUE_FALSE"> 439<!-- --> 440</a> 441<ul class="blockList"> 442<li class="blockList"> 443<h4>VALUE_FALSE</h4> 444<pre>public static final <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> VALUE_FALSE</pre> 445<div class="block">VALUE_FALSE is returned when encountering literal "false" in 446 value context</div> 447</li> 448</ul> 449<a name="VALUE_NULL"> 450<!-- --> 451</a> 452<ul class="blockListLast"> 453<li class="blockList"> 454<h4>VALUE_NULL</h4> 455<pre>public static final <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> VALUE_NULL</pre> 456<div class="block">VALUE_NULL is returned when encountering literal "null" in 457 value context</div> 458</li> 459</ul> 460</li> 461</ul> 462<!-- ============ METHOD DETAIL ========== --> 463<ul class="blockList"> 464<li class="blockList"><a name="method_detail"> 465<!-- --> 466</a> 467<h3>Method Detail</h3> 468<a name="values()"> 469<!-- --> 470</a> 471<ul class="blockList"> 472<li class="blockList"> 473<h4>values</h4> 474<pre>public static <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a>[] values()</pre> 475<div class="block">Returns an array containing the constants of this enum type, in 476the order they are declared. This method may be used to iterate 477over the constants as follows: 478<pre> 479for (JsonToken c : JsonToken.values()) 480 System.out.println(c); 481</pre></div> 482<dl><dt><span class="strong">Returns:</span></dt><dd>an array containing the constants of this enum type, in 483the order they are declared</dd></dl> 484</li> 485</ul> 486<a name="valueOf(java.lang.String)"> 487<!-- --> 488</a> 489<ul class="blockList"> 490<li class="blockList"> 491<h4>valueOf</h4> 492<pre>public static <a href="../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> valueOf(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre> 493<div class="block">Returns the enum constant of this type with the specified name. 494The string must match <i>exactly</i> an identifier used to declare an 495enum constant in this type. (Extraneous whitespace characters are 496not permitted.)</div> 497<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - the name of the enum constant to be returned.</dd> 498<dt><span class="strong">Returns:</span></dt><dd>the enum constant with the specified name</dd> 499<dt><span class="strong">Throws:</span></dt> 500<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if this enum type has no constant 501with the specified name</dd> 502<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the argument is null</dd></dl> 503</li> 504</ul> 505<a name="asString()"> 506<!-- --> 507</a> 508<ul class="blockList"> 509<li class="blockList"> 510<h4>asString</h4> 511<pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> asString()</pre> 512</li> 513</ul> 514<a name="asCharArray()"> 515<!-- --> 516</a> 517<ul class="blockList"> 518<li class="blockList"> 519<h4>asCharArray</h4> 520<pre>public char[] asCharArray()</pre> 521</li> 522</ul> 523<a name="asByteArray()"> 524<!-- --> 525</a> 526<ul class="blockList"> 527<li class="blockList"> 528<h4>asByteArray</h4> 529<pre>public byte[] asByteArray()</pre> 530</li> 531</ul> 532<a name="isNumeric()"> 533<!-- --> 534</a> 535<ul class="blockList"> 536<li class="blockList"> 537<h4>isNumeric</h4> 538<pre>public boolean isNumeric()</pre> 539</li> 540</ul> 541<a name="isScalarValue()"> 542<!-- --> 543</a> 544<ul class="blockListLast"> 545<li class="blockList"> 546<h4>isScalarValue</h4> 547<pre>public boolean isScalarValue()</pre> 548<div class="block">Method that can be used to check whether this token represents 549 a valid non-structured value. This means all tokens other than 550 Object/Array start/end markers all field names.</div> 551</li> 552</ul> 553</li> 554</ul> 555</li> 556</ul> 557</div> 558</div> 559<!-- ========= END OF CLASS DATA ========= --> 560<!-- ======= START OF BOTTOM NAVBAR ====== --> 561<div class="bottomNav"><a name="navbar_bottom"> 562<!-- --> 563</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 564<!-- --> 565</a> 566<ul class="navList" title="Navigation"> 567<li><a href="../../../overview-summary.html">Overview</a></li> 568<li><a href="package-summary.html">Package</a></li> 569<li class="navBarCell1Rev">Class</li> 570<li><a href="class-use/JsonToken.html">Use</a></li> 571<li><a href="package-tree.html">Tree</a></li> 572<li><a href="../../../deprecated-list.html">Deprecated</a></li> 573<li><a href="../../../index-all.html">Index</a></li> 574<li><a href="../../../help-doc.html">Help</a></li> 575</ul> 576</div> 577<div class="subNav"> 578<ul class="navList"> 579<li><a href="../../../org/codehaus/jackson/JsonStreamContext.html" title="class in org.codehaus.jackson"><span class="strong">Prev Class</span></a></li> 580<li><a href="../../../org/codehaus/jackson/ObjectCodec.html" title="class in org.codehaus.jackson"><span class="strong">Next Class</span></a></li> 581</ul> 582<ul class="navList"> 583<li><a href="../../../index.html?org/codehaus/jackson/JsonToken.html" target="_top">Frames</a></li> 584<li><a href="JsonToken.html" target="_top">No Frames</a></li> 585</ul> 586<ul class="navList" id="allclasses_navbar_bottom"> 587<li><a href="../../../allclasses-noframe.html">All Classes</a></li> 588</ul> 589<div> 590<script type="text/javascript"><!-- 591 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 592 if(window==top) { 593 allClassesLink.style.display = "block"; 594 } 595 else { 596 allClassesLink.style.display = "none"; 597 } 598 //--> 599</script> 600</div> 601<div> 602<ul class="subNavList"> 603<li>Summary: </li> 604<li>Nested | </li> 605<li><a href="#enum_constant_summary">Enum Constants</a> | </li> 606<li>Field | </li> 607<li><a href="#method_summary">Method</a></li> 608</ul> 609<ul class="subNavList"> 610<li>Detail: </li> 611<li><a href="#enum_constant_detail">Enum Constants</a> | </li> 612<li>Field | </li> 613<li><a href="#method_detail">Method</a></li> 614</ul> 615</div> 616<a name="skip-navbar_bottom"> 617<!-- --> 618</a></div> 619<!-- ======== END OF BOTTOM NAVBAR ======= --> 620</body> 621</html> 622