Coverage Report - org.apache.johnzon.core.JsonChars
 
Classes in this File Line Coverage Branch Coverage Complexity
JsonChars
N/A
N/A
0
 
 1  
 /*
 2  
  * Licensed to the Apache Software Foundation (ASF) under one
 3  
  * or more contributor license agreements. See the NOTICE file
 4  
  * distributed with this work for additional information
 5  
  * regarding copyright ownership. The ASF licenses this file
 6  
  * to you under the Apache License, Version 2.0 (the
 7  
  * "License"); you may not use this file except in compliance
 8  
  * with the License. You may obtain a copy of the License at
 9  
  *
 10  
  * http://www.apache.org/licenses/LICENSE-2.0
 11  
  *
 12  
  * Unless required by applicable law or agreed to in writing,
 13  
  * software distributed under the License is distributed on an
 14  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 15  
  * KIND, either express or implied. See the License for the
 16  
  * specific language governing permissions and limitations
 17  
  * under the License.
 18  
  */
 19  
 package org.apache.johnzon.core;
 20  
 
 21  
 import javax.json.stream.JsonParser.Event;
 22  
 
 23  
 public interface JsonChars {
 24  
     char EOF = Character.MIN_VALUE;
 25  
 
 26  
     char START_OBJECT_CHAR = '{';
 27  
     char END_OBJECT_CHAR = '}';
 28  
     char START_ARRAY_CHAR = '[';
 29  
     char END_ARRAY_CHAR = ']';
 30  
     char QUOTE_CHAR = '"';
 31  
     char COMMA_CHAR = ',';
 32  
     char KEY_SEPARATOR = ':';
 33  
     
 34  
     char EOL = '\n';
 35  
     char SPACE = ' ';
 36  
     
 37  
     char TRUE_T = 't';
 38  
     char TRUE_R = 'r';
 39  
     char TRUE_U = 'u';
 40  
     char TRUE_E = 'e';
 41  
     char FALSE_F = 'f';
 42  
     char FALSE_A = 'a';
 43  
     char FALSE_L = 'l';
 44  
     char FALSE_S = 's';
 45  
     char FALSE_E = 'e';
 46  
     char NULL_N = 'n';
 47  
     char NULL_U = 'u';
 48  
     char NULL_L = 'l';
 49  
  
 50  
     char ZERO = '0';
 51  
     char NINE = '9';
 52  
     char DOT = '.';
 53  
     char MINUS = '-';
 54  
     char PLUS = '+';
 55  
     char EXP_LOWERCASE = 'e';
 56  
     char EXP_UPPERCASE = 'E';
 57  
     char ESCAPE_CHAR = '\\';
 58  
     
 59  
     char TAB = '\t';
 60  
     char BACKSPACE = '\b';
 61  
     char FORMFEED = '\f';
 62  
     char CR = '\r';
 63  
 
 64  
     String NULL = "null".intern();
 65  
     
 66  
     static final byte START_ARRAY = (byte) Event.START_ARRAY.ordinal();
 67  
     static final byte START_OBJECT = (byte) Event.START_OBJECT.ordinal();
 68  
     static final byte KEY_NAME=(byte) Event.KEY_NAME.ordinal();
 69  
     static final byte VALUE_STRING=(byte) Event.VALUE_STRING.ordinal(); 
 70  
     static final byte VALUE_NUMBER=(byte) Event.VALUE_NUMBER.ordinal(); 
 71  
     static final byte VALUE_TRUE=(byte) Event.VALUE_TRUE.ordinal();
 72  
     static final byte VALUE_FALSE=(byte) Event.VALUE_FALSE.ordinal(); 
 73  
     static final byte VALUE_NULL=(byte) Event.VALUE_NULL.ordinal();
 74  
     static final byte END_OBJECT=(byte) Event.END_OBJECT.ordinal();
 75  
     static final byte END_ARRAY=(byte) Event.END_ARRAY.ordinal();
 76  
     
 77  
     static final byte COMMA_EVENT=Byte.MAX_VALUE;
 78  
     static final byte KEY_SEPARATOR_EVENT=Byte.MIN_VALUE;
 79  
     
 80  
     static final Event[] EVT_MAP =Event.values();
 81  
     
 82  
 }