public class MethodComparator extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MethodComparator.Tracer |
Constructor and Description |
---|
MethodComparator() |
Modifier and Type | Method and Description |
---|---|
static boolean |
compareBytecode(List b1,
List b2)
Compares 2 bytecode listings.
|
boolean |
equivalent(String method1,
org.mvel2.asm.ClassReader class1,
String method2,
org.mvel2.asm.ClassReader class2)
This actually does the comparing.
|
static List |
getMethodBytecode(String methodName,
byte[] bytes)
This will return a series of bytecode instructions which can be used to compare one method with another.
|
List |
getMethodBytecode(String methodName,
org.mvel2.asm.ClassReader classReader)
This will return a series of bytecode instructions which can be used to compare one method with another.
|
public boolean equivalent(String method1, org.mvel2.asm.ClassReader class1, String method2, org.mvel2.asm.ClassReader class2)
public List getMethodBytecode(String methodName, org.mvel2.asm.ClassReader classReader)
public static List getMethodBytecode(String methodName, byte[] bytes)
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.