| 构造器和说明 |
|---|
EndpointApiUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static javassist.bytecode.annotation.Annotation |
annotBean(javassist.bytecode.ConstPool constPool,
String[] name,
org.springframework.beans.factory.annotation.Autowire autowire,
String initMethod,
String destroyMethod)
构造 @Bean 注解
|
static javassist.bytecode.annotation.Annotation |
annotConfiguration(javassist.bytecode.ConstPool constPool,
String name)
构造 @Configuration 注解
|
static javassist.bytecode.annotation.Annotation |
annotController(javassist.bytecode.ConstPool constPool,
String name)
构造 @Controller 注解
|
static javassist.bytecode.annotation.Annotation |
annotDeleteMapping(javassist.bytecode.ConstPool constPool,
MvcMapping mapping)
构造 @DeleteMapping 注解
|
static javassist.bytecode.annotation.Annotation |
annotDeleteMapping(javassist.bytecode.ConstPool constPool,
String name,
String[] path,
String[] params,
String[] headers,
String[] consumes,
String[] produces)
构造 @DeleteMapping 注解
|
static javassist.bytecode.annotation.Annotation |
annotGetMapping(javassist.bytecode.ConstPool constPool,
MvcMapping mapping)
构造 @GetMapping 注解
|
static javassist.bytecode.annotation.Annotation |
annotGetMapping(javassist.bytecode.ConstPool constPool,
String name,
String[] path,
String[] params,
String[] headers,
String[] consumes,
String[] produces)
构造 @GetMapping 注解
|
static javassist.bytecode.annotation.Annotation |
annotLazy(javassist.bytecode.ConstPool constPool,
boolean lazy)
构造 @Lazy 注解
|
static javassist.bytecode.annotation.Annotation |
annotMethodMapping(javassist.bytecode.ConstPool constPool,
MvcMethod method)
根据参数 构造 @RequestMapping | @GetMapping | @PostMapping | @PutMapping | @DeleteMapping | @PatchMapping 注解
|
static javassist.bytecode.annotation.Annotation |
annotMethodMapping(javassist.bytecode.ConstPool constPool,
String path,
org.springframework.web.bind.annotation.RequestMethod method,
String contentType)
根据参数 构造 @GetMapping | @PostMapping | @PutMapping | @DeleteMapping | @PatchMapping 注解
|
static javassist.bytecode.annotation.Annotation[][] |
annotParams(javassist.bytecode.ConstPool constPool,
MvcParam<?>... params)
构造 @CookieValue | @MatrixVariable | @PathVariable | @RequestAttribute | @RequestBody | @RequestHeader
| @RequestParam | @RequestPart 参数注解
|
static javassist.bytecode.annotation.Annotation |
annotPatchMapping(javassist.bytecode.ConstPool constPool,
MvcMapping mapping)
构造 @PatchMapping 注解
|
static javassist.bytecode.annotation.Annotation |
annotPatchMapping(javassist.bytecode.ConstPool constPool,
String name,
String[] path,
String[] params,
String[] headers,
String[] consumes,
String[] produces)
构造 @PatchMapping 注解
|
static javassist.bytecode.annotation.Annotation |
annotPostMapping(javassist.bytecode.ConstPool constPool,
MvcMapping mapping)
构造 @PostMapping 注解
|
static javassist.bytecode.annotation.Annotation |
annotPostMapping(javassist.bytecode.ConstPool constPool,
String name,
String[] path,
String[] params,
String[] headers,
String[] consumes,
String[] produces)
构造 @PostMapping 注解
|
static javassist.bytecode.annotation.Annotation |
annotPutMapping(javassist.bytecode.ConstPool constPool,
MvcMapping mapping)
构造 @PutMapping 注解
|
static javassist.bytecode.annotation.Annotation |
annotPutMapping(javassist.bytecode.ConstPool constPool,
String name,
String[] path,
String[] params,
String[] headers,
String[] consumes,
String[] produces)
构造 @PutMapping 注解
|
static javassist.bytecode.annotation.Annotation |
annotRequestMapping(javassist.bytecode.ConstPool constPool,
MvcMapping mapping)
构造 @RequestMapping 注解
|
static javassist.bytecode.annotation.Annotation |
annotRequestMapping(javassist.bytecode.ConstPool constPool,
String name,
String[] path,
org.springframework.web.bind.annotation.RequestMethod[] method,
String[] params,
String[] headers,
String[] consumes,
String[] produces)
构造 @RequestMapping 注解
|
static javassist.bytecode.annotation.Annotation |
annotRestController(javassist.bytecode.ConstPool constPool,
String name)
构造 @RestController 注解
|
static javassist.bytecode.annotation.Annotation |
annotScope(javassist.bytecode.ConstPool constPool,
String scopeName,
org.springframework.context.annotation.ScopedProxyMode proxyMode)
构造 @Scope 注解
|
static javassist.bytecode.annotation.Annotation |
annotWebBound(javassist.bytecode.ConstPool constPool,
MvcBound bound)
构造 @WebBound 注解
|
static javassist.CtConstructor |
defaultConstructor(javassist.CtClass declaring) |
static javassist.CtClass |
makeClass(javassist.ClassPool pool,
String classname) |
static javassist.CtConstructor |
makeConstructor(javassist.ClassPool pool,
javassist.CtClass declaring) |
static javassist.CtClass |
makeInterface(javassist.ClassPool pool,
String classname) |
static javassist.CtClass[] |
makeParams(javassist.ClassPool pool,
MvcParam<?>... params) |
static void |
methodAnnotations(javassist.CtMethod ctMethod,
javassist.bytecode.ConstPool constPool,
MvcMethod method,
MvcBound bound,
MvcParam<?>... params)
为方法添加 @WebBound | @GetMapping | @PostMapping | @PutMapping | @DeleteMapping | @PatchMapping 注解
|
static void |
methodAnnotations(javassist.CtMethod ctMethod,
javassist.bytecode.ConstPool constPool,
String path,
org.springframework.web.bind.annotation.RequestMethod method,
String contentType,
MvcBound bound,
MvcParam<?>[] params)
为方法添加 @GetMapping | @PostMapping | @PutMapping | @DeleteMapping | @PatchMapping 注解
|
static void |
methodBody(javassist.CtMethod ctMethod,
MvcMethod method)
设置方法体
|
static void |
methodBody(javassist.CtMethod ctMethod,
String methodName)
设置方法体
|
static void |
methodBound(javassist.CtMethod ctMethod,
javassist.bytecode.ConstPool constPool,
MvcBound bound)
为方法添加 @WebBound 注解
|
static void |
methodCatch(javassist.ClassPool pool,
javassist.CtMethod ctMethod)
设置方法异常捕获逻辑
|
static <T> void |
setSuperclass(javassist.ClassPool pool,
javassist.CtClass declaring,
Class<T> clazz) |
public static javassist.bytecode.annotation.Annotation annotConfiguration(javassist.bytecode.ConstPool constPool,
String name)
constPool - ConstPool instancename - bean 名称Annotation instancepublic static javassist.bytecode.annotation.Annotation annotBean(javassist.bytecode.ConstPool constPool,
String[] name,
org.springframework.beans.factory.annotation.Autowire autowire,
String initMethod,
String destroyMethod)
constPool - ConstPool instancename - : name of beanautowire - : autowire typeinitMethod - : method name of initdestroyMethod - : method name of destroyAnnotation instancepublic static javassist.bytecode.annotation.Annotation annotLazy(javassist.bytecode.ConstPool constPool,
boolean lazy)
constPool - ConstPool instancelazy - : whither lazy load classAnnotation instancepublic static javassist.bytecode.annotation.Annotation annotScope(javassist.bytecode.ConstPool constPool,
String scopeName,
org.springframework.context.annotation.ScopedProxyMode proxyMode)
constPool - ConstPool instancescopeName - : the name of scopeproxyMode - : ScopedProxyMode instanceAnnotation instancepublic static javassist.bytecode.annotation.Annotation annotController(javassist.bytecode.ConstPool constPool,
String name)
constPool - : ConstPool instancename - : The name attribute values of @ControllerAnnotation instancepublic static javassist.bytecode.annotation.Annotation annotRestController(javassist.bytecode.ConstPool constPool,
String name)
constPool - : ConstPool instancename - : The name attribute values of @RestControllerAnnotation instancepublic static javassist.bytecode.annotation.Annotation annotRequestMapping(javassist.bytecode.ConstPool constPool,
MvcMapping mapping)
constPool - : ConstPool instancemapping - : MvcMapping instanceAnnotation instancepublic static javassist.bytecode.annotation.Annotation annotGetMapping(javassist.bytecode.ConstPool constPool,
MvcMapping mapping)
constPool - : ConstPool instancemapping - : MvcMapping instanceAnnotation instancepublic static javassist.bytecode.annotation.Annotation annotPostMapping(javassist.bytecode.ConstPool constPool,
MvcMapping mapping)
constPool - : ConstPool instancemapping - : MvcMapping instanceAnnotation instancepublic static javassist.bytecode.annotation.Annotation annotPutMapping(javassist.bytecode.ConstPool constPool,
MvcMapping mapping)
constPool - : ConstPool instancemapping - : MvcMapping instanceAnnotation instancepublic static javassist.bytecode.annotation.Annotation annotDeleteMapping(javassist.bytecode.ConstPool constPool,
MvcMapping mapping)
constPool - : ConstPool instancemapping - : MvcMapping instanceAnnotation instancepublic static javassist.bytecode.annotation.Annotation annotPatchMapping(javassist.bytecode.ConstPool constPool,
MvcMapping mapping)
constPool - : ConstPool instancemapping - : MvcMapping instanceAnnotation instancepublic static javassist.bytecode.annotation.Annotation annotRequestMapping(javassist.bytecode.ConstPool constPool,
String name,
String[] path,
org.springframework.web.bind.annotation.RequestMethod[] method,
String[] params,
String[] headers,
String[] consumes,
String[] produces)
constPool - : ConstPool instancename - : The name attribute value of @RequestMappingpath - : The path attribute values of @RequestMappingmethod - : The method attribute values of @RequestMappingparams - : The param attribute values of @RequestMappingheaders - : The header attribute values of @RequestMappingconsumes - : The consume attribute values of @RequestMappingproduces - : The produce attribute values of @RequestMappingAnnotation instancepublic static javassist.bytecode.annotation.Annotation annotGetMapping(javassist.bytecode.ConstPool constPool,
String name,
String[] path,
String[] params,
String[] headers,
String[] consumes,
String[] produces)
constPool - : ConstPool instancename - : The name attribute value of @GetMappingpath - : The path attribute values of @GetMappingparams - : The param attribute values of @GetMappingheaders - : The header attribute values of @GetMappingconsumes - : The consume attribute values of @GetMappingproduces - : The produce attribute values of @GetMappingAnnotation instancepublic static javassist.bytecode.annotation.Annotation annotPostMapping(javassist.bytecode.ConstPool constPool,
String name,
String[] path,
String[] params,
String[] headers,
String[] consumes,
String[] produces)
constPool - : ConstPool instancename - : The name attribute value of @PostMappingpath - : The path attribute values of @PostMappingparams - : The param attribute values of @PostMappingheaders - : The header attribute values of @PostMappingconsumes - : The consume attribute values of @PostMappingproduces - : The produce attribute values of @PostMappingAnnotation instancepublic static javassist.bytecode.annotation.Annotation annotPutMapping(javassist.bytecode.ConstPool constPool,
String name,
String[] path,
String[] params,
String[] headers,
String[] consumes,
String[] produces)
constPool - : ConstPool instancename - : The name attribute value of @PutMappingpath - : The path attribute values of @PutMappingparams - : The param attribute values of @PutMappingheaders - : The header attribute values of @PutMappingconsumes - : The consume attribute values of @PutMappingproduces - : The produce attribute values of @PutMappingAnnotation instancepublic static javassist.bytecode.annotation.Annotation annotDeleteMapping(javassist.bytecode.ConstPool constPool,
String name,
String[] path,
String[] params,
String[] headers,
String[] consumes,
String[] produces)
constPool - : ConstPool instancename - : The name attribute value of @DeleteMappingpath - : The path attribute values of @DeleteMappingparams - : The param attribute values of @DeleteMappingheaders - : The header attribute values of @DeleteMappingconsumes - : The consume attribute values of @DeleteMappingproduces - : The produce attribute values of @DeleteMappingAnnotation instancepublic static javassist.bytecode.annotation.Annotation annotPatchMapping(javassist.bytecode.ConstPool constPool,
String name,
String[] path,
String[] params,
String[] headers,
String[] consumes,
String[] produces)
constPool - : ConstPool instancename - : The name attribute value of @PatchMappingpath - : The path attribute values of @PatchMappingparams - : The param attribute values of @PatchMappingheaders - : The header attribute values of @PatchMappingconsumes - : The consume attribute values of @PatchMappingproduces - : The produce attribute values of @PatchMappingAnnotation instancepublic static javassist.CtClass makeClass(javassist.ClassPool pool,
String classname)
throws javassist.NotFoundException,
javassist.CannotCompileException
javassist.NotFoundExceptionjavassist.CannotCompileExceptionpublic static javassist.CtConstructor defaultConstructor(javassist.CtClass declaring)
throws javassist.CannotCompileException
javassist.CannotCompileExceptionpublic static javassist.CtConstructor makeConstructor(javassist.ClassPool pool,
javassist.CtClass declaring)
throws javassist.NotFoundException,
javassist.CannotCompileException
javassist.NotFoundExceptionjavassist.CannotCompileExceptionpublic static javassist.CtClass makeInterface(javassist.ClassPool pool,
String classname)
throws javassist.NotFoundException,
javassist.CannotCompileException
javassist.NotFoundExceptionjavassist.CannotCompileExceptionpublic static <T> void setSuperclass(javassist.ClassPool pool,
javassist.CtClass declaring,
Class<T> clazz)
throws Exception
Exceptionpublic static javassist.CtClass[] makeParams(javassist.ClassPool pool,
MvcParam<?>... params)
throws javassist.NotFoundException
javassist.NotFoundExceptionpublic static void methodAnnotations(javassist.CtMethod ctMethod,
javassist.bytecode.ConstPool constPool,
String path,
org.springframework.web.bind.annotation.RequestMethod method,
String contentType,
MvcBound bound,
MvcParam<?>[] params)
public static void methodBound(javassist.CtMethod ctMethod,
javassist.bytecode.ConstPool constPool,
MvcBound bound)
ctMethod - : The ctMethod instanceconstPool - : The constPool instancebound - : The bound instancepublic static void methodAnnotations(javassist.CtMethod ctMethod,
javassist.bytecode.ConstPool constPool,
MvcMethod method,
MvcBound bound,
MvcParam<?>... params)
public static void methodBody(javassist.CtMethod ctMethod,
MvcMethod method)
throws javassist.CannotCompileException
ctMethod - : The ctMethod instancemethod - : The method instancejavassist.CannotCompileException - if can’t conplilepublic static void methodBody(javassist.CtMethod ctMethod,
String methodName)
throws javassist.CannotCompileException
ctMethod - : The ctMethod instancemethodName - : The name of methodjavassist.CannotCompileException - if can’t conplilepublic static void methodCatch(javassist.ClassPool pool,
javassist.CtMethod ctMethod)
throws javassist.NotFoundException,
javassist.CannotCompileException
pool - : The pool instancectMethod - : The ctMethod instancejavassist.NotFoundException - if not foundjavassist.CannotCompileException - if can't compilepublic static javassist.bytecode.annotation.Annotation annotWebBound(javassist.bytecode.ConstPool constPool,
MvcBound bound)
constPool - : The constPool instancebound - : The bound instanceAnnotation instancepublic static javassist.bytecode.annotation.Annotation annotMethodMapping(javassist.bytecode.ConstPool constPool,
MvcMethod method)
constPool - : The constPool instancemethod - : The method instanceAnnotation instancepublic static javassist.bytecode.annotation.Annotation annotMethodMapping(javassist.bytecode.ConstPool constPool,
String path,
org.springframework.web.bind.annotation.RequestMethod method,
String contentType)
constPool - : The constPool instancepath - : The path attribute value of annotationmethod - : The method instancecontentType - : The contentType attribute value of annotationAnnotation instancepublic static javassist.bytecode.annotation.Annotation[][] annotParams(javassist.bytecode.ConstPool constPool,
MvcParam<?>... params)
constPool - : The constPool instanceparams - : The paramsAnnotation ArrayCopyright © 2019. All rights reserved.