Java 类com.intellij.psi.impl.source.javadoc.PsiDocCommentImpl 实例源码

项目:codehelper.generator    文件:OnePojoInfoHelper.java   
private static String parseComment(PsiField field) {
    if(field == null){
        return StringUtils.EMPTY;
    }
    PsiElement[] children = field.getChildren();
    for (PsiElement child : children) {
        String text = child.getText();
        if(child instanceof PsiDocCommentImpl || child instanceof PsiCommentImpl){
            return formatText(text);
        }
    }
    return StringUtils.EMPTY;
}
项目:consulo-java    文件:JavaDocElementType.java   
@Override
public ASTNode createNode(final CharSequence text)
{
    return new PsiDocCommentImpl(text);
}