JavaTM 2 Platform
Standard Ed. 5.0

Ŭ·¡½º
java.lang.reflect.Method »ç¿ë

Method¸¦ »ç¿ëÇÏ°í ÀÖ´Â ÆÐÅ°Áö
java.beans Bean (JavaBeansTM ¾ÆÅ°ÅØÃÄ¿¡ ±Ù°ÅÇÑ ÄÄÆÛ³ÍÆ®)ÀÇ °³¹ß¿¡ °ü·ÃµÈ Ŭ·¡½º°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.  
java.lang Java ÇÁ·Î±×·¥ ¾ð¾îÀÇ ¼³°èÇØ ±âº»ÀûÀΠŬ·¡½º¸¦ Á¦°øÇÕ´Ï´Ù.  
java.lang.annotation Java ÇÁ·Î±×·¥ ¾ð¾îÀÇ ÁÖ¼® ±â´ÉÀ» Áö¿øÇÏ´Â ¶óÀ̺귯¸®¸¦ Á¦°øÇÕ´Ï´Ù.  
java.lang.reflect Ŭ·¡½º¿Í °´Ã¼¿¡ °üÇÑ ¸®Ç÷ºÆ® Á¤º¸¸¦ ¾ò´Â Ŭ·¡½º ¹× ÀÎÅÍÆäÀ̽º¸¦ Á¦°øÇÕ´Ï´Ù.  
java.rmi.server ¼­¹öÃøÀÇ RMI¸¦ Áö¿øÇϴ Ŭ·¡½º¿Í ÀÎÅÍÆäÀ̽º¸¦ Á¦°øÇÕ´Ï´Ù.  
javax.management Java Management Extensions ÄÚ¾î Ŭ·¡½º¸¦ Á¦°øÇÕ´Ï´Ù.  
javax.management.modelmbean ModelMBean Ŭ·¡½ºÀÇ Á¤ÀǸ¦ Á¦°øÇÕ´Ï´Ù.  
 

java.beans ¿¡¼­ÀÇ Method »ç¿ë
 

Method¸¦ µ¹·ÁÁÖ´Â java.beans ¸Þ¼­µå
 Method EventSetDescriptor. getAddListenerMethod ()
          À̺¥Æ® ¸®½º³ÊÀÇ Ãß°¡½Ã¿¡ »ç¿ëÇÏ´Â ¸Þ¼­µå¸¦ ÃëµæÇÕ´Ï´Ù.
 Method EventSetDescriptor. getGetListenerMethod ()
          µî·ÏÀÌ ³¡³­ À̺¥Æ® ¸®½º³Ê¿¡°Ô·ÎÀÇ ¾×¼¼½º¿¡ »ç¿ëÇÏ´Â ¸Þ¼­µå¸¦ ÃëµæÇÕ´Ï´Ù.
 Method IndexedPropertyDescriptor. getIndexedReadMethod ()
          À妽º ÷ºÎ ÇÁ·ÎÆÛƼġÀÇ Àб⿡ »ç¿ëÇÏ´Â ¸Þ¼­µå¸¦ ÃëµæÇÕ´Ï´Ù.
 Method IndexedPropertyDescriptor. getIndexedWriteMethod ()
          À妽º ÷ºÎ ÇÁ·ÎÆÛƼġÀÇ Ãâ·ÂÀ» »ç¿ëÇÏ´Â ¸Þ¼­µå¸¦ ÃëµæÇÕ´Ï´Ù.
 Method [] EventSetDescriptor. getListenerMethods ()
          Å¸°Ù ¸®½º³Ê ÀÎÅÍÆäÀ̽ºÀÇ ¸Þ¼­µå¸¦ ÃëµæÇÕ´Ï´Ù.
 Method MethodDescriptor. getMethod ()
          ÀÌ MethodDescriptor°¡ ĸ½¶È­ÇÏ´Â ¸Þ¼­µå¸¦ ÃëµæÇÕ´Ï´Ù.
 Method PropertyDescriptor. getReadMethod ()
          ÇÁ·ÎÆÛƼġÀÇ Àб⿡ »ç¿ëÇÏ´Â ¸Þ¼­µå¸¦ ÃëµæÇÕ´Ï´Ù.
 Method EventSetDescriptor. getRemoveListenerMethod ()
          À̺¥Æ® ¸®½º³ÊÀÇ »èÁ¦½Ã¿¡ »ç¿ëÇÏ´Â ¸Þ¼­µå¸¦ ÃëµæÇÕ´Ï´Ù.
 Method PropertyDescriptor. getWriteMethod ()
          ÇÁ·ÎÆÛƼġÀÇ Ãâ·ÂÀ» »ç¿ëÇÏ´Â ¸Þ¼­µå¸¦ ÃëµæÇÕ´Ï´Ù.
 

