|
FindBugs™ 1.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cs.findbugs.ba.MethodHash
public class MethodHash
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.
| Field Summary | |
|---|---|
static java.lang.String |
METHOD_HASH_ELEMENT_NAME
|
| Constructor Summary | |
|---|---|
MethodHash()
Constructor. |
|
MethodHash(java.lang.String methodName,
java.lang.String methodSig,
boolean isStatic,
byte[] hash)
Constructor. |
|
| Method Summary | |
|---|---|
static int |
compareHashes(byte[] a,
byte[] b)
|
int |
compareTo(MethodHash other)
|
MethodHash |
computeHash(org.apache.bcel.classfile.Method method)
Compute hash on given method. |
boolean |
equals(java.lang.Object o)
|
byte[] |
getMethodHash()
Get the computed method hash. |
java.lang.String |
getMethodName()
|
java.lang.String |
getMethodSig()
|
int |
hashCode()
|
boolean |
isSameHash(MethodHash other)
Return whether or not this method hash has the same value as the one given. |
boolean |
isStatic()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String METHOD_HASH_ELEMENT_NAME
| Constructor Detail |
|---|
public MethodHash()
public MethodHash(java.lang.String methodName,
java.lang.String methodSig,
boolean isStatic,
byte[] hash)
methodName - method namemethodSig - method signatureisStatic - true if the method is static, false if nothash - the pre-computed hash| Method Detail |
|---|
public java.lang.String getMethodName()
public java.lang.String getMethodSig()
public boolean isStatic()
public byte[] getMethodHash()
public MethodHash computeHash(org.apache.bcel.classfile.Method method)
method - the method
public boolean isSameHash(MethodHash other)
other - another MethodHash
public int compareTo(MethodHash other)
compareTo in interface java.lang.Comparable<MethodHash>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
public static int compareHashes(byte[] a,
byte[] b)
|
FindBugs™ 1.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||