|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.carol.irmi.Hashes
public class 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(java.lang.reflect.Method meth)
Converts (and caches) the hash for the given Method . |
static java.lang.reflect.Method |
getMethod(java.lang.Class klass,
long hash)
Searches a given Class for a Method having a
given hash. |
static long |
opnum(java.lang.reflect.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(java.lang.reflect.Method meth)
Method
.
The hash algorithm used is the one described in the RMI
specification.
meth
- the Method
to hash
public static java.lang.reflect.Method getMethod(java.lang.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(java.lang.reflect.Method method)
method
- the method to hash
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |