Package com.liferay.portal.kernel.util
Class MethodKey
Object
com.liferay.portal.kernel.util.MethodKey
- All Implemented Interfaces:
Externalizable
,Serializable
Provides a serializable loose representation for
Method
, considering
the declaring class, name, and parameter types of the Method
, while
ignoring its return type and exceptions. This means the compiler generated
bridging method is considered logically the same as it source counterpart. On
deserialization for a generic Method
, the Method
that is
resolved (bridge method or source method) is runtime environment dependent.
Whether it is resolved to a bridge method or source method is of no
consequence, as a force cast is performed on the method's return value,
assuring the same result.- Author:
- Brian Wing Shun Chan, Shuyang Zhou
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Class<?>
Class<?>[]
int
hashCode()
void
readExternal
(ObjectInput objectInput) static void
toString()
transform
(ClassLoader classLoader) void
writeExternal
(ObjectOutput objectOutput)
-
Constructor Details
-
MethodKey
public MethodKey()The empty constructor is required byExternalizable
. Do not use this for any other purpose. -
MethodKey
-
MethodKey
-
-
Method Details
-
resetCache
public static void resetCache() -
equals
-
getDeclaringClass
-
getMethod
- Throws:
NoSuchMethodException
-
getMethodName
-
getParameterTypes
-
hashCode
public int hashCode() -
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
ClassNotFoundException
IOException
-
toString
-
transform
- Throws:
ClassNotFoundException
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-