Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1107 chris 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_17) on Sun Nov 03 15:35:44 CET 2013 -->
6
<title>JsonValue (libgdx API)</title>
7
<meta name="date" content="2013-11-03">
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="JsonValue (libgdx API)";
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/JsonValue.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 class="aboutLanguage"><em>
37
                                libgdx API
38
                                <style>
39
                                body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
40
                                pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
41
                                h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%;  font-weight:bold }
42
                                .TableHeadingColor { background:#EEEEFF; }
43
                                a { text-decoration:none }
44
                                a:hover { text-decoration:underline }
45
                                a:link, a:visited { color:blue }
46
                                table { border:0px }
47
                                .TableRowColor td:first-child { border-left:1px solid black }
48
                                .TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
49
                                hr { border:0px; border-bottom:1px solid #333366; }
50
                                </style>
51
                        </em></div>
52
</div>
53
<div class="subNav">
54
<ul class="navList">
55
<li><a href="../../../../com/badlogic/gdx/utils/JsonReader.html" title="class in com.badlogic.gdx.utils"><span class="strong">Prev Class</span></a></li>
56
<li><a href="../../../../com/badlogic/gdx/utils/JsonValue.JsonIterator.html" title="class in com.badlogic.gdx.utils"><span class="strong">Next Class</span></a></li>
57
</ul>
58
<ul class="navList">
59
<li><a href="../../../../index.html?com/badlogic/gdx/utils/JsonValue.html" target="_top">Frames</a></li>
60
<li><a href="JsonValue.html" target="_top">No Frames</a></li>
61
</ul>
62
<ul class="navList" id="allclasses_navbar_top">
63
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
64
</ul>
65
<div>
66
<script type="text/javascript"><!--
67
  allClassesLink = document.getElementById("allclasses_navbar_top");
68
  if(window==top) {
69
    allClassesLink.style.display = "block";
70
  }
71
  else {
72
    allClassesLink.style.display = "none";
73
  }
74
  //-->
75
</script>
76
</div>
77
<div>
78
<ul class="subNavList">
79
<li>Summary:&nbsp;</li>
80
<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
81
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
82
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
83
<li><a href="#method_summary">Method</a></li>
84
</ul>
85
<ul class="subNavList">
86
<li>Detail:&nbsp;</li>
87
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
88
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
89
<li><a href="#method_detail">Method</a></li>
90
</ul>
91
</div>
92
<a name="skip-navbar_top">
93
<!--   -->
94
</a></div>
95
<!-- ========= END OF TOP NAVBAR ========= -->
96
<!-- ======== START OF CLASS DATA ======== -->
97
<div class="header">
98
<div class="subTitle">com.badlogic.gdx.utils</div>
99
<h2 title="Class JsonValue" class="title">Class JsonValue</h2>
100
</div>
101
<div class="contentContainer">
102
<ul class="inheritance">
103
<li>java.lang.Object</li>
104
<li>
105
<ul class="inheritance">
106
<li>com.badlogic.gdx.utils.JsonValue</li>
107
</ul>
108
</li>
109
</ul>
110
<div class="description">
111
<ul class="blockList">
112
<li class="blockList">
113
<dl>
114
<dt>All Implemented Interfaces:</dt>
115
<dd>java.lang.Iterable&lt;<a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a>&gt;</dd>
116
</dl>
117
<hr>
118
<br>
119
<pre>public class <span class="strong">JsonValue</span>
120
extends java.lang.Object
121
implements java.lang.Iterable&lt;<a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a>&gt;</pre>
122
<div class="block">Container for a JSON object, array, string, double, long, boolean, or null.
123
 <p>
124
 JsonValue children are a linked list. Iteration of arrays or objects is easily done using a for loop, either with the enhanced
125
 for loop syntactic sugar or like the example below. This is much more efficient than accessing children by index when there are
126
 many children.<br>
127
 
128
 <pre>
129
 JsonValue map = ...;
130
 for (JsonValue entry = map.child(); entry != null; entry = entry.next())
131
        System.out.println(entry.name() + " = " + entry.asString());
132
 </pre></div>
133
<dl><dt><span class="strong">Author:</span></dt>
134
  <dd>Nathan Sweet</dd></dl>
135
</li>
136
</ul>
137
</div>
138
<div class="summary">
139
<ul class="blockList">
140
<li class="blockList">
141
<!-- ======== NESTED CLASS SUMMARY ======== -->
142
<ul class="blockList">
143
<li class="blockList"><a name="nested_class_summary">
144
<!--   -->
145
</a>
146
<h3>Nested Class Summary</h3>
147
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
148
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
149
<tr>
150
<th class="colFirst" scope="col">Modifier and Type</th>
151
<th class="colLast" scope="col">Class and Description</th>
152
</tr>
153
<tr class="altColor">
154
<td class="colFirst"><code>class&nbsp;</code></td>
155
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.JsonIterator.html" title="class in com.badlogic.gdx.utils">JsonValue.JsonIterator</a></strong></code>&nbsp;</td>
156
</tr>
157
<tr class="rowColor">
158
<td class="colFirst"><code>static class&nbsp;</code></td>
159
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.ValueType.html" title="enum in com.badlogic.gdx.utils">JsonValue.ValueType</a></strong></code>&nbsp;</td>
160
</tr>
161
</table>
162
</li>
163
</ul>
164
<!-- =========== FIELD SUMMARY =========== -->
165
<ul class="blockList">
166
<li class="blockList"><a name="field_summary">
167
<!--   -->
168
</a>
169
<h3>Field Summary</h3>
170
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
171
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
172
<tr>
173
<th class="colFirst" scope="col">Modifier and Type</th>
174
<th class="colLast" scope="col">Field and Description</th>
175
</tr>
176
<tr class="altColor">
177
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a></code></td>
178
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#child">child</a></strong></code>
179
<div class="block">May be null.</div>
180
</td>
181
</tr>
182
<tr class="rowColor">
183
<td class="colFirst"><code>java.lang.String</code></td>
184
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#name">name</a></strong></code>&nbsp;</td>
185
</tr>
186
<tr class="altColor">
187
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a></code></td>
188
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#next">next</a></strong></code>
189
<div class="block">May be null.</div>
190
</td>
191
</tr>
192
<tr class="rowColor">
193
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a></code></td>
194
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#prev">prev</a></strong></code>
195
<div class="block">May be null.</div>
196
</td>
197
</tr>
198
<tr class="altColor">
199
<td class="colFirst"><code>int</code></td>
200
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#size">size</a></strong></code>&nbsp;</td>
201
</tr>
202
</table>
203
</li>
204
</ul>
205
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
206
<ul class="blockList">
207
<li class="blockList"><a name="constructor_summary">
208
<!--   -->
209
</a>
210
<h3>Constructor Summary</h3>
211
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
212
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
213
<tr>
214
<th class="colOne" scope="col">Constructor and Description</th>
215
</tr>
216
<tr class="altColor">
217
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#JsonValue(boolean)">JsonValue</a></strong>(boolean&nbsp;value)</code>&nbsp;</td>
218
</tr>
219
<tr class="rowColor">
220
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#JsonValue(double)">JsonValue</a></strong>(double&nbsp;value)</code>&nbsp;</td>
221
</tr>
222
<tr class="altColor">
223
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#JsonValue(com.badlogic.gdx.utils.JsonValue.ValueType)">JsonValue</a></strong>(<a href="../../../../com/badlogic/gdx/utils/JsonValue.ValueType.html" title="enum in com.badlogic.gdx.utils">JsonValue.ValueType</a>&nbsp;type)</code>&nbsp;</td>
224
</tr>
225
<tr class="rowColor">
226
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#JsonValue(long)">JsonValue</a></strong>(long&nbsp;value)</code>&nbsp;</td>
227
</tr>
228
<tr class="altColor">
229
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#JsonValue(java.lang.String)">JsonValue</a></strong>(java.lang.String&nbsp;value)</code>&nbsp;</td>
230
</tr>
231
</table>
232
</li>
233
</ul>
234
<!-- ========== METHOD SUMMARY =========== -->
235
<ul class="blockList">
236
<li class="blockList"><a name="method_summary">
237
<!--   -->
238
</a>
239
<h3>Method Summary</h3>
240
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
241
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
242
<tr>
243
<th class="colFirst" scope="col">Modifier and Type</th>
244
<th class="colLast" scope="col">Method and Description</th>
245
</tr>
246
<tr class="altColor">
247
<td class="colFirst"><code>boolean</code></td>
248
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#asBoolean()">asBoolean</a></strong>()</code>
249
<div class="block">Returns this value as a boolean.</div>
250
</td>
251
</tr>
252
<tr class="rowColor">
253
<td class="colFirst"><code>double</code></td>
254
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#asDouble()">asDouble</a></strong>()</code>
255
<div class="block">Returns this value as a double.</div>
256
</td>
257
</tr>
258
<tr class="altColor">
259
<td class="colFirst"><code>float</code></td>
260
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#asFloat()">asFloat</a></strong>()</code>
261
<div class="block">Returns this value as a float.</div>
262
</td>
263
</tr>
264
<tr class="rowColor">
265
<td class="colFirst"><code>int</code></td>
266
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#asInt()">asInt</a></strong>()</code>
267
<div class="block">Returns this value as an int.</div>
268
</td>
269
</tr>
270
<tr class="altColor">
271
<td class="colFirst"><code>long</code></td>
272
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#asLong()">asLong</a></strong>()</code>
273
<div class="block">Returns this value as a long.</div>
274
</td>
275
</tr>
276
<tr class="rowColor">
277
<td class="colFirst"><code>java.lang.String</code></td>
278
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#asString()">asString</a></strong>()</code>
279
<div class="block">Returns this value as a string.</div>
280
</td>
281
</tr>
282
<tr class="altColor">
283
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a></code></td>
284
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#child()">child</a></strong>()</code>
285
<div class="block">Returns the first child for this object or array.</div>
286
</td>
287
</tr>
288
<tr class="rowColor">
289
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a></code></td>
290
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#get(int)">get</a></strong>(int&nbsp;index)</code>
291
<div class="block">Returns the child at the specified index.</div>
292
</td>
293
</tr>
294
<tr class="altColor">
295
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a></code></td>
296
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#get(java.lang.String)">get</a></strong>(java.lang.String&nbsp;name)</code>
297
<div class="block">Returns the child with the specified name.</div>
298
</td>
299
</tr>
300
<tr class="rowColor">
301
<td class="colFirst"><code>boolean</code></td>
302
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#getBoolean(int)">getBoolean</a></strong>(int&nbsp;index)</code>
303
<div class="block">Finds the child with the specified index and returns it as a boolean.</div>
304
</td>
305
</tr>
306
<tr class="altColor">
307
<td class="colFirst"><code>boolean</code></td>
308
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#getBoolean(java.lang.String)">getBoolean</a></strong>(java.lang.String&nbsp;name)</code>
309
<div class="block">Finds the child with the specified name and returns it as a boolean.</div>
310
</td>
311
</tr>
312
<tr class="rowColor">
313
<td class="colFirst"><code>boolean</code></td>
314
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#getBoolean(java.lang.String, boolean)">getBoolean</a></strong>(java.lang.String&nbsp;name,
315
          boolean&nbsp;defaultValue)</code>
316
<div class="block">Finds the child with the specified name and returns it as a boolean.</div>
317
</td>
318
</tr>
319
<tr class="altColor">
320
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a></code></td>
321
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#getChild(java.lang.String)">getChild</a></strong>(java.lang.String&nbsp;name)</code>
322
<div class="block">Finds the child with the specified name and returns its first child.</div>
323
</td>
324
</tr>
325
<tr class="rowColor">
326
<td class="colFirst"><code>double</code></td>
327
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#getDouble(int)">getDouble</a></strong>(int&nbsp;index)</code>
328
<div class="block">Finds the child with the specified index and returns it as a double.</div>
329
</td>
330
</tr>
331
<tr class="altColor">
332
<td class="colFirst"><code>double</code></td>
333
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#getDouble(java.lang.String)">getDouble</a></strong>(java.lang.String&nbsp;name)</code>
334
<div class="block">Finds the child with the specified name and returns it as a double.</div>
335
</td>
336
</tr>
337
<tr class="rowColor">
338
<td class="colFirst"><code>double</code></td>
339
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#getDouble(java.lang.String, double)">getDouble</a></strong>(java.lang.String&nbsp;name,
340
         double&nbsp;defaultValue)</code>
