MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / fieldValue

Method fieldValue

Utils/src/eu/the5zig/util/ReflectionUtil.java:17–23  ·  view source on GitHub ↗
(Class c, Object o, String f)

Source from the content-addressed store, hash-verified

15 }
16
17 public static Object fieldValue(Class c, Object o, String f) {
18 try {
19 return c.getField(f).get(o);
20 } catch (Exception e) {
21 throw new RuntimeException(e);
22 }
23 }
24
25 public static Object newInstance(Class<?> c, Class[] parameterTypes, Object[] args) {
26 try {

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected