| 程序包 | 说明 |
|---|---|
| com.github.hetianyi.plugins.generator.common | |
| com.github.hetianyi.plugins.generator.pojo.generator.feature | |
| com.github.hetianyi.plugins.generator.pojo.generator.slot |
| 限定符和类型 | 方法和说明 |
|---|---|
SlotType |
Slot.getType() |
static SlotType |
SlotType.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static SlotType[] |
SlotType.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
| 构造器和说明 |
|---|
CustomFeature(SlotType type,
CustomFeature.InsertLocation loc,
BiFunction<Slot,ClassGenerator,List<Slot>> slotFunction) |
| 限定符和类型 | 方法和说明 |
|---|---|
SlotType |
MarkupSlot.getType() |
SlotType |
IndentSlot.getType() |
SlotType |
EmptyLineSlot.getType() |
SlotType |
CodeSlot.getType() |
| 限定符和类型 | 方法和说明 |
|---|---|
static MarkupSlot |
MarkupSlot.of(SlotType type) |
Copyright © 2022. All rights reserved.