org.jboss.aop.util
Class MethodHashing

java.lang.Object
  extended by org.jboss.aop.util.MethodHashing

public class MethodHashing
extends Object

Create a unique hash for

Version:
$Revision: 71279 $
Author:
Marc Fleury

Constructor Summary
MethodHashing()
           
 
Method Summary
static long calculateHash(Method method)
           
static long constructorHash(Constructor<?> method)
           
static long createHash(String methodDesc)
           
static Constructor<?> findConstructorByHash(Class<?> clazz, long hash)
           
static Constructor<?> findConstructorByHash(Class<?> clazz, Long hash)
           
static Method findMethodByHash(Class<?> clazz, long hash)
           
static Method findMethodByHash(Class<?> clazz, Long hash)
           
static Map<String,Long> getInterfaceHashes(Class<?> intf)
          Deprecated. I can't see why this would have any value to anybody apart from this class. It will be made private
static long methodHash(Method method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodHashing

public MethodHashing()
Method Detail

findMethodByHash

public static Method findMethodByHash(Class<?> clazz,
                                      long hash)
                               throws Exception
Throws:
Exception

findMethodByHash

public static Method findMethodByHash(Class<?> clazz,
                                      Long hash)
                               throws Exception
Throws:
Exception

findConstructorByHash

public static Constructor<?> findConstructorByHash(Class<?> clazz,
                                                   long hash)
                                            throws Exception
Throws:
Exception

findConstructorByHash

public static Constructor<?> findConstructorByHash(Class<?> clazz,
                                                   Long hash)
                                            throws Exception
Throws:
Exception

methodHash

public static long methodHash(Method method)
                       throws Exception
Throws:
Exception

createHash

public static long createHash(String methodDesc)
                       throws Exception
Throws:
Exception

constructorHash

public static long constructorHash(Constructor<?> method)
                            throws Exception
Throws:
Exception

calculateHash

public static long calculateHash(Method method)

getInterfaceHashes

public static Map<String,Long> getInterfaceHashes(Class<?> intf)
Deprecated. I can't see why this would have any value to anybody apart from this class. It will be made private

Calculate method hashes. This algo is taken from RMI.

Parameters:
intf -
Returns:


Copyright © 2008 JBoss, a division of Red Hat, Inc.. All Rights Reserved.