2014-01-22から1日間の記事一覧
private String Hoge#fuga(String arg) の場合 Hoge hogeClass = new Hoge(); Method fugaMethod = hogeClass.getClass().getDeclaredMethod("fuga", new Class[] {String.class}); fugaMethod.setAccessible(true); String ret = (String) fugaMethod.invok…