341
<div class="block">Finds the child with the specified name and returns it as a double.</div>
342
</td>
343
</tr>
344
<tr class="altColor">
345
<td class="colFirst"><code>float</code></td>
346
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#getFloat(int)">getFloat</a></strong>(int&nbsp;index)</code>
347
<div class="block">Finds the child with the specified index and returns it as a float.</div>
348
</td>
349
</tr>
350
<tr class="rowColor">
351
<td class="colFirst"><code>float</code></td>
352
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#getFloat(java.lang.String)">getFloat</a></strong>(java.lang.String&nbsp;name)</code>
353
<div class="block">Finds the child with the specified name and returns it as a float.</div>
354
</td>
355
</tr>
356
<tr class="altColor">
357
<td class="colFirst"><code>float</code></td>
358
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#getFloat(java.lang.String, float)">getFloat</a></strong>(java.lang.String&nbsp;name,
359
        float&nbsp;defaultValue)</code>
360
<div class="block">Finds the child with the specified name and returns it as a float.</div>
361
</td>
362
</tr>
363
<tr class="rowColor">
364
<td class="colFirst"><code>int</code></td>
365
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#getInt(int)">getInt</a></strong>(int&nbsp;index)</code>
366
<div class="block">Finds the child with the specified index and returns it as an int.</div>
367
</td>
368
</tr>
369
<tr class="altColor">
370
<td class="colFirst"><code>int</code></td>
371
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#getInt(java.lang.String)">getInt</a></strong>(java.lang.String&nbsp;name)</code>
372
<div class="block">Finds the child with the specified name and returns it as an int.</div>
373
</td>
374
</tr>
375
<tr class="rowColor">
376
<td class="colFirst"><code>int</code></td>
377
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#getInt(java.lang.String, int)">getInt</a></strong>(java.lang.String&nbsp;name,
378
      int&nbsp;defaultValue)</code>
