public class MethodKey
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
MethodKey(java.lang.Class<?> declaredType,
java.lang.String methodName,
java.lang.Class<?>... parameterTypes)
Create a new method key.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
protected java.lang.reflect.Method |
findMethodConsiderAssignableParameterTypes()
Find the keyed method using 'relaxed' typing.
|
java.lang.Class<?> |
getDeclaredType()
Return the class the method is a member of.
|
java.lang.reflect.Method |
getMethod()
Returns the keyed method, resolving it if necessary via reflection.
|
java.lang.String |
getMethodName()
Returns the method name.
|
java.lang.Class<?>[] |
getParameterTypes()
Returns the method parameter types.
|
int |
hashCode() |
protected java.lang.reflect.Method |
resolveMethod()
Resolve the keyed method.
|
java.lang.String |
toString() |
public MethodKey(java.lang.Class<?> declaredType, java.lang.String methodName, java.lang.Class<?>... parameterTypes)
declaredType
- the class the method is a member ofmethodName
- the method nameparameterTypes
- the method's parameter types, or null
if the method has no parameterspublic java.lang.Class<?> getDeclaredType()
public java.lang.String getMethodName()
public java.lang.Class<?>[] getParameterTypes()
public java.lang.reflect.Method getMethod() throws InvalidMethodKeyException
InvalidMethodKeyException
protected java.lang.reflect.Method resolveMethod() throws InvalidMethodKeyException
InvalidMethodKeyException
protected java.lang.reflect.Method findMethodConsiderAssignableParameterTypes()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object