Java 类com.intellij.psi.search.scope.packageSet.ComplementPackageSet 实例源码

项目:intellij-ce-playground    文件:DependencyRule.java   
public boolean isForbiddenToUse(@NotNull PsiFile from, @NotNull PsiFile to) {
  if (myFromScope == null || myToScope == null) return false;
  final PackageSet fromSet = myFromScope.getValue();
  final PackageSet toSet = myToScope.getValue();
  if (fromSet == null || toSet == null) return false;
  DependencyValidationManager holder = DependencyValidationManager.getInstance(from.getProject());
  return (myDenyRule
          ? fromSet.contains(from, holder)
          : new ComplementPackageSet(fromSet).contains(from, holder))
         && toSet.contains(to, holder);
}
项目:intellij-ce-playground    文件:DependencyRule.java   
public boolean isApplicable(@NotNull PsiFile file){
  if (myFromScope == null || myToScope == null) return false;
  final PackageSet fromSet = myFromScope.getValue();
  if (fromSet == null) return false;

  DependencyValidationManager holder = DependencyValidationManager.getInstance(file.getProject());
  return myDenyRule
          ? fromSet.contains(file, holder)
          : new ComplementPackageSet(fromSet).contains(file, holder);
}
项目:tools-idea    文件:DependencyRule.java   
public boolean isForbiddenToUse(PsiFile from, PsiFile to) {
  if (myFromScope == null || myToScope == null) return false;
  final PackageSet fromSet = myFromScope.getValue();
  final PackageSet toSet = myToScope.getValue();
  if (fromSet == null || toSet == null) return false;
  DependencyValidationManager holder = DependencyValidationManager.getInstance(from.getProject());
  return (myDenyRule
          ? fromSet.contains(from, holder)
          : new ComplementPackageSet(fromSet).contains(from, holder))
         && toSet.contains(to, holder);
}
项目:tools-idea    文件:DependencyRule.java   
public boolean isApplicable(PsiFile file){
  if (myFromScope == null || myToScope == null) return false;
  final PackageSet fromSet = myFromScope.getValue();
  if (fromSet == null) return false;

  DependencyValidationManager holder = DependencyValidationManager.getInstance(file.getProject());
  return myDenyRule
          ? fromSet.contains(file, holder)
          : new ComplementPackageSet(fromSet).contains(file, holder);
}
项目:consulo    文件:DependencyRule.java   
public boolean isForbiddenToUse(PsiFile from, PsiFile to) {
  if (myFromScope == null || myToScope == null) return false;
  final PackageSet fromSet = myFromScope.getValue();
  final PackageSet toSet = myToScope.getValue();
  if (fromSet == null || toSet == null) return false;
  DependencyValidationManager holder = DependencyValidationManager.getInstance(from.getProject());
  return (myDenyRule
          ? fromSet.contains(from, holder)
          : new ComplementPackageSet(fromSet).contains(from, holder))
         && toSet.contains(to, holder);
}
项目:consulo    文件:DependencyRule.java   
public boolean isApplicable(PsiFile file){
  if (myFromScope == null || myToScope == null) return false;
  final PackageSet fromSet = myFromScope.getValue();
  if (fromSet == null) return false;

  DependencyValidationManager holder = DependencyValidationManager.getInstance(file.getProject());
  return (myDenyRule
          ? fromSet.contains(file, holder)
          : new ComplementPackageSet(fromSet).contains(file, holder));
}