379
<div class="block">Finds the child with the specified name and returns it as an int.</div>
380
</td>
381
</tr>
382
<tr class="altColor">
383
<td class="colFirst"><code>long</code></td>
384
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#getLong(int)">getLong</a></strong>(int&nbsp;index)</code>
385
<div class="block">Finds the child with the specified index and returns it as a long.</div>
386
</td>
387
</tr>
388
<tr class="rowColor">
389
<td class="colFirst"><code>long</code></td>
390
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#getLong(java.lang.String)">getLong</a></strong>(java.lang.String&nbsp;name)</code>
391
<div class="block">Finds the child with the specified name and returns it as a long.</div>
392
</td>
393
</tr>
394
<tr class="altColor">
395
<td class="colFirst"><code>long</code></td>
396
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#getLong(java.lang.String, long)">getLong</a></strong>(java.lang.String&nbsp;name,
397
       long&nbsp;defaultValue)</code>
398
<div class="block">Finds the child with the specified name and returns it as a long.</div>
399
</td>
400
</tr>
401
<tr class="rowColor">
402
<td class="colFirst"><code>java.lang.String</code></td>
403
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#getString(int)">getString</a></strong>(int&nbsp;index)</code>
404
<div class="block">Finds the child with the specified index and returns it as a string.</div>
405
</td>
406
</tr>
407
<tr class="altColor">
408
<td class="colFirst"><code>java.lang.String</code></td>
409
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#getString(java.lang.String)">getString</a></strong>(java.lang.String&nbsp;name)</code>
410
<div class="block">Finds the child with the specified name and returns it as a string.</div>
411
</td>
412
</tr>
413
<tr class="rowColor">
414
<td class="colFirst"><code>java.lang.String</code></td>
415
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#getString(java.lang.String, java.lang.String)">getString</a></strong>(java.lang.String&nbsp;name,
416
         java.lang.String&nbsp;defaultValue)</code>
417
<div class="block">Finds the child with the specified name and returns it as a string.</div>
418
</td>
419
</tr>
420
<tr class="altColor">
421
<td class="colFirst"><code>boolean</code></td>
422
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#hasChild(java.lang.String)">hasChild</a></strong>(java.lang.String&nbsp;name)</code>
423
<div class="block">Returns true if a child with the specified name exists and has a child.</div>
424
</td>
425
</tr>
426
<tr class="rowColor">
427
<td class="colFirst"><code>boolean</code></td>
428
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#isArray()">isArray</a></strong>()</code>&nbsp;</td>
429
</tr>
430
<tr class="altColor">
431
<td class="colFirst"><code>boolean</code></td>
432
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#isBoolean()">isBoolean</a></strong>()</code>&nbsp;</td>
433
</tr>
434
<tr class="rowColor">
435
<td class="colFirst"><code>boolean</code></td>
436
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#isDouble()">isDouble</a></strong>()</code>&nbsp;</td>
437
</tr>
438
<tr class="altColor">
439
<td class="colFirst"><code>boolean</code></td>
440
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#isLong()">isLong</a></strong>()</code>&nbsp;</td>
441
</tr>
442
<tr class="rowColor">
443
<td class="colFirst"><code>boolean</code></td>
444
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#isNull()">isNull</a></strong>()</code>&nbsp;</td>
445
</tr>
446
<tr class="altColor">
447
<td class="colFirst"><code>boolean</code></td>
448
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#isNumber()">isNumber</a></strong>()</code>
449
<div class="block">Returns true if this is a double or long value.</div>
450
</td>
451
</tr>
452
<tr class="rowColor">
453
<td class="colFirst"><code>boolean</code></td>
454
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#isObject()">isObject</a></strong>()</code>&nbsp;</td>
455
</tr>
456
<tr class="altColor">
457
<td class="colFirst"><code>boolean</code></td>
458
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#isString()">isString</a></strong>()</code>&nbsp;</td>
459
</tr>
460
<tr class="rowColor">
461
<td class="colFirst"><code>boolean</code></td>
462
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#isValue()">isValue</a></strong>()</code>
463
<div class="block">Returns true if this is not an array or object.</div>
464
</td>
465
</tr>
466
<tr class="altColor">
467
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/JsonValue.JsonIterator.html" title="class in com.badlogic.gdx.utils">JsonValue.JsonIterator</a></code></td>
468
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#iterator()">iterator</a></strong>()</code>&nbsp;</td>
469
</tr>
470
<tr class="rowColor">
471
<td class="colFirst"><code>java.lang.String</code></td>
472
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#name()">name</a></strong>()</code>
473
<div class="block">Returns the name for this object value.</div>
474
</td>
475
</tr>
476
<tr class="altColor">
477
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a></code></td>
478
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#next()">next</a></strong>()</code>
479
<div class="block">Returns the next sibling of this value.</div>
480
</td>
481
</tr>
482
<tr class="rowColor">
483
<td class="colFirst"><code>java.lang.String</code></td>
484
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#prettyPrint(com.badlogic.gdx.utils.JsonWriter.OutputType, int)">prettyPrint</a></strong>(<a href="../../../../com/badlogic/gdx/utils/JsonWriter.OutputType.html" title="enum in com.badlogic.gdx.utils">JsonWriter.OutputType</a>&nbsp;outputType,
485
           int&nbsp;singleLineColumns)</code>&nbsp;</td>
