JavaTM Platform
Standard Ed. 6

클래스
java.lang.reflect.Method 의 사용

Method 를 사용하고 있는 패키지
java.beans Beans (JavaBeansTM 아키텍쳐(architecture)에 근거한 컴퍼넌트)의 개발에 관련하는 클래스가 포함되어 있습니다.  
java.lang Java 프로그램 언어의 설계해 기본적인 클래스를 제공합니다.  
java.lang.annotation Java 프로그램 언어의 주석 기능을 지원하는 라이브러리를 제공합니다.  
java.lang.reflect 클래스와 객체에 관한 리플렉트 정보를 취득하는 클래스 및 인터페이스를 제공합니다.  
java.rmi.server 서버측의 RMI 를 지원하는 클래스와 인터페이스를 제공합니다.  
javax.management Java Management Extensions 의 코어 클래스를 제공합니다.  
javax.management.modelmbean ModelMBean 클래스의 정의를 제공합니다.  
javax.management.openmbean 공개 데이터형과 Open MBean 기술자 클래스를 제공합니다.  
 

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 의 생성자
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 및 기입해 용무의 Method 객체를 인수에 취합니다.
MethodDescriptor (Method  method)
          Method 로부터 MethodDescriptor 를 구축합니다.
MethodDescriptor (Method  method, ParameterDescriptor [] parameterDescriptors)
          Method 로부터 MethodDescriptor 를 구축해, 메소드의 각 파라미터에 대해 설명적인 정보를 제공합니다.
PropertyDescriptor (String  propertyName, Method  readMethod, Method  writeMethod)
          이 생성자 은, 단순한 프로퍼티명과 프로퍼티의 read 및 기입해 용무의 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 의 생성자
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 의 생성자
MBeanAttributeInfo (String  name, String  description, Method  getter, Method  setter)
          이 생성자 은, 단순한 속성명과 속성의 read 및 기입해 용무의 Method 객체를 인수에 취합니다.
MBeanOperationInfo (String  description, Method  method)
          MBeanOperationInfo 객체를 구축합니다.
 

javax.management.modelmbean 에서의 Method 의 사용
 

Method 형의 파라미터를 가지는 javax.management.modelmbean 의 생성자
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 객체를 구축합니다.
 

javax.management.openmbean 에서의 Method 의 사용
 

Method 형의 파라미터를 가지는 javax.management.openmbean 의 메소드
 Object CompositeDataInvocationHandler. invoke (Object  proxy, Method  method, Object [] args)
           
 


JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.