Class ASMUtils


  • public final class ASMUtils
    extends Object
    A set of utility methods for working togeter with ASM framework.
    Author:
    Yury Molchan
    • Method Detail

      • findMethod

        public static Method findMethod​(Map<String,​List<Method>> methodsMap,
                                        String methodName,
                                        String descriptor)
        Search a method in the built map;
        Parameters:
        methodsMap - a target map in which the method is searching
        methodName - a method name for searching
        descriptor - an argument types descriptor of a method
        Returns:
        null if the method is not found
      • buildMap

        public static Map<String,​List<Method>> buildMap​(Class<?> clazz)
        Builds a map for searching a method
        Parameters:
        clazz - a target class to build a map
        Returns:
        returns a map