public static List<String> getParamNames(Constructor<?> constructor) {
        try {
            int size = constructor.getParameterTypes().length;
            if (size == 0)
                return new ArrayList<String>(0);
            List<String> list =  ClassMetaReader.getParamNames(constructor.getDeclaringClass()).get(ClassMetaReader.getKey(constructor));
            if (list != null && list.size() != size)
                return list.subList(0, size);
            return list;
        } catch (Throwable e) {
            throw new RuntimeException(e);
        }
    }
public static List<String> getParamNames(Constructor<?> constructor) {
        try {
            int size = constructor.getParameterTypes().length;
            if (size == 0)
                return new ArrayList<String>(0);
            List<String> list =  ClassMetaReader.getParamNames(constructor.getDeclaringClass()).get(ClassMetaReader.getKey(constructor));
            if (list != null && list.size() != size)
                return list.subList(0, size);
            return list;
        } catch (Throwable e) {
            throw new RuntimeException(e);
        }
    }
public static List < String > getParamNames ( Constructor < ? > constructor ) { try { int size = constructor . getParameterTypes ( ) . length ; if ( size == 0 ) return new ArrayList < String > ( 0 ) ; List < String > list = ClassMetaReader . getParamNames ( constructor . getDeclaringClass ( ) ) . get ( ClassMetaReader . getKey ( constructor ) ) ; if ( list != null && list . size ( ) != size ) return list . subList ( 0 , size ) ; return list ; } catch ( Throwable e ) { throw new RuntimeException ( e ) ; } }
获取Constructor的形参名称列表
@param constructor 需要解析的构造函数
@return 形参名称列表,如果没有调试信息,将返回null
获取Constructor的形参名称列表