| java.lang.Object edu.umd.cs.findbugs.ba.MethodHash
MethodHash | public class MethodHash implements Comparable<MethodHash>(Code) | | Compute a hash of the bytecode for given method.
This can find methods which have not been changed other
than accessing different constant pool entries.
author: David Hovemeyer |
METHOD_HASH_ELEMENT_NAME | final public static String METHOD_HASH_ELEMENT_NAME(Code) | | |
MethodHash | public MethodHash()(Code) | | Constructor.
computeHash(Method) must be used to initialize the contents.
|
MethodHash | public MethodHash(String methodName, String methodSig, boolean isStatic, byte[] hash)(Code) | | Constructor.
Parameters: methodName - method name Parameters: methodSig - method signature Parameters: isStatic - true if the method is static, false if not Parameters: hash - the pre-computed hash |
compareHashes | public static int compareHashes(byte[] a, byte[] b)(Code) | | |
computeHash | public MethodHash computeHash(Method method)(Code) | | Compute hash on given method.
Parameters: method - the method this object |
getMethodHash | public byte[] getMethodHash()(Code) | | Get the computed method hash.
the method hash |
getMethodName | public String getMethodName()(Code) | | Returns the method name. |
getMethodSig | public String getMethodSig()(Code) | | Returns the method signature. |
hashCode | public int hashCode()(Code) | | |
isSameHash | public boolean isSameHash(MethodHash other)(Code) | | Return whether or not this method hash has the same value as the one given.
Parameters: other - another MethodHash true if the hash values are the same, false if not |
isStatic | public boolean isStatic()(Code) | | Returns whether the method is static. |
|
|