486
</tr>
487
<tr class="altColor">
488
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a></code></td>
489
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#prev()">prev</a></strong>()</code>
490
<div class="block">Returns the previous sibling of this value.</div>
491
</td>
492
</tr>
493
<tr class="rowColor">
494
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a></code></td>
495
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#remove(int)">remove</a></strong>(int&nbsp;index)</code>
496
<div class="block">Removes the child with the specified name.</div>
497
</td>
498
</tr>
499
<tr class="altColor">
500
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a></code></td>
501
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#remove(java.lang.String)">remove</a></strong>(java.lang.String&nbsp;name)</code>
502
<div class="block">Removes the child with the specified name.</div>
503
</td>
504
</tr>
505
<tr class="rowColor">
506
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a></code></td>
507
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#require(int)">require</a></strong>(int&nbsp;index)</code>
508
<div class="block">Returns the child at the specified index.</div>
509
</td>
510
</tr>
511
<tr class="altColor">
512
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a></code></td>
513
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#require(java.lang.String)">require</a></strong>(java.lang.String&nbsp;name)</code>
514
<div class="block">Returns the child with the specified name.</div>
515
</td>
516
</tr>
517
<tr class="rowColor">
518
<td class="colFirst"><code>void</code></td>
519
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#set(boolean)">set</a></strong>(boolean&nbsp;value)</code>&nbsp;</td>
520
</tr>
521
<tr class="altColor">
522
<td class="colFirst"><code>void</code></td>
523
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#set(double)">set</a></strong>(double&nbsp;value)</code>&nbsp;</td>
524
</tr>
525
<tr class="rowColor">
526
<td class="colFirst"><code>void</code></td>
527
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#set(long)">set</a></strong>(long&nbsp;value)</code>&nbsp;</td>
528
</tr>
529
<tr class="altColor">
530
<td class="colFirst"><code>void</code></td>
531
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#set(java.lang.String)">set</a></strong>(java.lang.String&nbsp;value)</code>&nbsp;</td>
532
</tr>
533
<tr class="rowColor">
534
<td class="colFirst"><code>void</code></td>
535
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#setName(java.lang.String)">setName</a></strong>(java.lang.String&nbsp;name)</code>&nbsp;</td>
536
</tr>
537
<tr class="altColor">
538
<td class="colFirst"><code>void</code></td>
539
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#setNext(com.badlogic.gdx.utils.JsonValue)">setNext</a></strong>(<a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a>&nbsp;next)</code>&nbsp;</td>
540
</tr>
541
<tr class="rowColor">
542
<td class="colFirst"><code>void</code></td>
543
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#setPrev(com.badlogic.gdx.utils.JsonValue)">setPrev</a></strong>(<a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a>&nbsp;prev)</code>&nbsp;</td>
544
</tr>
545
<tr class="altColor">
546
<td class="colFirst"><code>void</code></td>
547
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#setType(com.badlogic.gdx.utils.JsonValue.ValueType)">setType</a></strong>(<a href="../../../../com/badlogic/gdx/utils/JsonValue.ValueType.html" title="enum in com.badlogic.gdx.utils">JsonValue.ValueType</a>&nbsp;type)</code>&nbsp;</td>
548
</tr>
549
<tr class="rowColor">
550
<td class="colFirst"><code>int</code></td>
551
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#size()">size</a></strong>()</code>
552
<div class="block"><strong>Deprecated.</strong>&nbsp;
553
<div class="block"><i>Use the size property instead. Returns this number of children in the array or object.</i></div>
554
</div>
555
</td>
556
</tr>
557
<tr class="altColor">
558
<td class="colFirst"><code>java.lang.String</code></td>
559
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#toString()">toString</a></strong>()</code>&nbsp;</td>
560
</tr>
561
<tr class="rowColor">
562
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/JsonValue.ValueType.html" title="enum in com.badlogic.gdx.utils">JsonValue.ValueType</a></code></td>
563
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/JsonValue.html#type()">type</a></strong>()</code>&nbsp;</td>
564
</tr>
565
</table>
566
<ul class="blockList">
567
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
568
<!--   -->
569
</a>
570
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
571
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
572
</ul>
573
</li>
574
</ul>
575
</li>
576
</ul>
577
</div>
578
<div class="details">
579
<ul class="blockList">
580
<li class="blockList">
581
<!-- ============ FIELD DETAIL =========== -->
582
<ul class="blockList">
583
<li class="blockList"><a name="field_detail">
584
<!--   -->
585
</a>
586
<h3>Field Detail</h3>
587
<a name="name">
588
<!--   -->
589
</a>
590
<ul class="blockList">
591
<li class="blockList">
592
<h4>name</h4>
593
<pre>public&nbsp;java.lang.String name</pre>
594
</li>
595
</ul>
596
<a name="child">
597
<!--   -->
598
</a>
599
<ul class="blockList">
600
<li class="blockList">
601
<h4>child</h4>
602
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a> child</pre>
603
<div class="block">May be null.</div>
604
</li>
605
</ul>
606
<a name="next">
607
<!--   -->
608
</a>
609
<ul class="blockList">
610
<li class="blockList">
611
<h4>next</h4>
612
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a> next</pre>
613
<div class="block">May be null.</div>
614
</li>
615
</ul>
616
<a name="prev">
617
<!--   -->
618
</a>
619
<ul class="blockList">
620
<li class="blockList">
621
<h4>prev</h4>
622
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a> prev</pre>
623
<div class="block">May be null.</div>
624
</li>
625
</ul>
626
<a name="size">
627
<!--   -->
628
</a>
629
<ul class="blockListLast">
630
<li class="blockList">
631
<h4>size</h4>
632
<pre>public&nbsp;int size</pre>
633
</li>
634
</ul>
635
</li>
636
</ul>
637
<!-- ========= CONSTRUCTOR DETAIL ======== -->
638
<ul class="blockList">
639
<li class="blockList"><a name="constructor_detail">
640
<!--   -->
641
</a>
642
<h3>Constructor Detail</h3>
643
<a name="JsonValue(com.badlogic.gdx.utils.JsonValue.ValueType)">
644
<!--   -->
645
</a>
646
<ul class="blockList">
647
<li class="blockList">
648
<h4>JsonValue</h4>
649
<pre>public&nbsp;JsonValue(<a href="../../../../com/badlogic/gdx/utils/JsonValue.ValueType.html" title="enum in com.badlogic.gdx.utils">JsonValue.ValueType</a>&nbsp;type)</pre>
650
</li>
651
</ul>
652
<a name="JsonValue(java.lang.String)">
653
<!--   -->
654
</a>
655
<ul class="blockList">
656
<li class="blockList">
657
<h4>JsonValue</h4>
658
<pre>public&nbsp;JsonValue(java.lang.String&nbsp;value)</pre>
659
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - May be null.</dd></dl>
660
</li>
661
</ul>
662
<a name="JsonValue(double)">
663
<!--   -->
664
</a>
665
<ul class="blockList">
666
<li class="blockList">
667
<h4>JsonValue</h4>
668
<pre>public&nbsp;JsonValue(double&nbsp;value)</pre>
669
</li>
670
</ul>
671
<a name="JsonValue(long)">
672
<!--   -->
673
</a>
674
<ul class="blockList">
675
<li class="blockList">
676
<h4>JsonValue</h4>
677
<pre>public&nbsp;JsonValue(long&nbsp;value)</pre>
678
</li>
679
</ul>
680
<a name="JsonValue(boolean)">
681
<!--   -->
682
</a>
683
<ul class="blockListLast">
684
<li class="blockList">
685
<h4>JsonValue</h4>
686
<pre>public&nbsp;JsonValue(boolean&nbsp;value)</pre>
687
</li>
688
</ul>
689
</li>
690
</ul>
691
<!-- ============ METHOD DETAIL ========== -->
692
<ul class="blockList">
693
<li class="blockList"><a name="method_detail">
694
<!--   -->
695
</a>
696
<h3>Method Detail</h3>
697
<a name="get(int)">
698
<!--   -->
699
</a>
700
<ul class="blockList">
701
<li class="blockList">
702
<h4>get</h4>
703
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a>&nbsp;get(int&nbsp;index)</pre>
704
<div class="block">Returns the child at the specified index.</div>
705
<dl><dt><span class="strong">Returns:</span></dt><dd>May be null.</dd></dl>
706
</li>
707
</ul>
708
<a name="get(java.lang.String)">
709
<!--   -->
710
</a>
711
<ul class="blockList">
712
<li class="blockList">
713
<h4>get</h4>
714
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a>&nbsp;get(java.lang.String&nbsp;name)</pre>
715
<div class="block">Returns the child with the specified name.</div>
716
<dl><dt><span class="strong">Returns:</span></dt><dd>May be null.</dd></dl>
717
</li>
718
</ul>
719
<a name="require(int)">
720
<!--   -->
721
</a>
722
<ul class="blockList">
723
<li class="blockList">
724
<h4>require</h4>
725
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a>&nbsp;require(int&nbsp;index)</pre>
726
<div class="block">Returns the child at the specified index.</div>
727
<dl><dt><span class="strong">Throws:</span></dt>
728
<dd><code>java.lang.IllegalArgumentException</code> - if the child was not found.</dd></dl>
729
</li>
730
</ul>
731
<a name="require(java.lang.String)">
732
<!--   -->
733
</a>
734
<ul class="blockList">
735
<li class="blockList">
736
<h4>require</h4>
737
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a>&nbsp;require(java.lang.String&nbsp;name)</pre>
738
<div class="block">Returns the child with the specified name.</div>
739
<dl><dt><span class="strong">Throws:</span></dt>
740
<dd><code>java.lang.IllegalArgumentException</code> - if the child was not found.</dd></dl>
741
</li>
742
</ul>
743
<a name="remove(int)">
744
<!--   -->
745
</a>
746
<ul class="blockList">
747
<li class="blockList">
748
<h4>remove</h4>
749
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a>&nbsp;remove(int&nbsp;index)</pre>
750
<div class="block">Removes the child with the specified name.</div>
751
<dl><dt><span class="strong">Returns:</span></dt><dd>May be null.</dd></dl>
752
</li>
753
</ul>
754
<a name="remove(java.lang.String)">
755
<!--   -->
756
</a>
757
<ul class="blockList">
758
<li class="blockList">
759
<h4>remove</h4>
760
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a>&nbsp;remove(java.lang.String&nbsp;name)</pre>
761
<div class="block">Removes the child with the specified name.</div>
762
<dl><dt><span class="strong">Returns:</span></dt><dd>May be null.</dd></dl>
763
</li>
764
</ul>
765
<a name="size()">
766
<!--   -->
767
</a>
768
<ul class="blockList">
769
<li class="blockList">
770
<h4>size</h4>
771
<pre>public&nbsp;int&nbsp;size()</pre>
772
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>Use the size property instead. Returns this number of children in the array or object.</i></div>
773
</li>
774
</ul>
775
<a name="asString()">
776
<!--   -->
777
</a>
778
<ul class="blockList">
779
<li class="blockList">
780
<h4>asString</h4>
781
<pre>public&nbsp;java.lang.String&nbsp;asString()</pre>
782
<div class="block">Returns this value as a string.</div>
783
<dl><dt><span class="strong">Returns:</span></dt><dd>May be null if this value is null.</dd>
784
<dt><span class="strong">Throws:</span></dt>
785
<dd><code>java.lang.IllegalStateException</code> - if this an array or object.</dd></dl>
786
</li>
787
</ul>
788
<a name="asFloat()">
789
<!--   -->
790
</a>
791
<ul class="blockList">
792
<li class="blockList">
793
<h4>asFloat</h4>
794
<pre>public&nbsp;float&nbsp;asFloat()</pre>
795
<div class="block">Returns this value as a float.</div>
796
<dl><dt><span class="strong">Throws:</span></dt>
797
<dd><code>java.lang.IllegalStateException</code> - if this an array or object.</dd></dl>
798
</li>
799
</ul>
800
<a name="asDouble()">
801
<!--   -->
802
</a>
803
<ul class="blockList">
804
<li class="blockList">
805
<h4>asDouble</h4>
806
<pre>public&nbsp;double&nbsp;asDouble()</pre>
807
<div class="block">Returns this value as a double.</div>
808
<dl><dt><span class="strong">Throws:</span></dt>
809
<dd><code>java.lang.IllegalStateException</code> - if this an array or object.</dd></dl>
810
</li>
811
</ul>
812
<a name="asLong()">
813
<!--   -->
814
</a>
815
<ul class="blockList">
816
<li class="blockList">
817
<h4>asLong</h4>
818
<pre>public&nbsp;long&nbsp;asLong()</pre>
819
<div class="block">Returns this value as a long.</div>
820
<dl><dt><span class="strong">Throws:</span></dt>
821
<dd><code>java.lang.IllegalStateException</code> - if this an array or object.</dd></dl>
822
</li>
823
</ul>
824
<a name="asInt()">
825
<!--   -->
826
</a>
827
<ul class="blockList">
828
<li class="blockList">
829
<h4>asInt</h4>
830
<pre>public&nbsp;int&nbsp;asInt()</pre>
831
<div class="block">Returns this value as an int.</div>
832
<dl><dt><span class="strong">Throws:</span></dt>
833
<dd><code>java.lang.IllegalStateException</code> - if this an array or object.</dd></dl>
834
</li>
835
</ul>
836
<a name="asBoolean()">
837
<!--   -->
838
</a>
839
<ul class="blockList">
840
<li class="blockList">
841
<h4>asBoolean</h4>
842
<pre>public&nbsp;boolean&nbsp;asBoolean()</pre>
843
<div class="block">Returns this value as a boolean.</div>
844
<dl><dt><span class="strong">Throws:</span></dt>
845
<dd><code>java.lang.IllegalStateException</code> - if this an array or object.</dd></dl>
846
</li>
847
</ul>
848
<a name="hasChild(java.lang.String)">
849
<!--   -->
850
</a>
851
<ul class="blockList">
852
<li class="blockList">
853
<h4>hasChild</h4>
854
<pre>public&nbsp;boolean&nbsp;hasChild(java.lang.String&nbsp;name)</pre>
855
<div class="block">Returns true if a child with the specified name exists and has a child.</div>
856
</li>
857
</ul>
858
<a name="getChild(java.lang.String)">
859
<!--   -->
860
</a>
861
<ul class="blockList">
862
<li class="blockList">
863
<h4>getChild</h4>
864
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a>&nbsp;getChild(java.lang.String&nbsp;name)</pre>
865
<div class="block">Finds the child with the specified name and returns its first child.</div>
866
<dl><dt><span class="strong">Returns:</span></dt><dd>May be null.</dd></dl>
867
</li>
868
</ul>
869
<a name="getString(java.lang.String, java.lang.String)">
870
<!--   -->
871
</a>
872
<ul class="blockList">
873
<li class="blockList">
874
<h4>getString</h4>
875
<pre>public&nbsp;java.lang.String&nbsp;getString(java.lang.String&nbsp;name,
876
                         java.lang.String&nbsp;defaultValue)</pre>
