本文整理汇总了Java中com.intellij.openapi.util.Conditions.and方法的典型用法代码示例。如果您正苦于以下问题:Java Conditions.and方法的具体用法?Java Conditions.and怎么用?Java Conditions.and使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.openapi.util.Conditions
的用法示例。
在下文中一共展示了Conditions.and方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getFilterFromFinders
import com.intellij.openapi.util.Conditions; //导入方法依赖的package包/类
private static Condition<PsiClass> getFilterFromFinders(@NotNull GlobalSearchScope scope, @NotNull PsiElementFinder[] finders) {
Condition<PsiClass> filter = null;
for (PsiElementFinder finder : finders) {
Condition<PsiClass> finderFilter = finder.getClassesFilter(scope);
if (finderFilter != null) {
filter = filter == null ? finderFilter : Conditions.and(filter, finderFilter);
}
}
return filter;
}
示例2: getFilters
import com.intellij.openapi.util.Conditions; //导入方法依赖的package包/类
protected Condition<PsiElement> getFilters(int offset) {
return Conditions.and(getBorderOffsetFilter(offset), myAdditionalCondition);
}
示例3: createElementWithAttributeFilter
import com.intellij.openapi.util.Conditions; //导入方法依赖的package包/类
public static Condition<Element> createElementWithAttributeFilter(final String elementName, final String attributeName, final String attributeValue) {
return Conditions.and(createElementNameFilter(elementName),
createAttributeValueFilter(attributeName, attributeValue));
}
示例4: NewMultiPlatformClassAction
import com.intellij.openapi.util.Conditions; //导入方法依赖的package包/类
public NewMultiPlatformClassAction() {
super(Conditions.and(IS_GENERIC, IS_IN_SOURCE));
}
示例5: NewMacroAction
import com.intellij.openapi.util.Conditions; //导入方法依赖的package包/类
public NewMacroAction() {
super(Conditions.and(IS_GENERIC, IS_IN_SOURCE));
}