public class MethodHash extends Object implements Comparable<MethodHash>
| Modifier and Type | Field and Description |
|---|---|
static String |
METHOD_HASH_ELEMENT_NAME |
| Constructor and Description |
|---|
MethodHash()
Constructor. computeHash(Method) must be used to initialize the contents.
|
MethodHash(String methodName,
String methodSig,
boolean isStatic,
byte[] hash)
Constructor.
|
| Modifier and Type | Method and 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(Object o) |
byte[] |
getMethodHash()
Get the computed method hash.
|
String |
getMethodName() |
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 String METHOD_HASH_ELEMENT_NAME
public MethodHash()
public String getMethodName()
public 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 Comparable<MethodHash>public static int compareHashes(byte[] a,
byte[] b)
Copyright © 2003–2015. All rights reserved.