Class MethodInfo
java.lang.Object
com.jme3.network.service.rmi.MethodInfo
Internal information about shared methods. This is part of the data that
is passed over the wire when an object is shared.
- Author:
- Paul Speed
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MethodInfoSentinel used to represent a null method info entry. -
Constructor Summary
ConstructorsConstructorDescriptionFor serialization only.MethodInfo(short id, Method m) Creates metadata for a shared method. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the call type for the shared method.static CallTypeResolves the call type for a reflected method.shortgetId()Returns the shared method id.inthashCode()Invokes the reflected method on the specified target.booleanReturns true if the reflected method matches this method metadata.static StringConverts a reflected method into its serialized signature representation.toString()
-
Field Details
-
NULL_INFO
Sentinel used to represent a null method info entry.
-
-
Constructor Details
-
MethodInfo
public MethodInfo()For serialization only. -
MethodInfo
Creates metadata for a shared method.- Parameters:
id- the shared method idm- the reflected method
-
-
Method Details
-
invoke
-
getId
public short getId()Returns the shared method id.- Returns:
- the method id
-
getCallType
-
matches
Returns true if the reflected method matches this method metadata.- Parameters:
m- the reflected method to compare- Returns:
- true if the method signatures match
-
methodToString
-
getCallType
-
hashCode
-
equals
-
toString
-