类 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 Object
getPropertyValue(Object instance, String pn)
get property value.Object[]
getPropertyValues(Object instance, String[] pns)
get property value.static Wrapper
getWrapper(Class<?> c)
get wrapper.boolean
hasMethod(String name)
has method.abstract boolean
hasProperty(String name)
has property.abstract Object
invokeMethod(Object instance, String mn, Class<?>[] types, Object[] args)
invoke method.abstract void
setPropertyValue(Object instance, String pn, Object pv)
set property value.void
setPropertyValues(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.
- 抛出:
NoSuchPropertyException
IllegalArgumentException
-
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.- 抛出:
NoSuchPropertyException
IllegalArgumentException
-
getPropertyValues
public Object[] getPropertyValues(Object instance, String[] pns) throws NoSuchPropertyException, IllegalArgumentException
get property value.- 参数:
instance
- instance.pns
- property name array.- 返回:
- value array.
- 抛出:
NoSuchPropertyException
IllegalArgumentException
-
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.- 抛出:
NoSuchPropertyException
IllegalArgumentException
-
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.
- 抛出:
NoSuchMethodException
InvocationTargetException
-
-