PageRenderTime 24ms CodeModel.GetById 16ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/src/com/google/maps/extras/arcgislink/json/JSONTokenType.as

http://gmaps-utility-library-flash.googlecode.com/
ActionScript | 71 lines | 17 code | 17 blank | 37 comment | 0 complexity | 48d6bd6ada0e7e25e9ad677af0bffe73 MD5 | raw file
 1/*
 2  Copyright (c) 2008, Adobe Systems Incorporated
 3  All rights reserved.
 4
 5  Redistribution and use in source and binary forms, with or without 
 6  modification, are permitted provided that the following conditions are
 7  met:
 8
 9  * Redistributions of source code must retain the above copyright notice, 
10    this list of conditions and the following disclaimer.
11  
12  * Redistributions in binary form must reproduce the above copyright
13    notice, this list of conditions and the following disclaimer in the 
14    documentation and/or other materials provided with the distribution.
15  
16  * Neither the name of Adobe Systems Incorporated nor the names of its 
17    contributors may be used to endorse or promote products derived from 
18    this software without specific prior written permission.
19
20  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
21  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
24  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31*/
32
33//http://code.google.com/p/as3corelib/
34//package com.adobe.serialization.json
35package com.google.maps.extras.arcgislink.json {
36
37	/**
38	 * Class containing constant values for the different types
39	 * of tokens in a JSON encoded string.
40	 */
41	public class JSONTokenType {
42	
43		public static const UNKNOWN:int = -1;
44		
45		public static const COMMA:int = 0;
46		
47		public static const LEFT_BRACE:int = 1;
48		
49		public static const RIGHT_BRACE:int = 2;
50		
51		public static const LEFT_BRACKET:int = 3;
52		
53		public static const RIGHT_BRACKET:int = 4;
54		
55		public static const COLON:int = 6;
56		
57		public static const TRUE:int = 7;
58		
59		public static const FALSE:int = 8;
60		
61		public static const NULL:int = 9;
62		
63		public static const STRING:int = 10;
64		
65		public static const NUMBER:int = 11;
66		
67		public static const NAN:int = 12;
68		
69	}
70	
71}