| 限定符和类型 | 方法和说明 |
|---|---|
static ClassGenerator |
GenerateUtil.getClassGenerator(TableDefinition tabDef) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Map<String,ClassGenerator> |
GenerateUtil.resolveTables(ProfileProperties profile)
获取表信息
|
| 限定符和类型 | 方法和说明 |
|---|---|
ClassGenerator |
ClassGenerator.applyFeatures()
应用特性
|
static ClassGenerator |
ClassGenerator.from(TableDefinition tabDef,
ProfileProperties profile) |
ClassGenerator |
ClassGenerator.generateStructure() |
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
TypeMappingFeature.apply(ClassGenerator generator) |
default void |
SlotFeature.apply(ClassGenerator generator) |
default void |
Feature.apply(ClassGenerator generator) |
default void |
ExcludeFieldFeature.apply(ClassGenerator generator) |
void |
CustomFeature.apply(ClassGenerator generator) |
default void |
AddFieldFeature.apply(ClassGenerator generator) |
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 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 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 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的增删
|
| 构造器和说明 |
|---|
CustomFeature(SlotType type,
CustomFeature.InsertLocation loc,
BiFunction<Slot,ClassGenerator,List<Slot>> slotFunction) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ProjectBroadcastCommentFeature.apply(ClassGenerator generator) |
void |
ImportFeature.apply(ClassGenerator generator) |
void |
IdField2StringFeature.apply(ClassGenerator generator) |
void |
GetterSetterFeature.apply(ClassGenerator generator) |
void |
FieldCommentFeature.apply(ClassGenerator generator) |
void |
CopyrightFeature.apply(ClassGenerator generator) |
void |
ClassCommentFeature.apply(ClassGenerator generator) |
Copyright © 2023. All rights reserved.