update copyrights
[fedora-idea.git] / platform / lang-api / src / com / intellij / openapi / roots / ModuleFileIndex.java
blob965223bfee0f25e30d8f687500b07a79996cf7b9
1 /*
2 * Copyright 2000-2009 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package com.intellij.openapi.roots;
18 import com.intellij.openapi.vfs.VirtualFile;
19 import org.jetbrains.annotations.NotNull;
20 import org.jetbrains.annotations.Nullable;
22 import java.util.List;
24 /**
25 * Provides information about files contained in a module.
27 * @author dsl
29 public interface ModuleFileIndex extends FileIndex {
30 /**
31 * Returns the order entry to which the specified file or directory
32 * belongs.
34 * @param fileOrDir the file or directory to check.
35 * @return the order entry to which the file or directory belongs, or null if
36 * it does not belong to any order entry.
38 @Nullable
39 OrderEntry getOrderEntryForFile(VirtualFile fileOrDir);
41 /**
42 * Returns the list of all order entries to which the specified file or directory
43 * belongs.
45 * @param fileOrDir the file or directory to check.
46 * @return the list of order entries to which the file or directory belongs.
48 @NotNull List<OrderEntry> getOrderEntriesForFile(VirtualFile fileOrDir);