|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.carol.irmi.Hashes
The Hashes class contains static utility methods for converting
between hashes and methods. The hash algorithm used is the one
described in the RMI specification. Any converstions from Method
s to hashes and from (Class
, hash) to Method
are statically cached.
Method Summary | |
static long |
getHash(Method meth)
Converts (and caches) the hash for the given Method . |
static Method |
getMethod(Class klass,
long hash)
Searches a given Class for a Method having a
given hash. |
static long |
opnum(Method method)
Computes the RMI specified hash for the given method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static long getHash(Method meth)
Method
.
The hash algorithm used is the one described in the RMI
specification.
meth
- the Method
to hash
public static Method getMethod(Class klass, long hash)
Class
for a Method
having a
given hash. The result of this search is cached.
klass
- the Class
to searchhash
- the hash of the desired method
Method
matching the given hash, or null if
none existspublic static long opnum(Method method)
method
- the method to hash
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |