public class BDTCommentGenerator extends DefaultCommentGenerator
| 构造器和说明 |
|---|
BDTCommentGenerator() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addClassComment(InnerClass innerClass,
IntrospectedTable introspectedTable)
Adds the inner class comment.
|
void |
addClassComment(InnerClass innerClass,
IntrospectedTable introspectedTable,
boolean markAsDoNotDelete)
Adds the inner class comment.
|
void |
addComment(XmlElement xmlElement)
Adds a suitable comment to warn users that the element was generated, and when it was generated.
|
void |
addFieldComment(Field field,
IntrospectedTable introspectedTable,
IntrospectedColumn introspectedColumn)
This method should add a Javadoc comment to the specified field.
|
void |
addGeneralMethodComment(Method method,
IntrospectedTable introspectedTable)
Adds the general method comment.
|
void |
addGetterComment(Method method,
IntrospectedTable introspectedTable,
IntrospectedColumn introspectedColumn)
Adds the getter comment.
|
void |
addSetterComment(Method method,
IntrospectedTable introspectedTable,
IntrospectedColumn introspectedColumn)
Adds the setter comment.
|
addConfigurationProperties, addEnumComment, addFieldComment, addJavadocTag, addJavaFileComment, addModelClassComment, addRootComment, getDateStringpublic void addGeneralMethodComment(Method method, IntrospectedTable introspectedTable)
CommentGeneratoraddGeneralMethodComment 在接口中 CommentGeneratoraddGeneralMethodComment 在类中 DefaultCommentGeneratormethod - the methodintrospectedTable - the introspected tablepublic void addClassComment(InnerClass innerClass, IntrospectedTable introspectedTable)
CommentGeneratoraddClassComment 在接口中 CommentGeneratoraddClassComment 在类中 DefaultCommentGeneratorinnerClass - the inner classintrospectedTable - the introspected tablepublic void addClassComment(InnerClass innerClass, IntrospectedTable introspectedTable, boolean markAsDoNotDelete)
CommentGeneratoraddClassComment 在接口中 CommentGeneratoraddClassComment 在类中 DefaultCommentGeneratorinnerClass - the inner classintrospectedTable - the introspected tablemarkAsDoNotDelete - the mark as do not deletepublic void addFieldComment(Field field, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn)
CommentGeneratorImportant: This method should add a the nonstandard JavaDoc tag "@mbg.generated" to the comment. Without this tag, the Eclipse based Java merge feature will fail.
addFieldComment 在接口中 CommentGeneratoraddFieldComment 在类中 DefaultCommentGeneratorfield - the fieldintrospectedTable - the introspected tableintrospectedColumn - the introspected columnpublic void addGetterComment(Method method, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn)
CommentGeneratoraddGetterComment 在接口中 CommentGeneratoraddGetterComment 在类中 DefaultCommentGeneratormethod - the methodintrospectedTable - the introspected tableintrospectedColumn - the introspected columnpublic void addSetterComment(Method method, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn)
CommentGeneratoraddSetterComment 在接口中 CommentGeneratoraddSetterComment 在类中 DefaultCommentGeneratormethod - the methodintrospectedTable - the introspected tableintrospectedColumn - the introspected columnpublic void addComment(XmlElement xmlElement)
DefaultCommentGeneratoraddComment 在接口中 CommentGeneratoraddComment 在类中 DefaultCommentGeneratorxmlElement - the xml elementCopyright © 2018. All Rights Reserved.