MCPcopy Create free account
hub / github.com/Var3D/var3dframe / length

Method length

core/src/core/java/var3d/net/center/json/VJSON.java:152–159  ·  view source on GitHub ↗

获取指定节点元素个数 @param jsonPath @return

(String jsonPath)

Source from the content-addressed store, hash-verified

150 * @return
151 */
152 public int length(String jsonPath) {
153 Object object = get(jsonPath);
154 if (object instanceof JSONObject)
155 return ((JSONObject) object).length();
156 if (object instanceof JSONArray)
157 return ((JSONArray) object).length();
158 return 0;
159 }
160
161 /**
162 * 转换为json字符串

Callers 15

getPartialVariableMethod · 0.45
saveUIMethod · 0.45
runMethod · 0.45
getFontPixmapMethod · 0.45
bytesToHexStringMethod · 0.45
putColorMethod · 0.45
setFontSizeMethod · 0.45
setNumberMethod · 0.45
drawMethod · 0.45
replaceEscapeCharsMethod · 0.45
simpleFormatMethod · 0.45
bytesToHexStringMethod · 0.45

Calls 1

getMethod · 0.95

Tested by

no test coverage detected