public class CoapExpand extends Object implements CompileExpand
| 构造器和说明 |
|---|
CoapExpand() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
check(Compile compile) |
Set<CompileClass> |
execute(javassist.ClassPool pool,
Compile compile,
Set<CompileClass> components)
处理
|
private String |
getName(int index,
String[] key) |
private void |
getResourceString(StringBuilder body,
int index,
String[] key,
javassist.CtClass decorator,
Set<String> names) |
private String |
getResourceTree(Map<String,List<CoapMethodEntry>> map,
javassist.ClassPool pool,
Set<CompileClass> components,
Compile compile)
获取Coap-Resource注册树
|
private javassist.CtClass |
makeCoapHandlerDecorator(List<CoapMethodEntry> methods,
javassist.ClassPool pool,
Set<CompileClass> components,
Compile compile)
创建Coap-Resource包装器
|
private javassist.CtClass |
makeCoapInvoker(CoapMethodEntry method,
javassist.ClassPool pool,
Compile compile)
创建Coap执行器
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitorderpublic boolean check(Compile compile)
check 在接口中 CompileExpandprivate void getResourceString(StringBuilder body, int index, String[] key, javassist.CtClass decorator, Set<String> names)
private String getResourceTree(Map<String,List<CoapMethodEntry>> map, javassist.ClassPool pool, Set<CompileClass> components, Compile compile) throws javassist.CannotCompileException, javassist.NotFoundException, IOException, ClassNotFoundException
map - pool - components - compile - javassist.CannotCompileExceptionjavassist.NotFoundExceptionIOExceptionClassNotFoundExceptionpublic Set<CompileClass> execute(javassist.ClassPool pool, Compile compile, Set<CompileClass> components) throws Exception
CompileExpandexecute 在接口中 CompileExpandcompile - 编译信息components - 项目组件Exceptionprivate javassist.CtClass makeCoapHandlerDecorator(List<CoapMethodEntry> methods, javassist.ClassPool pool, Set<CompileClass> components, Compile compile) throws javassist.NotFoundException, javassist.CannotCompileException, ClassNotFoundException, IOException
methods - 目标方法实体列表pool - components - compile - javassist.NotFoundExceptionjavassist.CannotCompileExceptionClassNotFoundExceptionIOExceptionprivate javassist.CtClass makeCoapInvoker(CoapMethodEntry method, javassist.ClassPool pool, Compile compile) throws javassist.NotFoundException, javassist.CannotCompileException, IOException
method - 目标方法实体pool - compile - javassist.NotFoundExceptionjavassist.CannotCompileExceptionIOExceptionCopyright © 2021. All rights reserved.