877
<div class="block">Finds the child with the specified name and returns it as a string. Returns defaultValue if not found.</div>
878
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>defaultValue</code> - May be null.</dd></dl>
879
</li>
880
</ul>
881
<a name="getFloat(java.lang.String, float)">
882
<!--   -->
883
</a>
884
<ul class="blockList">
885
<li class="blockList">
886
<h4>getFloat</h4>
887
<pre>public&nbsp;float&nbsp;getFloat(java.lang.String&nbsp;name,
888
             float&nbsp;defaultValue)</pre>
889
<div class="block">Finds the child with the specified name and returns it as a float. Returns defaultValue if not found.</div>
890
</li>
891
</ul>
892
<a name="getDouble(java.lang.String, double)">
893
<!--   -->
894
</a>
895
<ul class="blockList">
896
<li class="blockList">
897
<h4>getDouble</h4>
898
<pre>public&nbsp;double&nbsp;getDouble(java.lang.String&nbsp;name,
899
               double&nbsp;defaultValue)</pre>
900
<div class="block">Finds the child with the specified name and returns it as a double. Returns defaultValue if not found.</div>
901
</li>
902
</ul>
903
<a name="getLong(java.lang.String, long)">
904
<!--   -->
905
</a>
906
<ul class="blockList">
907
<li class="blockList">
908
<h4>getLong</h4>
909
<pre>public&nbsp;long&nbsp;getLong(java.lang.String&nbsp;name,
910
           long&nbsp;defaultValue)</pre>
