try { ObjectType instance = getClass().getDeclaredField("name of var").get(ObjectType.class); } catch (Exception e) { e.printStackTrace(); }