| 程序包 | 说明 |
|---|---|
| com.github.hetianyi.plugins.generator.common | |
| com.github.hetianyi.plugins.generator.pojo.generator.feature | |
| com.github.hetianyi.plugins.generator.pojo.generator.slot |
| 限定符和类型 | 方法和说明 |
|---|---|
Slot |
Slot.addAttribute(String key,
Object value) |
Slot |
Slot.addTag(String tag) |
| 限定符和类型 | 方法和说明 |
|---|---|
default Slot |
SlotFeature.resolve(Slot slot) |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<Slot> |
SlotHelper.insertAfter(ClassGenerator generator,
SlotType markup,
BiFunction<Slot,ClassGenerator,List<Slot>> slotFunction) |
static List<Slot> |
SlotHelper.insertAfter(ClassGenerator generator,
SlotType markup,
Slot... slots) |
static List<Slot> |
SlotHelper.insertBefore(ClassGenerator generator,
SlotType markup,
BiFunction<Slot,ClassGenerator,List<Slot>> slotFunction) |
static List<Slot> |
SlotHelper.insertBefore(ClassGenerator generator,
SlotType markup,
Slot... slots) |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<Slot> |
SlotHelper.insertAfter(ClassGenerator generator,
SlotType markup,
Slot... slots) |
static List<Slot> |
SlotHelper.insertBefore(ClassGenerator generator,
SlotType markup,
Slot... slots) |
default Slot |
SlotFeature.resolve(Slot slot) |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<Slot> |
SlotHelper.insertAfter(ClassGenerator generator,
SlotType markup,
BiFunction<Slot,ClassGenerator,List<Slot>> slotFunction) |
static List<Slot> |
SlotHelper.insertAfter(ClassGenerator generator,
SlotType markup,
BiFunction<Slot,ClassGenerator,List<Slot>> slotFunction) |
static List<Slot> |
SlotHelper.insertBefore(ClassGenerator generator,
SlotType markup,
BiFunction<Slot,ClassGenerator,List<Slot>> slotFunction) |
static List<Slot> |
SlotHelper.insertBefore(ClassGenerator generator,
SlotType markup,
BiFunction<Slot,ClassGenerator,List<Slot>> slotFunction) |
static void |
SlotHelper.replaceFieldRange(ClassGenerator generator,
BiFunction<List<Slot>,ClassGenerator,List<Slot>> slotFunction)
迭代扫描slots,找到字段Field范围的slot,通常用于替换slots或者删除slots
|
static void |
SlotHelper.replaceFieldRange(ClassGenerator generator,
BiFunction<List<Slot>,ClassGenerator,List<Slot>> slotFunction)
迭代扫描slots,找到字段Field范围的slot,通常用于替换slots或者删除slots
|
static void |
SlotHelper.scan(ClassGenerator generator,
BiFunction<Slot,ClassGenerator,Slot> slotFunction)
迭代扫描slots,通常用于替换内容,不能在此进行slot的增删
|
static void |
SlotHelper.scan(ClassGenerator generator,
BiFunction<Slot,ClassGenerator,Slot> slotFunction)
迭代扫描slots,通常用于替换内容,不能在此进行slot的增删
|
| 构造器和说明 |
|---|
CustomFeature(SlotType type,
CustomFeature.InsertLocation loc,
BiFunction<Slot,ClassGenerator,List<Slot>> slotFunction) |
CustomFeature(SlotType type,
CustomFeature.InsertLocation loc,
BiFunction<Slot,ClassGenerator,List<Slot>> slotFunction) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
CodeSlot |
class |
EmptyLineSlot |
class |
IndentSlot |
class |
MarkupSlot |
| 限定符和类型 | 方法和说明 |
|---|---|
Slot |
MarkupSlot.addAttribute(String key,
Object value) |
Slot |
CodeSlot.addAttribute(String key,
Object value) |
Slot |
MarkupSlot.addTag(String tag) |
Slot |
CodeSlot.addTag(String tag) |
Copyright © 2023. All rights reserved.