类 Wrapper


  • public abstract class Wrapper
    extends 
    Wrapper.
    • 构造器概要

      构造器 
      构造器 说明
      Wrapper()  
    • 方法概要

      所有方法 静态方法 实例方法 抽象方法 具体方法 
      修饰符和类型 方法 说明
      abstract [] getDeclaredMethodNames()
      get method name array.
      abstract [] getMethodNames()
      get method name array.
      abstract [] getPropertyNames()
      get property name array.
      abstract <?>  pn)
      get property type.
      abstract  instance,  pn)
      get property value.
      []  instance, [] pns)
      get property value.
      static Wrapper <?> c)
      get wrapper.
      boolean  name)
      has method.
      abstract boolean  name)
      has property.
      abstract  instance,  mn, <?>[] types, [] args)
      invoke method.
      abstract void  instance,  pn,  pv)
      set property value.
      void  instance, [] pns, [] pvs)
      set property value.
      • 从类继承的方法 java.lang.

        , , , , , , , ,
    • 构造器详细资料

      • Wrapper

        public Wrapper()
    • 方法详细资料

      • getWrapper

        public static <?> c)
        get wrapper.
        参数:
        c - Class instance.
        返回:
        Wrapper instance(not null).
      • getPropertyNames

        public abstract [] getPropertyNames()
        get property name array.
        返回:
        property name array.
      • getPropertyType

        public abstract <?> getPropertyType​( pn)
        get property type.
        参数:
        pn - property name.
        返回:
        Property type or nul.
      • hasProperty

        public abstract boolean hasProperty​( name)
        has property.
        参数:
        name - property name.
        返回:
        has or has not.
      • setPropertyValue

        public abstract void setPropertyValue​( instance,
                                               pn,
                                               pv)
                                       throws NoSuchPropertyException,
                                              
        set property value.
        参数:
        instance - instance.
        pn - property name.
        pv - property value.
        抛出:
        NoSuchPropertyException
      • getPropertyValues

        public [] getPropertyValues​( instance,
                                          [] pns)
                                   throws NoSuchPropertyException,
                                          
        get property value.
        参数:
        instance - instance.
        pns - property name array.
        返回:
        value array.
        抛出:
        NoSuchPropertyException
      • setPropertyValues

        public void setPropertyValues​( instance,
                                      [] pns,
                                      [] pvs)
                               throws NoSuchPropertyException,
                                      
        set property value.
        参数:
        instance - instance.
        pns - property name array.
        pvs - property value array.
        抛出:
        NoSuchPropertyException
      • getMethodNames

        public abstract [] getMethodNames()
        get method name array.
        返回:
        method name array.
      • getDeclaredMethodNames

        public abstract [] getDeclaredMethodNames()
        get method name array.
        返回:
        method name array.
      • hasMethod

        public boolean hasMethod​( name)
        has method.
        参数:
        name - method name.
        返回:
        has or has not.
      • invokeMethod

        public abstract  invokeMethod​( instance,
                                             mn,
                                            <?>[] types,
                                            [] args)
                                     throws NoSuchMethodException,
                                            
        invoke method.
        参数:
        instance - instance.
        mn - method name.
        types -
        args - argument array.
        返回:
        return value.
        抛出:
        NoSuchMethodException