本文整理汇总了Java中com.intellij.codeInsight.daemon.impl.HighlightInfoFilter类的典型用法代码示例。如果您正苦于以下问题:Java HighlightInfoFilter类的具体用法?Java HighlightInfoFilter怎么用?Java HighlightInfoFilter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HighlightInfoFilter类属于com.intellij.codeInsight.daemon.impl包,在下文中一共展示了HighlightInfoFilter类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: HighlightInfoHolder
import com.intellij.codeInsight.daemon.impl.HighlightInfoFilter; //导入依赖的package包/类
public HighlightInfoHolder(@NotNull final PsiFile contextFile, @NotNull final HighlightInfoFilter... filters) {
myContextFile = contextFile;
myAnnotationSession = new AnnotationSession(contextFile);
myFilters = filters;
}
示例2: accepted
import com.intellij.codeInsight.daemon.impl.HighlightInfoFilter; //导入依赖的package包/类
private boolean accepted(@NotNull HighlightInfo info) {
for (HighlightInfoFilter filter : myFilters) {
if (!filter.accept(info, getContextFile())) return false;
}
return true;
}
示例3: CustomHighlightInfoHolder
import com.intellij.codeInsight.daemon.impl.HighlightInfoFilter; //导入依赖的package包/类
public CustomHighlightInfoHolder(@NotNull final PsiFile contextFile,
@NotNull final HighlightInfoFilter... filters) {
this(contextFile, null, filters);
}
示例4: accepted
import com.intellij.codeInsight.daemon.impl.HighlightInfoFilter; //导入依赖的package包/类
private boolean accepted(HighlightInfo info) {
for (HighlightInfoFilter filter : myFilters) {
if (!filter.accept(info, getContextFile())) return false;
}
return true;
}
示例5: HighlightInfoHolder
import com.intellij.codeInsight.daemon.impl.HighlightInfoFilter; //导入依赖的package包/类
public HighlightInfoHolder(@Nonnull final PsiFile contextFile, @Nonnull final HighlightInfoFilter... filters) {
myContextFile = contextFile;
myAnnotationSession = new AnnotationSession(contextFile);
myFilters = filters;
}
示例6: CustomHighlightInfoHolder
import com.intellij.codeInsight.daemon.impl.HighlightInfoFilter; //导入依赖的package包/类
public CustomHighlightInfoHolder(@Nonnull final PsiFile contextFile,
@Nonnull final HighlightInfoFilter... filters) {
this(contextFile, null, filters);
}
示例7: readStep
import com.intellij.codeInsight.daemon.impl.HighlightInfoFilter; //导入依赖的package包/类
private void readStep(final Random random) {
PsiClass aClass = getPsiClass();
switch (random.nextInt(4)) {
case 0:
mark("v");
aClass.getContainingFile().accept(new PsiRecursiveElementVisitor() {
});
break;
case 1:
mark("m");
for (int offset=0; offset<myFile.getTextLength();offset++) {
myFile.findElementAt(offset);
}
break;
case 2:
mark("h");
aClass.accept(new PsiRecursiveElementVisitor() {
@Override
public void visitElement(final PsiElement element) {
super.visitElement(element);
final HighlightInfoHolder infoHolder = new HighlightInfoHolder(myFile, HighlightInfoFilter.EMPTY_ARRAY);
final HighlightVisitorImpl visitor = new HighlightVisitorImpl(PsiResolveHelper.SERVICE.getInstance(getProject()));
visitor.analyze(myFile, false, infoHolder, new Runnable() {
@Override
public void run() {
visitor.visit(element);
}
});
}
});
break;
case 3:
mark("u");
for (PsiMethod method : aClass.getMethods()) {
method.getName();
}
break;
}
}