2007-05-22から1日間の記事一覧
sun.reflect.Reflection#getCallerClass( int )でメソッドの呼び出し元クラスを取得します。引数でスタックの深さを指定します。サンプル: import sun.reflect.Reflection; public class GetCallerClass { public static void main( String[] args ) { new M…
sun.reflect.Reflection#getCallerClass( int )でメソッドの呼び出し元クラスを取得します。引数でスタックの深さを指定します。サンプル: import sun.reflect.Reflection; public class GetCallerClass { public static void main( String[] args ) { new M…