]>
iEval git - unical.git/blob - com/google/gson/stream/JsonScope.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 * Lexical scoping elements within a JSON reader or writer.
22 * @author Jesse Wilson
25 final class JsonScope
{
28 * An array with no elements requires no separators or newlines before
31 static final int EMPTY_ARRAY
= 1;
34 * A array with at least one value requires a comma and newline before
37 static final int NONEMPTY_ARRAY
= 2;
40 * An object with no name/value pairs requires no separators or newlines
41 * before it is closed.
43 static final int EMPTY_OBJECT
= 3;
46 * An object whose most recent element is a key. The next element must
49 static final int DANGLING_NAME
= 4;
52 * An object with at least one name/value pair requires a comma and
53 * newline before the next element.
55 static final int NONEMPTY_OBJECT
= 5;
58 * No object or array has been started.
60 static final int EMPTY_DOCUMENT
= 6;
63 * A document with at an array or object.
65 static final int NONEMPTY_DOCUMENT
= 7;
68 * A document that's been closed and cannot be accessed.
70 static final int CLOSED
= 8;
This page took 0.046581 seconds and 4 git commands to generate.