类 DefaultCommentGenerator
- java.lang.Object
-
- pro.leaco.mybatis.generator.plugins.comment.DefaultCommentGenerator
-
- 所有已实现的接口:
org.mybatis.generator.api.CommentGenerator
- 直接已知子类:
CommentGenerator
public class DefaultCommentGenerator extends Object implements org.mybatis.generator.api.CommentGenerator
- 作者:
- Jeff Butler
-
-
字段概要
字段 修饰符和类型 字段 说明 protected booleanaddRemarkCommentsIf suppressAllComments is true, this option is ignored.protected SimpleDateFormatdateFormatprotected Propertiespropertiesprotected booleansuppressAllCommentsprotected booleansuppressDate
-
构造器概要
构造器 构造器 说明 DefaultCommentGenerator()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddClassAnnotation(org.mybatis.generator.api.dom.java.InnerClass innerClass, org.mybatis.generator.api.IntrospectedTable introspectedTable, Set<org.mybatis.generator.api.dom.java.FullyQualifiedJavaType> imports)voidaddClassComment(org.mybatis.generator.api.dom.java.InnerClass innerClass, org.mybatis.generator.api.IntrospectedTable introspectedTable)voidaddClassComment(org.mybatis.generator.api.dom.java.InnerClass innerClass, org.mybatis.generator.api.IntrospectedTable introspectedTable, boolean markAsDoNotDelete)voidaddComment(org.mybatis.generator.api.dom.xml.XmlElement xmlElement)Adds a suitable comment to warn users that the element was generated, and when it was generated.voidaddConfigurationProperties(Properties properties)voidaddEnumComment(org.mybatis.generator.api.dom.java.InnerEnum innerEnum, org.mybatis.generator.api.IntrospectedTable introspectedTable)voidaddFieldAnnotation(org.mybatis.generator.api.dom.java.Field field, org.mybatis.generator.api.IntrospectedTable introspectedTable, Set<org.mybatis.generator.api.dom.java.FullyQualifiedJavaType> imports)voidaddFieldAnnotation(org.mybatis.generator.api.dom.java.Field field, org.mybatis.generator.api.IntrospectedTable introspectedTable, org.mybatis.generator.api.IntrospectedColumn introspectedColumn, Set<org.mybatis.generator.api.dom.java.FullyQualifiedJavaType> imports)voidaddFieldComment(org.mybatis.generator.api.dom.java.Field field, org.mybatis.generator.api.IntrospectedTable introspectedTable)voidaddFieldComment(org.mybatis.generator.api.dom.java.Field field, org.mybatis.generator.api.IntrospectedTable introspectedTable, org.mybatis.generator.api.IntrospectedColumn introspectedColumn)voidaddGeneralMethodAnnotation(org.mybatis.generator.api.dom.java.Method method, org.mybatis.generator.api.IntrospectedTable introspectedTable, Set<org.mybatis.generator.api.dom.java.FullyQualifiedJavaType> imports)voidaddGeneralMethodAnnotation(org.mybatis.generator.api.dom.java.Method method, org.mybatis.generator.api.IntrospectedTable introspectedTable, org.mybatis.generator.api.IntrospectedColumn introspectedColumn, Set<org.mybatis.generator.api.dom.java.FullyQualifiedJavaType> imports)voidaddGeneralMethodComment(org.mybatis.generator.api.dom.java.Method method, org.mybatis.generator.api.IntrospectedTable introspectedTable)voidaddGetterComment(org.mybatis.generator.api.dom.java.Method method, org.mybatis.generator.api.IntrospectedTable introspectedTable, org.mybatis.generator.api.IntrospectedColumn introspectedColumn)protected voidaddJavadocTag(org.mybatis.generator.api.dom.java.JavaElement javaElement, boolean markAsDoNotDelete)This method adds the custom javadoc tag for.voidaddJavaFileComment(org.mybatis.generator.api.dom.java.CompilationUnit compilationUnit)voidaddModelClassComment(org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass, org.mybatis.generator.api.IntrospectedTable introspectedTable)voidaddRootComment(org.mybatis.generator.api.dom.xml.XmlElement rootElement)voidaddSetterComment(org.mybatis.generator.api.dom.java.Method method, org.mybatis.generator.api.IntrospectedTable introspectedTable, org.mybatis.generator.api.IntrospectedColumn introspectedColumn)protected StringgetDateString()Returns a formated date string to include in the Javadoc tag and XML comments.
-
-
-
字段详细资料
-
properties
protected Properties properties
-
suppressDate
protected boolean suppressDate
-
suppressAllComments
protected boolean suppressAllComments
-
addRemarkComments
protected boolean addRemarkComments
If suppressAllComments is true, this option is ignored.
-
dateFormat
protected SimpleDateFormat dateFormat
-
-
方法详细资料
-
addJavaFileComment
public void addJavaFileComment(org.mybatis.generator.api.dom.java.CompilationUnit compilationUnit)
- 指定者:
addJavaFileComment在接口中org.mybatis.generator.api.CommentGenerator
-
addComment
public void addComment(org.mybatis.generator.api.dom.xml.XmlElement xmlElement)
Adds a suitable comment to warn users that the element was generated, and when it was generated.- 指定者:
addComment在接口中org.mybatis.generator.api.CommentGenerator- 参数:
xmlElement- the xml element
-
addRootComment
public void addRootComment(org.mybatis.generator.api.dom.xml.XmlElement rootElement)
- 指定者:
addRootComment在接口中org.mybatis.generator.api.CommentGenerator
-
addConfigurationProperties
public void addConfigurationProperties(Properties properties)
- 指定者:
addConfigurationProperties在接口中org.mybatis.generator.api.CommentGenerator
-
addJavadocTag
protected void addJavadocTag(org.mybatis.generator.api.dom.java.JavaElement javaElement, boolean markAsDoNotDelete)This method adds the custom javadoc tag for. You may do nothing if you do not wish to include the Javadoc tag - however, if you do not include the Javadoc tag then the Java merge capability of the eclipse plugin will break.- 参数:
javaElement- the java elementmarkAsDoNotDelete- the mark as do not delete
-
getDateString
protected String getDateString()
Returns a formated date string to include in the Javadoc tag and XML comments. You may return null if you do not want the date in these documentation elements.- 返回:
- a string representing the current timestamp, or null
-
addClassComment
public void addClassComment(org.mybatis.generator.api.dom.java.InnerClass innerClass, org.mybatis.generator.api.IntrospectedTable introspectedTable)- 指定者:
addClassComment在接口中org.mybatis.generator.api.CommentGenerator
-
addClassComment
public void addClassComment(org.mybatis.generator.api.dom.java.InnerClass innerClass, org.mybatis.generator.api.IntrospectedTable introspectedTable, boolean markAsDoNotDelete)- 指定者:
addClassComment在接口中org.mybatis.generator.api.CommentGenerator
-
addModelClassComment
public void addModelClassComment(org.mybatis.generator.api.dom.java.TopLevelClass topLevelClass, org.mybatis.generator.api.IntrospectedTable introspectedTable)- 指定者:
addModelClassComment在接口中org.mybatis.generator.api.CommentGenerator
-
addEnumComment
public void addEnumComment(org.mybatis.generator.api.dom.java.InnerEnum innerEnum, org.mybatis.generator.api.IntrospectedTable introspectedTable)- 指定者:
addEnumComment在接口中org.mybatis.generator.api.CommentGenerator
-
addFieldComment
public void addFieldComment(org.mybatis.generator.api.dom.java.Field field, org.mybatis.generator.api.IntrospectedTable introspectedTable, org.mybatis.generator.api.IntrospectedColumn introspectedColumn)- 指定者:
addFieldComment在接口中org.mybatis.generator.api.CommentGenerator
-
addFieldComment
public void addFieldComment(org.mybatis.generator.api.dom.java.Field field, org.mybatis.generator.api.IntrospectedTable introspectedTable)- 指定者:
addFieldComment在接口中org.mybatis.generator.api.CommentGenerator
-
addGeneralMethodComment
public void addGeneralMethodComment(org.mybatis.generator.api.dom.java.Method method, org.mybatis.generator.api.IntrospectedTable introspectedTable)- 指定者:
addGeneralMethodComment在接口中org.mybatis.generator.api.CommentGenerator
-
addGetterComment
public void addGetterComment(org.mybatis.generator.api.dom.java.Method method, org.mybatis.generator.api.IntrospectedTable introspectedTable, org.mybatis.generator.api.IntrospectedColumn introspectedColumn)- 指定者:
addGetterComment在接口中org.mybatis.generator.api.CommentGenerator
-
addSetterComment
public void addSetterComment(org.mybatis.generator.api.dom.java.Method method, org.mybatis.generator.api.IntrospectedTable introspectedTable, org.mybatis.generator.api.IntrospectedColumn introspectedColumn)- 指定者:
addSetterComment在接口中org.mybatis.generator.api.CommentGenerator
-
addGeneralMethodAnnotation
public void addGeneralMethodAnnotation(org.mybatis.generator.api.dom.java.Method method, org.mybatis.generator.api.IntrospectedTable introspectedTable, Set<org.mybatis.generator.api.dom.java.FullyQualifiedJavaType> imports)- 指定者:
addGeneralMethodAnnotation在接口中org.mybatis.generator.api.CommentGenerator
-
addGeneralMethodAnnotation
public void addGeneralMethodAnnotation(org.mybatis.generator.api.dom.java.Method method, org.mybatis.generator.api.IntrospectedTable introspectedTable, org.mybatis.generator.api.IntrospectedColumn introspectedColumn, Set<org.mybatis.generator.api.dom.java.FullyQualifiedJavaType> imports)- 指定者:
addGeneralMethodAnnotation在接口中org.mybatis.generator.api.CommentGenerator
-
addFieldAnnotation
public void addFieldAnnotation(org.mybatis.generator.api.dom.java.Field field, org.mybatis.generator.api.IntrospectedTable introspectedTable, Set<org.mybatis.generator.api.dom.java.FullyQualifiedJavaType> imports)- 指定者:
addFieldAnnotation在接口中org.mybatis.generator.api.CommentGenerator
-
addFieldAnnotation
public void addFieldAnnotation(org.mybatis.generator.api.dom.java.Field field, org.mybatis.generator.api.IntrospectedTable introspectedTable, org.mybatis.generator.api.IntrospectedColumn introspectedColumn, Set<org.mybatis.generator.api.dom.java.FullyQualifiedJavaType> imports)- 指定者:
addFieldAnnotation在接口中org.mybatis.generator.api.CommentGenerator
-
addClassAnnotation
public void addClassAnnotation(org.mybatis.generator.api.dom.java.InnerClass innerClass, org.mybatis.generator.api.IntrospectedTable introspectedTable, Set<org.mybatis.generator.api.dom.java.FullyQualifiedJavaType> imports)- 指定者:
addClassAnnotation在接口中org.mybatis.generator.api.CommentGenerator
-
-