일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- unix
- 태터수정
- 보안
- eclipse35
- 작성중
- 우분투
- 기술사
- KOSPI
- IT 키워드
- 코스피
- 알고리즘
- Linux
- LDAP
- uml example
- Algorithm
- conemu
- Android
- IPTV
- 안드로이드
- 주식
- Eclipse
- adb
- Qmail
- 도서
- 공매도
- ubuntu
- UX
- java
- Audacity
Archives
- Today
- Total
목록dynamic invoking (1)
Do diffence
[java] 동적 메쏘드 실행 Dynamic invoking a static method
1. ClassA의 methodA(), methodB(), methodC() 가 있는데 파라메터로 받은 메쏘드 이름에 해당하는 메쏘드를 실행하고자 할 때. 2. ClassA의 메쏘드를 동적으로 실행하고자 할 때. String method = "method"; // method 이름 Class aClass = null; Method aMethod = null; ClassA oClass = null; oClass = new ClassA(); aClass= oClass.getClass(); // method에 파라메터 및 값이 있다면 배열로 정의해서 넘긴다. Class[] parameterTypes = new Class[] {}; Object[] arguments1 = new Object[] {}; Objec..
OLD
2006. 12. 12. 14:06