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

Method anything

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

Source from the content-addressed store, hash-verified

92 }
93
94 final public Object anything() throws ParseException {
95 Object x;
96 switch (jj_nt.kind) {
97 case BRACE_OPEN: {
98 x = object();
99 break;
100 }
101 case BRACKET_OPEN: {
102 x = list();
103 break;
104 }
105 case NUMBER_INTEGER:
106 case NUMBER_DECIMAL:
107 case TRUE:
108 case FALSE:
109 case NULL:
110 case STRING_SINGLE_EMPTY:
111 case STRING_DOUBLE_EMPTY:
112 case STRING_SINGLE_NONEMPTY:
113 case STRING_DOUBLE_NONEMPTY: {
114 x = value();
115 break;
116 }
117 default:
118 jj_la1[0] = jj_gen;
119 jj_consume_token(-1);
120 throw new ParseException();
121 }
122 {
123 if ("" != null) {
124 return x;
125 }
126 }
127 throw new Error("Missing return statement in function");
128 }
129
130 final public String objectKey() throws ParseException {
131 Object o;

Callers 3

parseMethod · 0.95
objectMethod · 0.95
listMethod · 0.95

Calls 4

objectMethod · 0.95
listMethod · 0.95
valueMethod · 0.95
jj_consume_tokenMethod · 0.95

Tested by

no test coverage detected