class Main { Test test; void foo() { test.getClass().getField(""); } } class Test { public int num; public int num2; int num3; }