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 TypeMethodDescriptionbooleanClass<?>Class<?>[]inthashCode()voidreadExternal(ObjectInput objectInput) static voidtoString()transform(ClassLoader classLoader) voidwriteExternal(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:
readExternalin interfaceExternalizable- Throws:
ClassNotFoundExceptionIOException
-
toString
-
transform
- Throws:
ClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-