]>
iEval git - unical.git/blob - com/google/gson/stream/JsonToken.java
2 * Copyright (C) 2010 Google Inc.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package com
.google
.gson
.stream
;
20 * A structure, name or value type in a JSON-encoded string.
22 * @author Jesse Wilson
25 public enum JsonToken
{
28 * The opening of a JSON array. Written using {@link JsonWriter#beginArray}
29 * and read using {@link JsonReader#beginArray}.
34 * The closing of a JSON array. Written using {@link JsonWriter#endArray}
35 * and read using {@link JsonReader#endArray}.
40 * The opening of a JSON object. Written using {@link JsonWriter#beginObject}
41 * and read using {@link JsonReader#beginObject}.
46 * The closing of a JSON object. Written using {@link JsonWriter#endObject}
47 * and read using {@link JsonReader#endObject}.
52 * A JSON property name. Within objects, tokens alternate between names and
53 * their values. Written using {@link JsonWriter#name} and read using {@link
54 * JsonReader#nextName}
64 * A JSON number represented in this API by a Java {@code double}, {@code
65 * long}, or {@code int}.
70 * A JSON {@code true} or {@code false}.
75 * A JSON {@code null}.
80 * The end of the JSON stream. This sentinel value is returned by {@link
81 * JsonReader#peek()} to signal that the JSON-encoded value has no more
This page took 0.050957 seconds and 4 git commands to generate.