911
<div class="block">Finds the child with the specified name and returns it as a long. Returns defaultValue if not found.</div>
912
</li>
913
</ul>
914
<a name="getInt(java.lang.String, int)">
915
<!--   -->
916
</a>
917
<ul class="blockList">
918
<li class="blockList">
919
<h4>getInt</h4>
920
<pre>public&nbsp;int&nbsp;getInt(java.lang.String&nbsp;name,
921
         int&nbsp;defaultValue)</pre>
922
<div class="block">Finds the child with the specified name and returns it as an int. Returns defaultValue if not found.</div>
923
</li>
924
</ul>
925
<a name="getBoolean(java.lang.String, boolean)">
926
<!--   -->
927
</a>
928
<ul class="blockList">
929
<li class="blockList">
930
<h4>getBoolean</h4>
931
<pre>public&nbsp;boolean&nbsp;getBoolean(java.lang.String&nbsp;name,
932
                 boolean&nbsp;defaultValue)</pre>
933
<div class="block">Finds the child with the specified name and returns it as a boolean. Returns defaultValue if not found.</div>
934
</li>
935
</ul>
936
<a name="getString(java.lang.String)">
937
<!--   -->
938
</a>
939
<ul class="blockList">
940
<li class="blockList">
941
<h4>getString</h4>
942
<pre>public&nbsp;java.lang.String&nbsp;getString(java.lang.String&nbsp;name)</pre>
943
<div class="block">Finds the child with the specified name and returns it as a string.</div>
944
<dl><dt><span class="strong">Throws:</span></dt>
945
<dd><code>java.lang.IllegalArgumentException</code> - if the child was not found.</dd></dl>
946
</li>
947
</ul>
948
<a name="getFloat(java.lang.String)">
949
<!--   -->
950
</a>
951
<ul class="blockList">
952
<li class="blockList">
953
<h4>getFloat</h4>
954
<pre>public&nbsp;float&nbsp;getFloat(java.lang.String&nbsp;name)</pre>
955
<div class="block">Finds the child with the specified name and returns it as a float.</div>
956
<dl><dt><span class="strong">Throws:</span></dt>
957
<dd><code>java.lang.IllegalArgumentException</code> - if the child was not found.</dd></dl>
958
</li>
959
</ul>
960
<a name="getDouble(java.lang.String)">
961
<!--   -->
962
</a>
963
<ul class="blockList">
964
<li class="blockList">
965
<h4>getDouble</h4>
966
<pre>public&nbsp;double&nbsp;getDouble(java.lang.String&nbsp;name)</pre>
967
<div class="block">Finds the child with the specified name and returns it as a double.</div>
968
<dl><dt><span class="strong">Throws:</span></dt>
969
<dd><code>java.lang.IllegalArgumentException</code> - if the child was not found.</dd></dl>
970
</li>
971
</ul>
972
<a name="getLong(java.lang.String)">
973
<!--   -->
974
</a>
975
<ul class="blockList">
976
<li class="blockList">
977
<h4>getLong</h4>
978
<pre>public&nbsp;long&nbsp;getLong(java.lang.String&nbsp;name)</pre>
979
<div class="block">Finds the child with the specified name and returns it as a long.</div>
980
<dl><dt><span class="strong">Throws:</span></dt>
981
<dd><code>java.lang.IllegalArgumentException</code> - if the child was not found.</dd></dl>
982
</li>
983
</ul>
984
<a name="getInt(java.lang.String)">
985
<!--   -->
986
</a>
987
<ul class="blockList">
988
<li class="blockList">
989
<h4>getInt</h4>
990
<pre>public&nbsp;int&nbsp;getInt(java.lang.String&nbsp;name)</pre>
991
<div class="block">Finds the child with the specified name and returns it as an int.</div>
992
<dl><dt><span class="strong">Throws:</span></dt>
993
<dd><code>java.lang.IllegalArgumentException</code> - if the child was not found.</dd></dl>
994
</li>
995
</ul>
996
<a name="getBoolean(java.lang.String)">
997
<!--   -->
998
</a>
999
<ul class="blockList">
1000
<li class="blockList">
1001
<h4>getBoolean</h4>
1002
<pre>public&nbsp;boolean&nbsp;getBoolean(java.lang.String&nbsp;name)</pre>
1003
<div class="block">Finds the child with the specified name and returns it as a boolean.</div>
1004
<dl><dt><span class="strong">Throws:</span></dt>
1005
<dd><code>java.lang.IllegalArgumentException</code> - if the child was not found.</dd></dl>
1006
</li>
1007
</ul>
1008
<a name="getString(int)">
1009
<!--   -->
1010
</a>
1011
<ul class="blockList">
1012
<li class="blockList">
1013
<h4>getString</h4>
1014
<pre>public&nbsp;java.lang.String&nbsp;getString(int&nbsp;index)</pre>
1015
<div class="block">Finds the child with the specified index and returns it as a string.</div>
1016
<dl><dt><span class="strong">Throws:</span></dt>
1017
<dd><code>java.lang.IllegalArgumentException</code> - if the child was not found.</dd></dl>
1018
</li>
1019
</ul>
1020
<a name="getFloat(int)">
1021
<!--   -->
1022
</a>
1023
<ul class="blockList">
1024
<li class="blockList">
1025
<h4>getFloat</h4>
1026
<pre>public&nbsp;float&nbsp;getFloat(int&nbsp;index)</pre>
1027
<div class="block">Finds the child with the specified index and returns it as a float.</div>
1028
<dl><dt><span class="strong">Throws:</span></dt>
1029
<dd><code>java.lang.IllegalArgumentException</code> - if the child was not found.</dd></dl>
1030
</li>
1031
</ul>
1032
<a name="getDouble(int)">
1033
<!--   -->
1034
</a>
1035
<ul class="blockList">
1036
<li class="blockList">
1037
<h4>getDouble</h4>
1038
<pre>public&nbsp;double&nbsp;getDouble(int&nbsp;index)</pre>
1039
<div class="block">Finds the child with the specified index and returns it as a double.</div>
1040
<dl><dt><span class="strong">Throws:</span></dt>
1041
<dd><code>java.lang.IllegalArgumentException</code> - if the child was not found.</dd></dl>
1042
</li>
1043
</ul>
1044
<a name="getLong(int)">
1045
<!--   -->
1046
</a>
1047
<ul class="blockList">
1048
<li class="blockList">
1049
<h4>getLong</h4>
1050
<pre>public&nbsp;long&nbsp;getLong(int&nbsp;index)</pre>
1051
<div class="block">Finds the child with the specified index and returns it as a long.</div>
1052
<dl><dt><span class="strong">Throws:</span></dt>
1053
<dd><code>java.lang.IllegalArgumentException</code> - if the child was not found.</dd></dl>
1054
</li>
1055
</ul>
1056
<a name="getInt(int)">
1057
<!--   -->
1058
</a>
1059
<ul class="blockList">
1060
<li class="blockList">
1061
<h4>getInt</h4>
1062
<pre>public&nbsp;int&nbsp;getInt(int&nbsp;index)</pre>
1063
<div class="block">Finds the child with the specified index and returns it as an int.</div>
1064
<dl><dt><span class="strong">Throws:</span></dt>
1065
<dd><code>java.lang.IllegalArgumentException</code> - if the child was not found.</dd></dl>
1066
</li>
1067
</ul>
1068
<a name="getBoolean(int)">
1069
<!--   -->
1070
</a>
1071
<ul class="blockList">
1072
<li class="blockList">
1073
<h4>getBoolean</h4>
1074
<pre>public&nbsp;boolean&nbsp;getBoolean(int&nbsp;index)</pre>
1075
<div class="block">Finds the child with the specified index and returns it as a boolean.</div>
1076
<dl><dt><span class="strong">Throws:</span></dt>
1077
<dd><code>java.lang.IllegalArgumentException</code> - if the child was not found.</dd></dl>
1078
</li>
1079
</ul>
1080
<a name="type()">
1081
<!--   -->
1082
</a>
1083
<ul class="blockList">
1084
<li class="blockList">
1085
<h4>type</h4>
1086
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/JsonValue.ValueType.html" title="enum in com.badlogic.gdx.utils">JsonValue.ValueType</a>&nbsp;type()</pre>
1087
</li>
1088
</ul>
1089
<a name="setType(com.badlogic.gdx.utils.JsonValue.ValueType)">
1090
<!--   -->
1091
</a>
1092
<ul class="blockList">
1093
<li class="blockList">
1094
<h4>setType</h4>
1095
<pre>public&nbsp;void&nbsp;setType(<a href="../../../../com/badlogic/gdx/utils/JsonValue.ValueType.html" title="enum in com.badlogic.gdx.utils">JsonValue.ValueType</a>&nbsp;type)</pre>
1096
</li>
1097
</ul>
1098
<a name="isArray()">
1099
<!--   -->
1100
</a>
1101
<ul class="blockList">
1102
<li class="blockList">
1103
<h4>isArray</h4>
1104
<pre>public&nbsp;boolean&nbsp;isArray()</pre>
1105
</li>
1106
</ul>
1107
<a name="isObject()">
1108
<!--   -->
1109
</a>
1110
<ul class="blockList">
1111
<li class="blockList">
1112
<h4>isObject</h4>
1113
<pre>public&nbsp;boolean&nbsp;isObject()</pre>
1114
</li>
1115
</ul>
1116
<a name="isString()">
1117
<!--   -->
1118
</a>
1119
<ul class="blockList">
1120
<li class="blockList">
1121
<h4>isString</h4>
1122
<pre>public&nbsp;boolean&nbsp;isString()</pre>
1123
</li>
1124
</ul>
1125
<a name="isNumber()">
1126
<!--   -->
1127
</a>
1128
<ul class="blockList">
1129
<li class="blockList">
1130
<h4>isNumber</h4>
1131
<pre>public&nbsp;boolean&nbsp;isNumber()</pre>
1132
<div class="block">Returns true if this is a double or long value.</div>
1133
</li>
1134
</ul>
1135
<a name="isDouble()">
1136
<!--   -->
1137
</a>
1138
<ul class="blockList">
1139
<li class="blockList">
1140
<h4>isDouble</h4>
1141
<pre>public&nbsp;boolean&nbsp;isDouble()</pre>
1142
</li>
1143
</ul>
1144
<a name="isLong()">
1145
<!--   -->
1146
</a>
1147
<ul class="blockList">
1148
<li class="blockList">
1149
<h4>isLong</h4>
1150
<pre>public&nbsp;boolean&nbsp;isLong()</pre>
1151
</li>
1152
</ul>
1153
<a name="isBoolean()">
1154
<!--   -->
1155
</a>
1156
<ul class="blockList">
1157
<li class="blockList">
1158
<h4>isBoolean</h4>
1159
<pre>public&nbsp;boolean&nbsp;isBoolean()</pre>
1160
</li>
1161
</ul>
1162
<a name="isNull()">
1163
<!--   -->
1164
</a>
1165
<ul class="blockList">
1166
<li class="blockList">
1167
<h4>isNull</h4>
1168
<pre>public&nbsp;boolean&nbsp;isNull()</pre>
1169
</li>
1170
</ul>
1171
<a name="isValue()">
1172
<!--   -->
1173
</a>
1174
<ul class="blockList">
1175
<li class="blockList">
1176
<h4>isValue</h4>
1177
<pre>public&nbsp;boolean&nbsp;isValue()</pre>
1178
<div class="block">Returns true if this is not an array or object.</div>
1179
</li>
1180
</ul>
1181
<a name="name()">
1182
<!--   -->
1183
</a>
1184
<ul class="blockList">
1185
<li class="blockList">
1186
<h4>name</h4>
1187
<pre>public&nbsp;java.lang.String&nbsp;name()</pre>
1188
<div class="block">Returns the name for this object value.</div>
1189
<dl><dt><span class="strong">Returns:</span></dt><dd>May be null.</dd></dl>
1190
</li>
1191
</ul>
1192
<a name="setName(java.lang.String)">
1193
<!--   -->
1194
</a>
1195
<ul class="blockList">
1196
<li class="blockList">
1197
<h4>setName</h4>
1198
<pre>public&nbsp;void&nbsp;setName(java.lang.String&nbsp;name)</pre>
1199
</li>
1200
</ul>
1201
<a name="child()">
1202
<!--   -->
1203
</a>
1204
<ul class="blockList">
1205
<li class="blockList">
1206
<h4>child</h4>
1207
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a>&nbsp;child()</pre>
1208
<div class="block">Returns the first child for this object or array.</div>
1209
<dl><dt><span class="strong">Returns:</span></dt><dd>May be null.</dd></dl>
1210
</li>
1211
</ul>
1212
<a name="next()">
1213
<!--   -->
1214
</a>
1215
<ul class="blockList">
1216
<li class="blockList">
1217
<h4>next</h4>
1218
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a>&nbsp;next()</pre>
1219
<div class="block">Returns the next sibling of this value.</div>
1220
<dl><dt><span class="strong">Returns:</span></dt><dd>May be null.</dd></dl>
1221
</li>
1222
</ul>
1223
<a name="setNext(com.badlogic.gdx.utils.JsonValue)">
1224
<!--   -->
1225
</a>
1226
<ul class="blockList">
1227
<li class="blockList">
1228
<h4>setNext</h4>
1229
<pre>public&nbsp;void&nbsp;setNext(<a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a>&nbsp;next)</pre>
1230
</li>
1231
</ul>
1232
<a name="prev()">
1233
<!--   -->
1234
</a>
1235
<ul class="blockList">
1236
<li class="blockList">
1237
<h4>prev</h4>
1238
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a>&nbsp;prev()</pre>
1239
<div class="block">Returns the previous sibling of this value.</div>
1240
<dl><dt><span class="strong">Returns:</span></dt><dd>May be null.</dd></dl>
1241
</li>
1242
</ul>
1243
<a name="setPrev(com.badlogic.gdx.utils.JsonValue)">
1244
<!--   -->
1245
</a>
1246
<ul class="blockList">
1247
<li class="blockList">
1248
<h4>setPrev</h4>
1249
<pre>public&nbsp;void&nbsp;setPrev(<a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a>&nbsp;prev)</pre>
1250
</li>
1251
</ul>
1252
<a name="set(java.lang.String)">
1253
<!--   -->
1254
</a>
1255
<ul class="blockList">
1256
<li class="blockList">
1257
<h4>set</h4>
1258
<pre>public&nbsp;void&nbsp;set(java.lang.String&nbsp;value)</pre>
1259
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - May be null.</dd></dl>
1260
</li>
1261
</ul>
1262
<a name="set(double)">
1263
<!--   -->
1264
</a>
1265
<ul class="blockList">
1266
<li class="blockList">
1267
<h4>set</h4>
1268
<pre>public&nbsp;void&nbsp;set(double&nbsp;value)</pre>
1269
</li>
1270
</ul>
1271
<a name="set(long)">
1272
<!--   -->
1273
</a>
1274
<ul class="blockList">
1275
<li class="blockList">
1276
<h4>set</h4>
1277
<pre>public&nbsp;void&nbsp;set(long&nbsp;value)</pre>
1278
</li>
1279
</ul>
1280
<a name="set(boolean)">
1281
<!--   -->
1282
</a>
1283
<ul class="blockList">
1284
<li class="blockList">
1285
<h4>set</h4>
1286
<pre>public&nbsp;void&nbsp;set(boolean&nbsp;value)</pre>
1287
</li>
1288
</ul>
1289
<a name="toString()">
1290
<!--   -->
1291
</a>
1292
<ul class="blockList">
1293
<li class="blockList">
1294
<h4>toString</h4>
1295
<pre>public&nbsp;java.lang.String&nbsp;toString()</pre>
1296
<dl>
1297
<dt><strong>Overrides:</strong></dt>
1298
<dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
1299
</dl>
1300
</li>
1301
</ul>
1302
<a name="prettyPrint(com.badlogic.gdx.utils.JsonWriter.OutputType, int)">
1303
<!--   -->
1304
</a>
1305
<ul class="blockList">
1306
<li class="blockList">
1307
<h4>prettyPrint</h4>
1308
<pre>public&nbsp;java.lang.String&nbsp;prettyPrint(<a href="../../../../com/badlogic/gdx/utils/JsonWriter.OutputType.html" title="enum in com.badlogic.gdx.utils">JsonWriter.OutputType</a>&nbsp;outputType,
1309
                           int&nbsp;singleLineColumns)</pre>
