类的使用
com.github.hetianyi.plugins.generator.pojo.generator.ClassGenerator
使用ClassGenerator的程序包
程序包
说明
-
com.github.hetianyi.plugins.generator.common.util中ClassGenerator的使用
修饰符和类型方法说明static Map<String,ClassGenerator> GenerateUtil.resolveTables(ProfileProperties profile) 获取表信息 -
com.github.hetianyi.plugins.generator.pojo.generator中ClassGenerator的使用
修饰符和类型方法说明ClassGenerator.applyFeatures()应用特性static ClassGeneratorClassGenerator.from(TableDefinition tabDef, ProfileProperties profile) ClassGenerator.generateStructure() -
com.github.hetianyi.plugins.generator.pojo.generator.feature中ClassGenerator的使用
修饰符和类型方法说明default voidAddFieldFeature.apply(ClassGenerator generator) voidCustomFeature.apply(ClassGenerator generator) default voidExcludeFieldFeature.apply(ClassGenerator generator) default voidFeature.apply(ClassGenerator generator) default voidSlotFeature.apply(ClassGenerator generator) default voidTypeMappingFeature.apply(ClassGenerator generator) SlotHelper.insertAfter(ClassGenerator generator, SlotType markup, Slot... slots) SlotHelper.insertAfter(ClassGenerator generator, SlotType markup, BiFunction<Slot, ClassGenerator, List<Slot>> slotFunction) SlotHelper.insertBefore(ClassGenerator generator, SlotType markup, Slot... slots) SlotHelper.insertBefore(ClassGenerator generator, SlotType markup, BiFunction<Slot, ClassGenerator, List<Slot>> slotFunction) static voidSlotHelper.replaceFieldRange(ClassGenerator generator, BiFunction<List<Slot>, ClassGenerator, List<Slot>> slotFunction) 迭代扫描slots,找到字段Field范围的slot,通常用于替换slots或者删除slotsstatic voidSlotHelper.scan(ClassGenerator generator, BiFunction<Slot, ClassGenerator, Slot> slotFunction) 迭代扫描slots,通常用于替换内容,不能在此进行slot的增删修饰符和类型方法说明SlotHelper.insertAfter(ClassGenerator generator, SlotType markup, BiFunction<Slot, ClassGenerator, List<Slot>> slotFunction) SlotHelper.insertBefore(ClassGenerator generator, SlotType markup, BiFunction<Slot, ClassGenerator, List<Slot>> slotFunction) static voidSlotHelper.replaceFieldRange(ClassGenerator generator, BiFunction<List<Slot>, ClassGenerator, List<Slot>> slotFunction) 迭代扫描slots,找到字段Field范围的slot,通常用于替换slots或者删除slotsstatic voidSlotHelper.scan(ClassGenerator generator, BiFunction<Slot, ClassGenerator, Slot> slotFunction) 迭代扫描slots,通常用于替换内容,不能在此进行slot的增删限定符构造器说明CustomFeature(SlotType type, CustomFeature.InsertLocation loc, BiFunction<Slot, ClassGenerator, List<Slot>> slotFunction) -
com.github.hetianyi.plugins.generator.pojo.generator.feature.buildin中ClassGenerator的使用
修饰符和类型方法说明voidClassCommentFeature.apply(ClassGenerator generator) voidCopyrightFeature.apply(ClassGenerator generator) voidFieldCommentFeature.apply(ClassGenerator generator) voidGetterSetterFeature.apply(ClassGenerator generator) voidIdField2StringFeature.apply(ClassGenerator generator) voidImportFeature.apply(ClassGenerator generator) voidProjectBroadcastCommentFeature.apply(ClassGenerator generator)