Method ÇüÀÇ ÆĶó¹ÌÅ͸¦ °¡Áö´Â java.beans ¸Þ¼­µå
 Object EventHandler. invoke (Object  proxy, Method  method, Object [] arguments)
          À̺¥Æ®·ÎºÎÅÍ ÀûÀýÇÑ ÇÁ·ÎÆÛƼġ¸¦ ÃßÃâÇØ, ÀÌ EventHandler¿¡ °ü·ÃµÈ ¾×¼Ç¿¡ °Ç³×ÁÝ´Ï´Ù.
 void IndexedPropertyDescriptor. setIndexedReadMethod (Method  readMethod)
          À妽º ÷ºÎ ÇÁ·ÎÆÛƼġÀÇ Àб⿡ »ç¿ëÇÏ´Â ¸Þ¼­µå¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 void IndexedPropertyDescriptor. setIndexedWriteMethod (Method  writeMethod)
          À妽º ÷ºÎ ÇÁ·ÎÆÛƼġÀÇ Ãâ·ÂÀ» »ç¿ëÇÏ´Â ¸Þ¼­µå¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 void PropertyDescriptor. setReadMethod (Method  readMethod)
          ÇÁ·ÎÆÛƼġÀÇ Àб⿡ »ç¿ëÇÏ´Â ¸Þ¼­µå¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 void PropertyDescriptor. setWriteMethod (Method  writeMethod)
          ÇÁ·ÎÆÛƼġÀÇ Ãâ·ÂÀ» »ç¿ëÇÏ´Â ¸Þ¼­µå¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 

Method ÇüÀÇ ÆĶó¹ÌÅ͸¦ °¡Áö´Â java.beans constructor¡¡ ¡¡
EventSetDescriptor (String  eventSetName, Class <? > listenerType, Method [] listenerMethods, Method  addListenerMethod, Method  removeListenerMethod)
          java.lang.reflect.Method °´Ã¼¿Í java.lang.Class °´Ã¼¸¦ »ç¿ëÇØ, Á¦·Î·ÎºÎÅÍ EventSetDescriptor¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
EventSetDescriptor (String  eventSetName, Class <? > listenerType, Method [] listenerMethods, Method  addListenerMethod, Method  removeListenerMethod)
          java.lang.reflect.Method °´Ã¼¿Í java.lang.Class °´Ã¼¸¦ »ç¿ëÇØ, Á¦·Î·ÎºÎÅÍ EventSetDescriptor¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
EventSetDescriptor (String  eventSetName, Class <? > listenerType, Method [] listenerMethods, Method  addListenerMethod, Method  removeListenerMethod, Method  getListenerMethod)
          ÀÌ »ý¼ºÀÚ´Â java.lang.reflect.Method °´Ã¼¿Í java.lang.Class °´Ã¼¸¦ »ç¿ëÇØ, Á¦·Î·ÎºÎÅÍ EventSetDescriptor¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
EventSetDescriptor (String  eventSetName, Class <? > listenerType, Method [] listenerMethods, Method  addListenerMethod, Method  removeListenerMethod, Method  getListenerMethod)
          ÀÌ »ý¼ºÀÚ´Â java.lang.reflect.Method °´Ã¼¿Í java.lang.Class °´Ã¼¸¦ »ç¿ëÇØ, Á¦·Î·ÎºÎÅÍ EventSetDescriptorÀ» ÀÛ¼ºÇÕ´Ï´Ù.
EventSetDescriptor (String  eventSetName, Class <? > listenerType, MethodDescriptor [] listenerMethodDescriptors, Method  addListenerMethod, Method  removeListenerMethod)
          java.lang.reflect.MethodDescriptor °´Ã¼¿Í java.lang.Class °´Ã¼¸¦ »ç¿ëÇØ, Á¦·Î·ÎºÎÅÍ EventSetDescriptor¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
