类 Wrapper
- java.lang.Object
-
- com.alibaba.dubbo.common.bytecode.Wrapper
-
public abstract class Wrapper extends Object
Wrapper.
-
-
构造器概要
构造器 构造器 说明 Wrapper()
-
方法概要
所有方法 静态方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 abstract String[]getDeclaredMethodNames()get method name array.abstract String[]getMethodNames()get method name array.abstract String[]getPropertyNames()get property name array.abstract Class<?>getPropertyType(String pn)get property type.abstract ObjectgetPropertyValue(Object instance, String pn)get property value.Object[]getPropertyValues(Object instance, String[] pns)get property value.static WrappergetWrapper(Class<?> c)get wrapper.booleanhasMethod(String name)has method.abstract booleanhasProperty(String name)has property.abstract ObjectinvokeMethod(Object instance, String mn, Class<?>[] types, Object[] args)invoke method.abstract voidsetPropertyValue(Object instance, String pn, Object pv)set property value.voidsetPropertyValues(Object instance, String[] pns, Object[] pvs)set property value.
-
-
-
方法详细资料
-
getWrapper
public static Wrapper getWrapper(Class<?> c)
get wrapper.- 参数:
c- Class instance.- 返回:
- Wrapper instance(not null).
-
getPropertyNames
public abstract String[] getPropertyNames()
get property name array.- 返回:
- property name array.
-
getPropertyType
public abstract Class<?> getPropertyType(String pn)
get property type.- 参数:
pn- property name.- 返回:
- Property type or nul.
-
hasProperty
public abstract boolean hasProperty(String name)
has property.- 参数:
name- property name.- 返回:
- has or has not.
-
getPropertyValue
public abstract Object getPropertyValue(Object instance, String pn) throws NoSuchPropertyException, IllegalArgumentException
get property value.- 参数:
instance- instance.pn- property name.- 返回:
- value.
- 抛出:
NoSuchPropertyExceptionIllegalArgumentException
-
setPropertyValue
public abstract void setPropertyValue(Object instance, String pn, Object pv) throws NoSuchPropertyException, IllegalArgumentException
set property value.- 参数:
instance- instance.pn- property name.pv- property value.- 抛出:
NoSuchPropertyExceptionIllegalArgumentException
-
getPropertyValues
public Object[] getPropertyValues(Object instance, String[] pns) throws NoSuchPropertyException, IllegalArgumentException
get property value.- 参数:
instance- instance.pns- property name array.- 返回:
- value array.
- 抛出:
NoSuchPropertyExceptionIllegalArgumentException
-
setPropertyValues
public void setPropertyValues(Object instance, String[] pns, Object[] pvs) throws NoSuchPropertyException, IllegalArgumentException
set property value.- 参数:
instance- instance.pns- property name array.pvs- property value array.- 抛出:
NoSuchPropertyExceptionIllegalArgumentException
-
getMethodNames
public abstract String[] getMethodNames()
get method name array.- 返回:
- method name array.
-
getDeclaredMethodNames
public abstract String[] getDeclaredMethodNames()
get method name array.- 返回:
- method name array.
-
hasMethod
public boolean hasMethod(String name)
has method.- 参数:
name- method name.- 返回:
- has or has not.
-
invokeMethod
public abstract Object invokeMethod(Object instance, String mn, Class<?>[] types, Object[] args) throws NoSuchMethodException, InvocationTargetException
invoke method.- 参数:
instance- instance.mn- method name.types-args- argument array.- 返回:
- return value.
- 抛出:
NoSuchMethodExceptionInvocationTargetException
-
-