/**
* oインスタンスのmメソッドコールする
* @param o オブジェクトインスタンス
* @param m メソッド
*/
@SuppressWarnings("unchecked")
public static void clear(Object o, String m){
// oldValクリア処理実行
Class cls = o.getClass();
try {
Method method = cls.getMethod(m,new Class[]{});
method.invoke(o, new Object[]{}); // obj.close()コール
} catch (java.lang.reflect.InvocationTargetException ite){
Exception newEx = new Exception();
newEx.initCause(ite);
(newEx.getCause()).printStackTrace();
} catch (Exception e){
if (!(e instanceof NoSuchMethodException)){
e.printStackTrace();
}
}
}