public class MethodDescriptor extends Descriptor implements Getter, Setter
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.reflect.Method |
method |
protected java.lang.Class[] |
rawParameterComponentTypes |
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.String |
getName()
Returns method name.
|
java.lang.Class[] |
getRawParameterComponentTypes()
Returns raw parameter component types.
|
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 |
getSetterRawComponentType() |
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[] |
resolveRawReturnComponentTypes()
Resolves raw return component types
This value is NOT cached.
|
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
protected final java.lang.Class[] rawParameterComponentTypes
public MethodDescriptor(ClassDescriptor classDescriptor, java.lang.reflect.Method method)
public java.lang.String getName()
getName in class Descriptorpublic 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[] resolveRawReturnComponentTypes()
public java.lang.Class[] getRawParameterTypes()
public java.lang.Class[] getRawParameterComponentTypes()
null
if data does not exist.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.Class getSetterRawComponentType()
getSetterRawComponentType in interface Setterpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2003-present Jodd Team