java.lang.Comparable<MethodHash>public class MethodHash extends java.lang.Object implements java.lang.Comparable<MethodHash>
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
METHOD_HASH_ELEMENT_NAME |
| Constructor | Description |
|---|---|
MethodHash() |
Constructor.
|
MethodHash(java.lang.String methodName,
java.lang.String methodSig,
boolean isStatic,
byte[] hash) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
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() |
public static final java.lang.String METHOD_HASH_ELEMENT_NAME
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 hashpublic 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 methodpublic boolean isSameHash(MethodHash other)
other - another MethodHashpublic 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.Objectpublic static int compareHashes(byte[] a,
byte[] b)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.