JavaTM Platform
Standard Ed. 6

java.beans
クラス MethodDescriptor

java.lang.Object
  上位を拡張 java.beans.FeatureDescriptor
      上位を拡張 java.beans.MethodDescriptor

public class MethodDescriptor
extends FeatureDescriptor

MethodDescriptor は、その他のコンポーネントからの外部アクセスのために Java Bean でサポートされる特定のメソッドを記述します。


コンストラクタの概要
MethodDescriptor(Method method)
          Method から MethodDescriptor を構築します。
MethodDescriptor(Method method, ParameterDescriptor[] parameterDescriptors)
          Method から MethodDescriptor を構築し、メソッドの各パラメータについて説明的な情報を提供します。
 
メソッドの概要
 Method getMethod()
          この MethodDescriptor がカプセル化するメソッドを取得します。
 ParameterDescriptor[] getParameterDescriptors()
          この MethodDescriptor のメソッドの各パラメータについて ParameterDescriptor を取得します。
 
クラス java.beans.FeatureDescriptor から継承されたメソッド
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

MethodDescriptor

public MethodDescriptor(Method method)
Method から MethodDescriptor を構築します。

パラメータ:
method - 低レベルのメソッド情報

MethodDescriptor

public MethodDescriptor(Method method,
                        ParameterDescriptor[] parameterDescriptors)
Method から MethodDescriptor を構築し、メソッドの各パラメータについて説明的な情報を提供します。

パラメータ:
method - 低レベルのメソッド情報
parameterDescriptors - メソッドの各パラメータに関する説明的な情報
メソッドの詳細

getMethod

public Method getMethod()
この MethodDescriptor がカプセル化するメソッドを取得します。

戻り値:
メソッドの低レベルな説明

getParameterDescriptors

public ParameterDescriptor[] getParameterDescriptors()
この MethodDescriptor のメソッドの各パラメータについて ParameterDescriptor を取得します。

戻り値:
ロケールに依存しない、パラメータの名前。パラメータ名が不明な場合、null 配列が返されることがある

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 も参照してください。