public class MethodUtil extends Object
| 构造器和说明 |
|---|
MethodUtil() |
public static List<RequestParamBean> getParams(Method sourceMethod) throws javassist.NotFoundException, ClassNotFoundException
javassist.NotFoundExceptionClassNotFoundExceptionpublic static boolean isGetMethod(Method method)
public static boolean isSetMethod(Method method)
public static javassist.CtMethod getCtMethod(Method method) throws javassist.NotFoundException
javassist.NotFoundExceptionpublic static boolean checkType(String clazz)
public static Method getSourceMethod(javassist.CtMethod ctmethod) throws ClassNotFoundException, javassist.NotFoundException
ClassNotFoundExceptionjavassist.NotFoundExceptionpublic static List<RequestParamBean> getCtParams(javassist.CtMethod ctmethod) throws ClassNotFoundException, javassist.NotFoundException
ClassNotFoundExceptionjavassist.NotFoundExceptionpublic static StringBuffer toParamsStr(ConstructorBean constructorBean) throws ClassNotFoundException
public static StringBuffer toConstructorStr(ConstructorBean constructorBean) throws ClassNotFoundException
public static StringBuffer toMethodStr(RequestMethodBean bean, String javaName, boolean requestBody) throws ClassNotFoundException
public static StringBuffer toMethodProxyStr(RequestMethodBean bean, ViewType viewType, String javaName, String sourceMethodName) throws ClassNotFoundException
public static StringBuffer toException(StringBuffer methodBuffer)
public static StringBuffer toInnerMethodStr(javassist.CtMethod ctmethod)
public static StringBuffer toInnerMethodStr(Method method)
public static StringBuffer toMethodProxyStr(Method method, ViewType viewType, String javaName, String sourceMethodName)
public static StringBuffer toFieldStr(Method method, String javaName, String fieldName)
public static StringBuffer toMethodStr(Method method, ViewType viewType, String javaName, boolean requestBody)
public static StringBuffer toReturnPrxoyStr(Method method, String javaName)
public static StringBuffer toReturnStr(Method method, ViewType viewType, String javaName)
public ListResultModel<List<User>> test(@RequestBody User arg0, Map<String,User> arg1) throws Exception
Exceptionpublic static StringBuffer toWildcardType(StringBuffer methodBuffer, WildcardType type) throws ClassNotFoundException
public static StringBuffer toType(String methodName, String javaName, StringBuffer methodBuffer, Type type, Boolean isProxy) throws ClassNotFoundException
public static Set<String> getAllAnnotationClass(Annotation annotation, Set<String> classes) throws ClassNotFoundException
public static Set<String> getAllImports(Set<Class> clazzs, Set<String> imports) throws ClassNotFoundException
public static Set<String> getAllImports(Class clazz, Set<String> imports) throws ClassNotFoundException
public static StringBuffer toTypeStr(String methodName, String javaName, StringBuffer methodBuffer, ParameterizedType type) throws ClassNotFoundException
public static void main(String[] args)
Copyright © 2023 onecode. All rights reserved.