(Object from, String path)
| 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("/"); |