IndexedPropertyDescriptor (String  propertyName, Method  readMethod, Method  writeMethod, Method  indexedReadMethod, Method  indexedWriteMethod)
          ÀÌ »ý¼ºÀÚ´Â ´Ü¼øÇÑ ÇÁ·ÎÆÛƼ¸í°ú ÇÁ·ÎÆÛƼÀÇ read ¹× write¹«ÀÇ Method °´Ã¼¸¦ Àμö¿¡ ÃëÇÕ´Ï´Ù.
MethodDescriptor (Method  method)
          Method·Î ºÎÅÍ MethodDescriptor¸¦ ±¸ÃàÇÕ´Ï´Ù.
MethodDescriptor (Method  method, ParameterDescriptor [] parameterDescriptors)
          ¸Þ¼­µåÀÇ °¢ ÆĶó¹ÌÅÍ¿¡ ´ëÇؼ­ ¼³¸íÀûÀÎ Á¤º¸¸¦ Á¦°øÇÏ´Â °ÍÀ¸·Î½á, Method·Î ºÎÅÍ MethodDescriptor¸¦ ±¸ÃàÇÕ´Ï´Ù.
PropertyDescriptor (String  propertyName, Method  readMethod, Method  writeMethod)
          ÀÌ »ý¼ºÀÚ´Â ´Ü¼øÇÑ ÇÁ·ÎÆÛƼ¸í°ú ÇÁ·ÎÆÛƼÀÇ read ¹× write¹«ÀÇ Method °´Ã¼¸¦ Àμö¿¡ ÃëÇÕ´Ï´Ù.
 

java.lang ¿¡¼­ÀÇ Method »ç¿ë
 

Method¸¦ µ¹·ÁÁÖ´Â java.lang ¸Þ¼­µå
 Method Class. getDeclaredMethod (String  name, Class ... parameterTypes)
          ÀÌ Class °´Ã¼°¡ ³ªÅ¸³»´Â Ŭ·¡½º ¶Ç´Â ÀÎÅÍÆäÀ̽ºÀÇ ÁöÁ¤µÈ ¼±¾ð ¸Þ¼­µå¸¦ ¸®Ç÷ºÆ® ÇÏ´Â Method °´Ã¼¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 Method [] Class. getDeclaredMethods ()
          ÀÌ Class °´Ã¼°¡ ³ªÅ¸³»´Â Ŭ·¡½º ¶Ç´Â ÀÎÅÍÆäÀ̽º¿¡ ÀÇÇØ ¼±¾ðµÈ ¸ðµç ¸Þ¼­µå¸¦ ¸®Ç÷ºÆ® ÇÏ´Â Method °´Ã¼ÀÇ ¹è¿­À» ¸®ÅÏÇÕ´Ï´Ù.
 Method Class. getEnclosingMethod ()
          ÀÌ Class °´Ã¼°¡ ¸Þ¼­µå³»ÀÇ ·ÎÄà Ŭ·¡½º ¶Ç´Â À͸í Ŭ·¡½º¸¦ ³ªÅ¸³»´Â °æ¿ì´Â ±âº»ÀÌ µÇ´Â Ŭ·¡½º¸¦ Á÷Á¢ µÑ·¯½Î´Â ¸Þ¼­µå¸¦ ³ªÅ¸³»´Â Method °´Ã¼¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 Method Class. getMethod (String  name, Class ... parameterTypes)
          ÀÌ Class °´Ã¼°¡ ³ªÅ¸³»´Â Ŭ·¡½º ¶Ç´Â ÀÎÅÍÆäÀ̽ºÀÇ ÁöÁ¤µÈ public ¸â¹ö ¸Þ¼­µå¸¦ ¸®Ç÷ºÆ® ÇÏ´Â Method °´Ã¼¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 Method [] Class. getMethods ()
          ÀÌ Class °´Ã¼°¡ ³ªÅ¸³»´Â Ŭ·¡½º ¶Ç´Â ÀÎÅÍÆäÀ̽ºÀÇ ¸ðµç public ¡¸¸â¹ö¡¹¸Þ¼­µå¸¦ ¸®Ç÷ºÆ® ÇÏ´Â Method °´Ã¼¸¦ Æ÷ÇÔÇÏ°í ÀÖ´Â ¹è¿­À» ¸®ÅÏÇÕ´Ï´Ù.
 

