src/share/classes/java/beans/MethodDescriptor.java

Print this page
rev 10053 : 8044855: Add missing @since tag under java.beans.*
Reviewed-by:


  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.beans;
  27 
  28 import java.lang.ref.Reference;
  29 import java.lang.ref.WeakReference;
  30 import java.lang.reflect.Method;
  31 import java.util.List;
  32 import java.util.ArrayList;
  33 
  34 /**
  35  * A MethodDescriptor describes a particular method that a Java Bean
  36  * supports for external access from other components.


  37  */
  38 
  39 public class MethodDescriptor extends FeatureDescriptor {
  40 
  41     private final MethodRef methodRef = new MethodRef();
  42 
  43     private String[] paramNames;
  44 
  45     private List<WeakReference<Class<?>>> params;
  46 
  47     private ParameterDescriptor parameterDescriptors[];
  48 
  49     /**
  50      * Constructs a <code>MethodDescriptor</code> from a
  51      * <code>Method</code>.
  52      *
  53      * @param method    The low-level method information.
  54      */
  55     public MethodDescriptor(Method method) {
  56         this(method, null);




  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.beans;
  27 
  28 import java.lang.ref.Reference;
  29 import java.lang.ref.WeakReference;
  30 import java.lang.reflect.Method;
  31 import java.util.List;
  32 import java.util.ArrayList;
  33 
  34 /**
  35  * A MethodDescriptor describes a particular method that a Java Bean
  36  * supports for external access from other components.
  37  *
  38  * @since 1.1
  39  */
  40 
  41 public class MethodDescriptor extends FeatureDescriptor {
  42 
  43     private final MethodRef methodRef = new MethodRef();
  44 
  45     private String[] paramNames;
  46 
  47     private List<WeakReference<Class<?>>> params;
  48 
  49     private ParameterDescriptor parameterDescriptors[];
  50 
  51     /**
  52      * Constructs a <code>MethodDescriptor</code> from a
  53      * <code>Method</code>.
  54      *
  55      * @param method    The low-level method information.
  56      */
  57     public MethodDescriptor(Method method) {
  58         this(method, null);