Class Classes

java.lang.Object
org.jeecgframework.minidao.util.Classes

public class Classes extends Object

依赖javassit的工具类,获取方法的参数名

Author:
dixingxing
  • Method Details

    • getMethodParamNames

      protected static String[] getMethodParamNames(javassist.CtMethod cm)

      获取方法参数名称

      Parameters:
      cm -
      Returns:
      Throws:
      Exception
    • getMethodParamNames

      public static String[] getMethodParamNames(Class<?> clazz, String method, Class<?>... paramTypes)
      获取方法参数名称,按给定的参数类型匹配方法
      Parameters:
      clazz -
      method -
      paramTypes -
      Returns:
    • getMethodParamNames

      public static String[] getMethodParamNames(Class<?> clazz, String method)
      获取方法参数名称,匹配同名的某一个方法
      Parameters:
      clazz -
      method -
      Returns:
      Throws:
      javassist.NotFoundException - 如果类或者方法不存在
      MissingLVException - 如果最终编译的class文件不包含局部变量表信息
    • main

      public static void main(String[] args)