public final class MapperInterfaceTemplate extends AbstractTemplate
| 限定符和类型 | 字段和说明 |
|---|---|
private static Pattern |
LINE_PATTERN |
private static org.slf4j.Logger |
logger |
DEFAULT_MAPPER_STATEMENTS| 构造器和说明 |
|---|
MapperInterfaceTemplate(org.apache.velocity.app.VelocityEngine velocityEngine,
TypeMetadata typeMetadata) |
| 限定符和类型 | 方法和说明 |
|---|---|
private String |
formatLine(String sourceCode) |
private String |
getCustomizedMapperInterfaceMethods(Path mapperInterfaceFile) |
private String |
getFormatMethodSign(japa.parser.ast.body.MethodDeclaration methodDeclaration) |
void |
render(String templatePath)
模版内容生成
|
createIfAbsent, getTypeMetadata, getVelocityEngineprivate static final org.slf4j.Logger logger
private static final Pattern LINE_PATTERN
public MapperInterfaceTemplate(org.apache.velocity.app.VelocityEngine velocityEngine,
TypeMetadata typeMetadata)
public void render(String templatePath)
AbstractTemplaterender 在类中 AbstractTemplatetemplatePath - 模版路径private String getCustomizedMapperInterfaceMethods(Path mapperInterfaceFile)
private String getFormatMethodSign(japa.parser.ast.body.MethodDeclaration methodDeclaration)
Copyright © 2022. All rights reserved.