1310
</li>
1311
</ul>
1312
<a name="iterator()">
1313
<!--   -->
1314
</a>
1315
<ul class="blockListLast">
1316
<li class="blockList">
1317
<h4>iterator</h4>
1318
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/JsonValue.JsonIterator.html" title="class in com.badlogic.gdx.utils">JsonValue.JsonIterator</a>&nbsp;iterator()</pre>
1319
<dl>
1320
<dt><strong>Specified by:</strong></dt>
1321
<dd><code>iterator</code>&nbsp;in interface&nbsp;<code>java.lang.Iterable&lt;<a href="../../../../com/badlogic/gdx/utils/JsonValue.html" title="class in com.badlogic.gdx.utils">JsonValue</a>&gt;</code></dd>
1322
</dl>
1323
</li>
1324
</ul>
1325
</li>
1326
</ul>
1327
</li>
1328
</ul>
1329
</div>
1330
</div>
1331
<!-- ========= END OF CLASS DATA ========= -->
1332
<!-- ======= START OF BOTTOM NAVBAR ====== -->
1333
<div class="bottomNav"><a name="navbar_bottom">
1334
<!--   -->
1335
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
1336
<!--   -->
1337
</a>
1338
<ul class="navList" title="Navigation">
1339
<li><a href="../../../../overview-summary.html">Overview</a></li>
1340
<li><a href="package-summary.html">Package</a></li>
1341
<li class="navBarCell1Rev">Class</li>
1342
<li><a href="class-use/JsonValue.html">Use</a></li>
1343
<li><a href="package-tree.html">Tree</a></li>
1344
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
1345
<li><a href="../../../../index-all.html">Index</a></li>
1346
<li><a href="../../../../help-doc.html">Help</a></li>
1347
</ul>
1348
<div class="aboutLanguage"><em>libgdx API</em></div>
1349
</div>
1350
<div class="subNav">
1351
<ul class="navList">
1352
<li><a href="../../../../com/badlogic/gdx/utils/JsonReader.html" title="class in com.badlogic.gdx.utils"><span class="strong">Prev Class</span></a></li>
1353
<li><a href="../../../../com/badlogic/gdx/utils/JsonValue.JsonIterator.html" title="class in com.badlogic.gdx.utils"><span class="strong">Next Class</span></a></li>
1354
</ul>
1355
<ul class="navList">
1356
<li><a href="../../../../index.html?com/badlogic/gdx/utils/JsonValue.html" target="_top">Frames</a></li>
1357
<li><a href="JsonValue.html" target="_top">No Frames</a></li>
1358
</ul>
1359
<ul class="navList" id="allclasses_navbar_bottom">
1360
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
1361
</ul>
1362
<div>
1363
<script type="text/javascript"><!--
1364
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
1365
  if(window==top) {
1366
    allClassesLink.style.display = "block";
1367
  }
1368
  else {
1369
    allClassesLink.style.display = "none";
1370
  }
1371
  //-->
1372
</script>
1373
</div>
1374
<div>
1375
<ul class="subNavList">
1376
<li>Summary:&nbsp;</li>
1377
<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
1378
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
1379
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
1380
<li><a href="#method_summary">Method</a></li>
1381
</ul>
1382
<ul class="subNavList">
1383
<li>Detail:&nbsp;</li>
1384
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
1385
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
1386
<li><a href="#method_detail">Method</a></li>
1387
</ul>
1388
</div>
1389
<a name="skip-navbar_bottom">
1390
<!--   -->
1391
</a></div>
1392
<!-- ======== END OF BOTTOM NAVBAR ======= -->
1393
<p class="legalCopy"><small>
1394
                                <div style="font-size:9pt"><i>
1395
                                Copyright &copy; 2010-2013 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
1396
                                </i></div>
1397
                        </small></p>
1398
</body>
1399
</html>