public class ReactiveHandlerCtClassBuilder extends CtClassBuilder
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
METHOD_FLUX_NAME |
static String |
METHOD_MONO_NAME |
annotApi, classFile, declaring, fieldTemplate, GETTER_STR, pool, SETTER_STR| 构造器和说明 |
|---|
ReactiveHandlerCtClassBuilder(javassist.ClassPool pool,
String classname) |
ReactiveHandlerCtClassBuilder(String classname) |
build, makeField, makeGetter, makeSetter, toClass, toInstancepublic ReactiveHandlerCtClassBuilder(String classname) throws javassist.CannotCompileException, javassist.NotFoundException
javassist.CannotCompileExceptionjavassist.NotFoundExceptionpublic ReactiveHandlerCtClassBuilder(javassist.ClassPool pool,
String classname)
throws javassist.CannotCompileException,
javassist.NotFoundException
javassist.CannotCompileExceptionjavassist.NotFoundExceptionpublic <T> ReactiveHandlerCtClassBuilder autowired(Class<T> type, String name, boolean required) throws javassist.CannotCompileException, javassist.NotFoundException
CtClassBuilderautowired 在类中 CtClassBuilderT - : 参数泛型type - : The type attribute value of @Autowiredname - : The name attribute value of @Autowiredrequired - : Declares whether the annotated dependency is required.CtClassBuilder instancejavassist.CannotCompileException - if can't compilejavassist.NotFoundException - if not foundpublic ReactiveHandlerCtClassBuilder autowiredHandler(boolean required, String qualifier) throws javassist.CannotCompileException, javassist.NotFoundException
CtClassBuilderautowiredHandler 在类中 CtClassBuilderrequired - : Declares whether the annotated dependency is required.qualifier - : The qualifier attribute value of @AutowiredCtClassBuilder instancejavassist.CannotCompileException - if can't compilejavassist.NotFoundException - if not foundpublic <T> CtClassBuilder autowired(Class<T> type, String name, boolean required, String qualifier) throws javassist.CannotCompileException, javassist.NotFoundException
CtClassBuilderautowired 在类中 CtClassBuilderT - : 参数泛型type - : The type attribute value of @Autowiredname - : The name attribute value of @Autowiredrequired - : Declares whether the annotated dependency is required.qualifier - : The qualifier attribute value of @AutowiredCtClassBuilder instancejavassist.CannotCompileException - if can't compilejavassist.NotFoundException - if not foundpublic ReactiveHandlerCtClassBuilder bind(MvcBound bound)
CtClassBuilder@WebBound注解实现,数据的绑定bind 在类中 CtClassBuilderbound - : The MvcBound instanceCtClassBuilder instancepublic ReactiveHandlerCtClassBuilder bind(String uid, String json)
CtClassBuilder@WebBound注解实现,数据的绑定bind 在类中 CtClassBuilderuid - : The value of uidjson - : The value of jsonCtClassBuilder instancepublic ReactiveHandlerCtClassBuilder makeField(String src) throws javassist.CannotCompileException
CtClassBuilder"public String name;" "public int k = 3;"
Note that the source code ends with ';'
(semicolon).
makeField 在类中 CtClassBuildersrc - the source text.CtClassBuilder instancejavassist.CannotCompileException - if can't compilepublic ReactiveHandlerCtClassBuilder makeMethod(String src) throws javassist.CannotCompileException
CtClassBuilder"public Object id(Object obj) { return obj; }"makeMethod 在类中 CtClassBuildersrc - the source text.CtClassBuilder instancejavassist.CannotCompileException - if can't compilepublic <T> ReactiveHandlerCtClassBuilder newField(Class<T> fieldClass, String fieldName, String fieldValue) throws javassist.CannotCompileException, javassist.NotFoundException
newField 在类中 CtClassBuilderjavassist.CannotCompileExceptionjavassist.NotFoundExceptionpublic ReactiveHandlerCtClassBuilder removeField(String fieldName) throws javassist.NotFoundException
removeField 在类中 CtClassBuilderjavassist.NotFoundExceptionpublic ReactiveHandlerCtClassBuilder monoMethod(MvcBound bound) throws javassist.CannotCompileException, javassist.NotFoundException
bound - :方法绑定数据信息ReactiveHandlerCtClassBuilder instancejavassist.CannotCompileException - if can't compilejavassist.NotFoundException - if not foundpublic ReactiveHandlerCtClassBuilder fluxMethod(MvcBound bound) throws javassist.CannotCompileException, javassist.NotFoundException
bound - :方法绑定数据信息ReactiveHandlerCtClassBuilder instancejavassist.CannotCompileException - if can't compilejavassist.NotFoundException - if not foundpublic <T> ReactiveHandlerCtClassBuilder newMethod(Class<T> rtClass, String methodName, MvcBound bound) throws javassist.CannotCompileException, javassist.NotFoundException
T - : 参数泛型rtClass - :返回对象类型methodName - :方法名称bound - :方法绑定数据信息ReactiveHandlerCtClassBuilder instancejavassist.CannotCompileException - if can't compilejavassist.NotFoundException - if not foundpublic <T> ReactiveHandlerCtClassBuilder removeMono() throws javassist.NotFoundException
javassist.NotFoundExceptionpublic <T> ReactiveHandlerCtClassBuilder removeFlux() throws javassist.NotFoundException
javassist.NotFoundExceptionpublic <T> ReactiveHandlerCtClassBuilder removeMethod(String methodName) throws javassist.NotFoundException
javassist.NotFoundExceptionCopyright © 2019. All rights reserved.