public class MethodDescriptor extends Descriptor implements Getter, Setter
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.reflect.Method |
method |
protected java.lang.Class[] |
rawParameterTypes |
protected java.lang.Class |
rawReturnComponentType |
protected java.lang.Class |
rawReturnKeyComponentType |
protected java.lang.Class |
rawReturnType |
protected java.lang.reflect.Type |
returnType |
classDescriptor, isPublic| Constructor and Description |
|---|
MethodDescriptor(ClassDescriptor classDescriptor,
java.lang.reflect.Method method) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class |
getGetterRawComponentType() |
java.lang.Class |
getGetterRawKeyComponentType() |
java.lang.Class |
getGetterRawType() |
java.lang.reflect.Method |
getMethod()
Returns method.
|
java.lang.Class[] |
getRawParameterTypes()
Returns raw parameter types.
|
java.lang.Class |
getRawReturnComponentType()
Returns raw component type of return type.
|
java.lang.Class |
getRawReturnKeyComponentType()
Returns raw component type of return type.
|
java.lang.Class |
getRawReturnType()
Returns raw return type.
|
java.lang.Class |
getSetterRawType() |
java.lang.Object |
invokeGetter(java.lang.Object target) |
void |
invokeSetter(java.lang.Object target,
java.lang.Object argument) |
java.lang.Class |
resolveRawReturnComponentType(int index)
Resolves raw return component type for given index.
|
java.lang.String |
toString() |
getClassDescriptor, isPublic, matchDeclaredprotected final java.lang.reflect.Method method
protected final java.lang.reflect.Type returnType
protected final java.lang.Class rawReturnType
protected final java.lang.Class rawReturnComponentType
protected final java.lang.Class rawReturnKeyComponentType
protected final java.lang.Class[] rawParameterTypes
public MethodDescriptor(ClassDescriptor classDescriptor, java.lang.reflect.Method method)
public java.lang.reflect.Method getMethod()
public java.lang.Class getRawReturnType()
public java.lang.Class getRawReturnComponentType()
null if return type does not have
components.public java.lang.Class getRawReturnKeyComponentType()
null if return type does not have
components.public java.lang.Class resolveRawReturnComponentType(int index)
public java.lang.Class[] getRawParameterTypes()
public java.lang.Object invokeGetter(java.lang.Object target)
throws java.lang.reflect.InvocationTargetException,
java.lang.IllegalAccessException
invokeGetter in interface Getterjava.lang.reflect.InvocationTargetExceptionjava.lang.IllegalAccessExceptionpublic java.lang.Class getGetterRawType()
getGetterRawType in interface Getterpublic java.lang.Class getGetterRawComponentType()
getGetterRawComponentType in interface Getterpublic java.lang.Class getGetterRawKeyComponentType()
getGetterRawKeyComponentType in interface Getterpublic void invokeSetter(java.lang.Object target,
java.lang.Object argument)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
invokeSetter in interface Setterjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionpublic java.lang.Class getSetterRawType()
getSetterRawType in interface Setterpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2003-2013 Jodd Team