本文整理汇总了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;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:HighlightInfoHolder.java
示例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;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:HighlightInfoHolder.java
示例3: CustomHighlightInfoHolder
import com.intellij.codeInsight.daemon.impl.HighlightInfoFilter; //导入依赖的package包/类
public CustomHighlightInfoHolder(@NotNull final PsiFile contextFile,
@NotNull final HighlightInfoFilter... filters) {
this(contextFile, null, filters);
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:CustomHighlightInfoHolder.java
示例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;
}
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:7,代码来源:HighlightInfoHolder.java
示例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;
}
开发者ID:consulo,项目名称:consulo,代码行数:6,代码来源:HighlightInfoHolder.java
示例6: CustomHighlightInfoHolder
import com.intellij.codeInsight.daemon.impl.HighlightInfoFilter; //导入依赖的package包/类
public CustomHighlightInfoHolder(@Nonnull final PsiFile contextFile,
@Nonnull final HighlightInfoFilter... filters) {
this(contextFile, null, filters);
}
开发者ID:consulo,项目名称:consulo,代码行数:5,代码来源:CustomHighlightInfoHolder.java
示例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;
}
}
开发者ID:consulo,项目名称:consulo-java,代码行数:44,代码来源:PsiConcurrencyStressTest.java
注:本文中的com.intellij.codeInsight.daemon.impl.HighlightInfoFilter类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论