특정 인스턴스의 클래스 이름을 알아낼 수 있는 방법이 있나요?
클래스 이름 말고, 패키지 명과 합친 클래스 이름을 알아낼 수 있는 방법도 있나요?
혹은 클래스 이름(혹은 패키지 명과 합친 클래스 이름)을 패러미터로 던져주고, 해당 클래스의 인스턴스인지 아닌지를 확인할 수 있는 메쏘드가 있나요? 해당 클래스의 인스턴스이면 true 를 리턴하고, 아니면 false 를 리턴하는...뭐 그런거 말입니다.
instance 로서 package/class 를 받아내는건 모릅니다만, 두번째 경우는 instanceof 오퍼레이터로 할수 있을것 같군요.
삽질의 대마왕...
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#getClass()
May The Force Be With You.
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
instance 로서 package/class 를 받아내는건 모릅니다만,
instance 로서 package/class 를 받아내는건 모릅니다만, 두번째 경우는 instanceof 오퍼레이터로 할수 있을것 같군요.
삽질의 대마왕...
[url]http://java.sun.com/j2se/1.5.0/docs
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#getClass()
May The Force Be With You.
댓글 달기