当前位置: 首页>>代码示例>>Java>>正文


Java JavaElement类代码示例

本文整理汇总了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());
}
 
开发者ID:xiachuanshou,项目名称:shop-manager,代码行数:25,代码来源:MyCommentGenerator.java

示例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());
}
 
开发者ID:bandaotixi,项目名称:generator_mybatis,代码行数:26,代码来源:DefaultCommentGenerator.java

示例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());
}
 
开发者ID:xiachengwei5,项目名称:org.mybatis.generator.core-1.3.5,代码行数:26,代码来源:DefaultCommentGenerator.java

示例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());
}
 
开发者ID:funny5258,项目名称:autocode,代码行数:26,代码来源:DefaultCommentGenerator.java

示例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());
}
 
开发者ID:fnyexx,项目名称:mybator,代码行数:25,代码来源:DefaultCommentGenerator.java

示例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);
}
 
开发者ID:drtrang,项目名称:mybatis-generator-extension,代码行数:15,代码来源:ElementHelper.java

示例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);
}
 
开发者ID:drtrang,项目名称:mybatis-generator-extension,代码行数:14,代码来源:ElementHelper.java

示例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$
    
}
 
开发者ID:thinking-github,项目名称:nbone,代码行数:14,代码来源:CommentUtils.java

示例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(" */");
}
 
开发者ID:fnyexx,项目名称:mybator,代码行数:10,代码来源:IbatisServicePlugin.java

示例10: addJavadocTag

import org.mybatis.generator.api.dom.java.JavaElement; //导入依赖的package包/类
protected void addJavadocTag(JavaElement javaElement, boolean markAsDoNotDelete) {
}
 
开发者ID:ling49043171,项目名称:mark-mybatis-generator,代码行数:3,代码来源:MyCommentGenerator.java


注:本文中的org.mybatis.generator.api.dom.java.JavaElement类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。