MCPcopy Create free account
hub / github.com/apache/solr / getJSONParser

Method getJSONParser

solr/solrj/src/java/org/apache/solr/common/util/Utils.java:417–424  ·  view source on GitHub ↗
(Reader reader)

Source from the content-addressed store, hash-verified

415 }
416
417 @SuppressForbidden(
418 reason = "singletonList(null) is intentional — null is a sentinel path element")
419 public static Object getObjectByPath(Object root, boolean onlyPrimitive, String hierarchy) {
420 if (hierarchy == null)
421 return getObjectByPath(root, onlyPrimitive, Collections.singletonList(null));
422 List<String> parts = StrUtils.splitSmart(hierarchy, '/', true);
423 return getObjectByPath(root, onlyPrimitive, parts);
424 }
425
426 public static boolean setObjectByPath(Object root, String hierarchy, Object value) {
427 List<String> parts = StrUtils.splitSmart(hierarchy, '/', true);

Callers 4

getRespMapMethod · 0.95
getAsMapMethod · 0.95
fromJSONMethod · 0.95
fromJSONStringMethod · 0.95

Calls 2

setFlagsMethod · 0.95
getFlagsMethod · 0.95

Tested by 2

getRespMapMethod · 0.76
getAsMapMethod · 0.76