MCPcopy Index your code
hub / github.com/apache/tomcat / objectKey

Method objectKey

java/org/apache/tomcat/util/json/JSONParser.java:130–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128 }
129
130 final public String objectKey() throws ParseException {
131 Object o;
132 String key;
133 switch (jj_nt.kind) {
134 case STRING_SINGLE_EMPTY:
135 case STRING_DOUBLE_EMPTY:
136 case STRING_SINGLE_NONEMPTY:
137 case STRING_DOUBLE_NONEMPTY: {
138 key = string();
139 break;
140 }
141 case SYMBOL: {
142 key = symbol();
143 break;
144 }
145 case NULL: {
146 nullValue();
147 key = null;
148 break;
149 }
150 case NUMBER_INTEGER:
151 case NUMBER_DECIMAL:
152 case TRUE:
153 case FALSE: {
154 switch (jj_nt.kind) {
155 case TRUE:
156 case FALSE: {
157 o = booleanValue();
158 break;
159 }
160 case NUMBER_INTEGER:
161 case NUMBER_DECIMAL: {
162 o = number();
163 break;
164 }
165 default:
166 jj_la1[1] = jj_gen;
167 jj_consume_token(-1);
168 throw new ParseException();
169 }
170 key = o.toString();
171 break;
172 }
173 default:
174 jj_la1[2] = jj_gen;
175 jj_consume_token(-1);
176 throw new ParseException();
177 }
178 {
179 if ("" != null) {
180 return key;
181 }
182 }
183 throw new Error("Missing return statement in function");
184 }
185
186 final public java.util.LinkedHashMap<String,Object> object() throws ParseException {
187 final java.util.LinkedHashMap<String,Object> map = new java.util.LinkedHashMap<String,Object>();

Callers 1

objectMethod · 0.95

Calls 7

stringMethod · 0.95
symbolMethod · 0.95
nullValueMethod · 0.95
booleanValueMethod · 0.95
numberMethod · 0.95
jj_consume_tokenMethod · 0.95
toStringMethod · 0.65

Tested by

no test coverage detected