java.lang.annotation ¿¡¼­ÀÇ Method »ç¿ë
 

Method¸¦ µ¹·ÁÁÖ´Â java.lang.annotation ¸Þ¼­µå
 Method AnnotationTypeMismatchException. element ()
          ºÎÁ¤ÇÑ ÇüÅÂÀÇ ¿ä¼Ò¿¡ ´ëÀÀÇÏ´Â Method °´Ã¼¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 

Method ÇüÀÇ ÆĶó¹ÌÅ͸¦ °¡Áö´Â java.lang.annotation constructor¡¡ ¡¡
AnnotationTypeMismatchException (Method  element, String  foundType)
          ÁöÁ¤µÈ ¾î³ëÅ×ÀÌ¼Ç ¿ä¼Ò¿Í ¹ß°ßµÈ µ¥ÀÌÅÍÇü¿¡ ´ëÇØ AnnotationTypeMismatchExceptionÀ» ±¸ÃàÇÕ´Ï´Ù.
 

java.lang.reflect ¿¡¼­ÀÇ Method »ç¿ë
 

Method ÇüÀÇ ÆĶó¹ÌÅ͸¦ °¡Áö´Â java.lang.reflect ¸Þ¼­µå
 Object InvocationHandler. invoke (Object  proxy, Method  method, Object [] args)
          ÇÁ·Ï½Ã ÀνºÅϽº·Î ¸Þ¼­µå È£ÃâÀ» ó¸®ÇØ, ±× °á°ú¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 

java.rmi.server ¿¡¼­ÀÇ Method »ç¿ë
 

Method ÇüÀÇ ÆĶó¹ÌÅ͸¦ °¡Áö´Â java.rmi.server ¸Þ¼­µå
 Object RemoteObjectInvocationHandler. invoke (Object  proxy, Method  method, Object [] args)
          ÀÌ °´Ã¼¸¦ ĸ½¶È­ÇÏ°í ÀÖ´Â ÇÁ·Ï½Ã ÀνºÅϽº proxy »ó¿¡¼­ ¹ßÇàµÈ ¸Þ¼­µå È£ÃâÀ» ó¸®ÇØ, ±× °á°ú¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 Object RemoteRef. invoke (Remote  obj, Method  method, Object [] params, long opnum)
          ¸Þ¼­µå¸¦ È£ÃâÇÕ´Ï´Ù.
 

javax.management ¿¡¼­ÀÇ Method »ç¿ë
 

Method ÇüÀÇ ÆĶó¹ÌÅ͸¦ °¡Áö´Â javax.management ¸Þ¼­µå
 Object MBeanServerInvocationHandler. invoke (Object  proxy, Method  method, Object [] args)
           
 

Method ÇüÀÇ ÆĶó¹ÌÅ͸¦ °¡Áö´Â javax.management constructor¡¡ ¡¡
MBeanAttributeInfo (String  name, String  description, Method  getter, Method  setter)
          ÀÌ »ý¼ºÀÚ´Â ´Ü¼øÇÑ ¼Ó¼º¸í°ú ¼Ó¼ºÀÇ read ¹× write¹«ÀÇ Method °´Ã¼¸¦ Àμö¿¡ ÃëÇÕ´Ï´Ù.
MBeanOperationInfo (String  description, Method  method)
          MBeanOperationInfo °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù.
 

javax.management.modelmbean ¿¡¼­ÀÇ Method »ç¿ë
 

Method ÇüÀÇ ÆĶó¹ÌÅ͸¦ °¡Áö´Â javax.management.modelmbean constructor¡¡ ¡¡
ModelMBeanAttributeInfo (String  name, String  description, Method  getter, Method  setter)
          µðÆúÆ®ÀÇ ±â¼úÀÚ·Î ModelMBeanAttributeInfo °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù.
ModelMBeanAttributeInfo (String  name, String  description, Method  getter, Method  setter, Descriptor  descriptor)
          ModelMBeanAttributeInfo °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù.
ModelMBeanOperationInfo (String  description, Method  operationMethod)
          µðÆúÆ®ÀÇ ±â¼úÀÚ·Î ModelMBeanOperationInfo °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù.
ModelMBeanOperationInfo (String  description, Method  operationMethod, Descriptor  descriptor)
          ModelMBeanOperationInfo °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù.
 


JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.