edu.umd.cs.findbugs.ba
public class MethodHash extends Object implements Comparable<MethodHash>
| Field Summary | |
|---|---|
| static String | METHOD_HASH_ELEMENT_NAME |
| Constructor Summary | |
|---|---|
| MethodHash()
Constructor.
computeHash(Method) must be used to initialize the contents. | |
| MethodHash(String methodName, String methodSig, boolean isStatic, byte[] hash)
Constructor.
| |
| Method Summary | |
|---|---|
| static int | compareHashes(byte[] a, byte[] b) |
| int | compareTo(MethodHash other) |
| MethodHash | computeHash(Method method)
Compute hash on given method.
|
| byte[] | getMethodHash()
Get the computed method hash.
|
| String | getMethodName() |
| String | getMethodSig() |
| boolean | isSameHash(MethodHash other)
Return whether or not this method hash has the same value as the one given.
|
| boolean | isStatic() |
Parameters: methodName method name methodSig method signature isStatic true if the method is static, false if not hash the pre-computed hash
Parameters: method the method
Returns: this object
Returns: the method hash
Returns: Returns the method name.
Returns: Returns the method signature.
Parameters: other another MethodHash
Returns: true if the hash values are the same, false if not
Returns: Returns whether the method is static.