本文整理汇总了Java中org.mybatis.generator.api.dom.java.JavaElement类的典型用法代码示例。如果您正苦于以下问题:Java JavaElement类的具体用法?Java JavaElement怎么用?Java JavaElement使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
JavaElement类属于org.mybatis.generator.api.dom.java包,在下文中一共展示了JavaElement类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addJavadocTag
import org.mybatis.generator.api.dom.java.JavaElement; //导入依赖的package包/类
/**
* 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.
*
* @param javaElement
* the java element
*/
protected void addJavadocTag(JavaElement javaElement, boolean markAsDoNotDelete) {
javaElement.addJavaDocLine(" *");
StringBuilder sb = new StringBuilder();
sb.append(" * ");
sb.append(MergeConstants.NEW_ELEMENT_TAG);
if (markAsDoNotDelete) {
sb.append(" do_not_delete_during_merge");
}
String s = getDateString();
if (s != null) {
sb.append(' ');
sb.append(s);
}
javaElement.addJavaDocLine(sb.toString());
}
示例2: addJavadocTag
import org.mybatis.generator.api.dom.java.JavaElement; //导入依赖的package包/类
/**
* 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.
*
* @param javaElement
* the java element
* @param markAsDoNotDelete
* the mark as do not delete
*/
protected void addJavadocTag(JavaElement javaElement,
boolean markAsDoNotDelete) {
javaElement.addJavaDocLine(" *"); //$NON-NLS-1$
StringBuilder sb = new StringBuilder();
sb.append(" * "); //$NON-NLS-1$
sb.append(MergeConstants.NEW_ELEMENT_TAG);
if (markAsDoNotDelete) {
sb.append(" do_not_delete_during_merge"); //$NON-NLS-1$
}
String s = getDateString();
if (s != null) {
sb.append(' ');
sb.append(s);
}
javaElement.addJavaDocLine(sb.toString());
}
示例3: addJavadocTag
import org.mybatis.generator.api.dom.java.JavaElement; //导入依赖的package包/类
/**
* 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.
*
* @param javaElement
* the java element
* @param markAsDoNotDelete
* the mark as do not delete
*/
protected void addJavadocTag(JavaElement javaElement,
boolean markAsDoNotDelete) {
javaElement.addJavaDocLine(" *");
StringBuilder sb = new StringBuilder();
sb.append(" * ");
sb.append(MergeConstants.NEW_ELEMENT_TAG);
if (markAsDoNotDelete) {
sb.append(" do_not_delete_during_merge");
}
String s = getDateString();
if (s != null) {
sb.append(' ');
sb.append(s);
}
javaElement.addJavaDocLine(sb.toString());
}
示例4: addJavadocTag
import org.mybatis.generator.api.dom.java.JavaElement; //导入依赖的package包/类
/**
* 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.
*
* @param javaElement
* the java element
*/
protected void addJavadocTag(JavaElement javaElement,
boolean markAsDoNotDelete) {
javaElement.addJavaDocLine(" *"); //$NON-NLS-1$
StringBuilder sb = new StringBuilder();
sb.append(" * "); //$NON-NLS-1$
sb.append(MergeConstants.NEW_ELEMENT_TAG);
if (markAsDoNotDelete) {
sb.append(" do_not_delete_during_merge"); //$NON-NLS-1$
}
String s = getDateString();
if (s != null) {
sb.append(' ');
sb.append(s);
}
javaElement.addJavaDocLine(sb.toString());
}
示例5: addJavadocTag
import org.mybatis.generator.api.dom.java.JavaElement; //导入依赖的package包/类
/**
* 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.
*
* @param javaElement
* the java element
*/
protected void addJavadocTag(JavaElement javaElement, boolean markAsDoNotDelete) {
javaElement.addJavaDocLine(" *"); //$NON-NLS-1$
StringBuilder sb = new StringBuilder();
sb.append(" * "); //$NON-NLS-1$
sb.append(MergeConstants.NEW_ELEMENT_TAG);
if (markAsDoNotDelete) {
sb.append(" do_not_delete_during_merge"); //$NON-NLS-1$
}
String s = getDateString();
if (s != null) {
sb.append(' ');
sb.append(s);
}
javaElement.addJavaDocLine(sb.toString());
}
示例6: addAuthorTag
import org.mybatis.generator.api.dom.java.JavaElement; //导入依赖的package包/类
public static void addAuthorTag(JavaElement element, boolean markAsDoNotDelete) {
element.addJavaDocLine(" * ");
StringBuilder sb = new StringBuilder();
sb.append(" * ");
element.addJavaDocLine(" * @author mbg");
sb.append(MergeConstants.NEW_ELEMENT_TAG);
if (markAsDoNotDelete) {
sb.append(" do_not_delete_during_merge");
}
element.addJavaDocLine(sb.toString());
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
String s = format.format(new Date());
element.addJavaDocLine(" * @since " + s);
}
示例7: addMergeTag
import org.mybatis.generator.api.dom.java.JavaElement; //导入依赖的package包/类
public static void addMergeTag(JavaElement element, boolean markAsDoNotDelete) {
element.addJavaDocLine(" *");
StringBuilder sb = new StringBuilder();
sb.append(" * ");
sb.append(MergeConstants.NEW_ELEMENT_TAG);
if (markAsDoNotDelete) {
sb.append(" do_not_delete_during_merge");
}
element.addJavaDocLine(sb.toString());
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
String s = format.format(new Date());
element.addJavaDocLine(" * @since " + s);
}
示例8: addClassComment
import org.mybatis.generator.api.dom.java.JavaElement; //导入依赖的package包/类
public static void addClassComment(JavaElement element,String innerString){
element.addJavaDocLine("/**");
if(innerString != null){
element.addJavaDocLine(innerString);
}
element.addJavaDocLine(" * @author " + System.getProperty("user.name","thinking9"));
element.addJavaDocLine(" * @since " + new Date(System.currentTimeMillis()));
//addJavadocTag(innerClass, markAsDoNotDelete);
element.addJavaDocLine(" */"); //$NON-NLS-1$
}
示例9: addComment
import org.mybatis.generator.api.dom.java.JavaElement; //导入依赖的package包/类
protected void addComment(JavaElement field, String comment) {
StringBuilder sb = new StringBuilder();
field.addJavaDocLine("/**");
sb.append(" * ");
comment = comment.replaceAll(OutputUtilities.lineSeparator, "<br>"+OutputUtilities.lineSeparator+"\t * ");
sb.append(comment);
field.addJavaDocLine(sb.toString());
field.addJavaDocLine(" */");
}
示例10: addJavadocTag
import org.mybatis.generator.api.dom.java.JavaElement; //导入依赖的package包/类
protected void addJavadocTag(JavaElement javaElement, boolean markAsDoNotDelete) {
}