MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / get

Method get

src/main/java/field/utility/ReflectionTools.java:12–18  ·  view source on GitHub ↗
(Object from, String path)

Source from the content-addressed store, hash-verified

10
11
12 static public Object get(Object from, String path) throws NoSuchFieldException, IllegalAccessException {
13 String[] pieces = path.split("/");
14 for (int i = 0; i < pieces.length; i++) {
15 from = _get(from, pieces[i]);
16 }
17 return from;
18 }
19
20 static public Method getMethod(Object from, String path) throws NoSuchMethodException, IllegalAccessException, NoSuchFieldException {
21 String[] pieces = path.split("/");

Callers 2

_convertMethod · 0.95
__getMethod · 0.95

Calls 6

_getMethod · 0.95
getTypeMethod · 0.80
getIntMethod · 0.80
getMethod · 0.65
splitMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected