samedi 14 janvier 2017

Comparing ASM MethodNode parameters

I'm trying to create an method that compares the parameters of 2 methods and give me an percentage of matching parameters, like:

Method1(int i, boolean b, char c)    
Method2(boolean b, int i)   
Method3(char c)    
Method4(double d)


Method1 and Method2 = 66% -> 2 matching parameters    
Method1 and Method3 = 33% -> 1 matching parameter
Method1 and Method4 = 0%  -> 0 matching parameters

Can someone give me a clue how to do this?





Aucun commentaire:

Enregistrer un commentaire