| 程序包 | 说明 |
|---|---|
| com.github.ofofs.jca.model | |
| com.github.ofofs.jca.processor |
| 限定符和类型 | 方法和说明 |
|---|---|
JcaMethod |
JcaMethod.insert(JcaObject express)
在方法第一行插入一个表达式
|
JcaMethod |
JcaMethod.insert(JcaVariable jcaVariable)
在方法第一行插入一个变量
|
JcaMethod |
JcaMethod.insertBlock(JcaObject statement)
在方法第一行插入一个代码块
|
JcaMethod |
JcaMethod.setModifier(int modifier)
设置方法的修饰符
|
JcaMethod |
JcaMethod.visitReturn()
处理方法的返回值,遇到方法返回处,会回调onReturn。
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected Set<JcaMethod> |
BaseProcessor.getJcaMethods(Class<? extends Annotation> annotationClass)
获取带有指定注解的方法
|
Copyright © 2018. All rights reserved.