类com.intellij.psi.impl.source.tree.PsiCommentImpl源码实例Demo

下面列出了怎么用com.intellij.psi.impl.source.tree.PsiCommentImpl的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: 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;
}
 
源代码2 项目: intellij-haxe   文件: HaxeAstFactory.java
@Nullable
@Override
public LeafElement createLeaf(IElementType type, CharSequence text) {
  if (HaxeTokenTypeSets.COMMENTS.contains(type)) {
    return new PsiCommentImpl(type, text);
  }

  return new HaxePsiTokenImpl(type, text);
}
 
源代码3 项目: consulo   文件: CommentLiteralEscaper.java
public CommentLiteralEscaper(PsiCommentImpl host) {
  super(host);
}
 
 类所在包
 类方法
 同包方法