langtools/src/share/classes/javax/tools/StandardJavaFileManager.java
author mullan
Mon, 22 Sep 2008 10:43:17 -0400
changeset 1337 e8d6cef36199
parent 10 06bc494ca11e
child 4548 bc0d5b3c3b2d
permissions -rw-r--r--
6469266: Integrate Apache XMLSec 1.4.2 into JDK 7 Reviewed-by: valeriep
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
06bc494ca11e Initial load
duke
parents:
diff changeset
     2
 * Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
06bc494ca11e Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
06bc494ca11e Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
06bc494ca11e Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
06bc494ca11e Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
06bc494ca11e Initial load
duke
parents:
diff changeset
    16
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
06bc494ca11e Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
06bc494ca11e Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
06bc494ca11e Initial load
duke
parents:
diff changeset
    20
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
06bc494ca11e Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
06bc494ca11e Initial load
duke
parents:
diff changeset
    23
 * have any questions.
06bc494ca11e Initial load
duke
parents:
diff changeset
    24
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    25
06bc494ca11e Initial load
duke
parents:
diff changeset
    26
package javax.tools;
06bc494ca11e Initial load
duke
parents:
diff changeset
    27
06bc494ca11e Initial load
duke
parents:
diff changeset
    28
import java.io.File;
06bc494ca11e Initial load
duke
parents:
diff changeset
    29
import java.io.IOException;
06bc494ca11e Initial load
duke
parents:
diff changeset
    30
import java.util.*;
06bc494ca11e Initial load
duke
parents:
diff changeset
    31
import java.util.concurrent.*;
06bc494ca11e Initial load
duke
parents:
diff changeset
    32
06bc494ca11e Initial load
duke
parents:
diff changeset
    33
/**
06bc494ca11e Initial load
duke
parents:
diff changeset
    34
 * File manager based on {@linkplain File java.io.File}.  A common way
06bc494ca11e Initial load
duke
parents:
diff changeset
    35
 * to obtain an instance of this class is using {@linkplain
06bc494ca11e Initial load
duke
parents:
diff changeset
    36
 * JavaCompiler#getStandardFileManager
06bc494ca11e Initial load
duke
parents:
diff changeset
    37
 * getStandardFileManager}, for example:
06bc494ca11e Initial load
duke
parents:
diff changeset
    38
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    39
 * <pre>
06bc494ca11e Initial load
duke
parents:
diff changeset
    40
 *   JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
06bc494ca11e Initial load
duke
parents:
diff changeset
    41
 *   {@code DiagnosticCollector<JavaFileObject>} diagnostics =
06bc494ca11e Initial load
duke
parents:
diff changeset
    42
 *       new {@code DiagnosticCollector<JavaFileObject>()};
06bc494ca11e Initial load
duke
parents:
diff changeset
    43
 *   StandardJavaFileManager fm = compiler.getStandardFileManager(diagnostics, null, null);
06bc494ca11e Initial load
duke
parents:
diff changeset
    44
 * </pre>
06bc494ca11e Initial load
duke
parents:
diff changeset
    45
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    46
 * This file manager creates file objects representing regular
06bc494ca11e Initial load
duke
parents:
diff changeset
    47
 * {@linkplain File files},
06bc494ca11e Initial load
duke
parents:
diff changeset
    48
 * {@linkplain java.util.zip.ZipEntry zip file entries}, or entries in
06bc494ca11e Initial load
duke
parents:
diff changeset
    49
 * similar file system based containers.  Any file object returned
06bc494ca11e Initial load
duke
parents:
diff changeset
    50
 * from a file manager implementing this interface must observe the
06bc494ca11e Initial load
duke
parents:
diff changeset
    51
 * following behavior:
06bc494ca11e Initial load
duke
parents:
diff changeset
    52
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    53
 * <ul>
06bc494ca11e Initial load
duke
parents:
diff changeset
    54
 *   <li>
06bc494ca11e Initial load
duke
parents:
diff changeset
    55
 *     File names need not be canonical.
06bc494ca11e Initial load
duke
parents:
diff changeset
    56
 *   </li>
06bc494ca11e Initial load
duke
parents:
diff changeset
    57
 *   <li>
06bc494ca11e Initial load
duke
parents:
diff changeset
    58
 *     For file objects representing regular files
06bc494ca11e Initial load
duke
parents:
diff changeset
    59
 *     <ul>
06bc494ca11e Initial load
duke
parents:
diff changeset
    60
 *       <li>
06bc494ca11e Initial load
duke
parents:
diff changeset
    61
 *         the method <code>{@linkplain FileObject#delete()}</code>
06bc494ca11e Initial load
duke
parents:
diff changeset
    62
 *         is equivalent to <code>{@linkplain File#delete()}</code>,
06bc494ca11e Initial load
duke
parents:
diff changeset
    63
 *       </li>
06bc494ca11e Initial load
duke
parents:
diff changeset
    64
 *       <li>
06bc494ca11e Initial load
duke
parents:
diff changeset
    65
 *         the method <code>{@linkplain FileObject#getLastModified()}</code>
06bc494ca11e Initial load
duke
parents:
diff changeset
    66
 *         is equivalent to <code>{@linkplain File#lastModified()}</code>,
06bc494ca11e Initial load
duke
parents:
diff changeset
    67
 *       </li>
06bc494ca11e Initial load
duke
parents:
diff changeset
    68
 *       <li>
06bc494ca11e Initial load
duke
parents:
diff changeset
    69
 *         the methods <code>{@linkplain FileObject#getCharContent(boolean)}</code>,
06bc494ca11e Initial load
duke
parents:
diff changeset
    70
 *         <code>{@linkplain FileObject#openInputStream()}</code>, and
06bc494ca11e Initial load
duke
parents:
diff changeset
    71
 *         <code>{@linkplain FileObject#openReader(boolean)}</code>
06bc494ca11e Initial load
duke
parents:
diff changeset
    72
 *         must succeed if the following would succeed (ignoring
06bc494ca11e Initial load
duke
parents:
diff changeset
    73
 *         encoding issues):
06bc494ca11e Initial load
duke
parents:
diff changeset
    74
 *         <blockquote>
06bc494ca11e Initial load
duke
parents:
diff changeset
    75
 *           <pre>new {@linkplain java.io.FileInputStream#FileInputStream(File) FileInputStream}(new {@linkplain File#File(java.net.URI) File}({@linkplain FileObject fileObject}.{@linkplain FileObject#toUri() toUri}()))</pre>
06bc494ca11e Initial load
duke
parents:
diff changeset
    76
 *         </blockquote>
06bc494ca11e Initial load
duke
parents:
diff changeset
    77
 *       </li>
06bc494ca11e Initial load
duke
parents:
diff changeset
    78
 *       <li>
06bc494ca11e Initial load
duke
parents:
diff changeset
    79
 *         and the methods
06bc494ca11e Initial load
duke
parents:
diff changeset
    80
 *         <code>{@linkplain FileObject#openOutputStream()}</code>, and
06bc494ca11e Initial load
duke
parents:
diff changeset
    81
 *         <code>{@linkplain FileObject#openWriter()}</code> must
06bc494ca11e Initial load
duke
parents:
diff changeset
    82
 *         succeed if the following would succeed (ignoring encoding
06bc494ca11e Initial load
duke
parents:
diff changeset
    83
 *         issues):
06bc494ca11e Initial load
duke
parents:
diff changeset
    84
 *         <blockquote>
06bc494ca11e Initial load
duke
parents:
diff changeset
    85
 *           <pre>new {@linkplain java.io.FileOutputStream#FileOutputStream(File) FileOutputStream}(new {@linkplain File#File(java.net.URI) File}({@linkplain FileObject fileObject}.{@linkplain FileObject#toUri() toUri}()))</pre>
06bc494ca11e Initial load
duke
parents:
diff changeset
    86
 *         </blockquote>
06bc494ca11e Initial load
duke
parents:
diff changeset
    87
 *       </li>
06bc494ca11e Initial load
duke
parents:
diff changeset
    88
 *     </ul>
06bc494ca11e Initial load
duke
parents:
diff changeset
    89
 *   </li>
06bc494ca11e Initial load
duke
parents:
diff changeset
    90
 *   <li>
06bc494ca11e Initial load
duke
parents:
diff changeset
    91
 *     The {@linkplain java.net.URI URI} returned from
06bc494ca11e Initial load
duke
parents:
diff changeset
    92
 *     <code>{@linkplain FileObject#toUri()}</code>
06bc494ca11e Initial load
duke
parents:
diff changeset
    93
 *     <ul>
06bc494ca11e Initial load
duke
parents:
diff changeset
    94
 *       <li>
06bc494ca11e Initial load
duke
parents:
diff changeset
    95
 *         must be {@linkplain java.net.URI#isAbsolute() absolute} (have a schema), and
06bc494ca11e Initial load
duke
parents:
diff changeset
    96
 *       </li>
06bc494ca11e Initial load
duke
parents:
diff changeset
    97
 *       <li>
06bc494ca11e Initial load
duke
parents:
diff changeset
    98
 *         must have a {@linkplain java.net.URI#normalize() normalized}
06bc494ca11e Initial load
duke
parents:
diff changeset
    99
 *         {@linkplain java.net.URI#getPath() path component} which
06bc494ca11e Initial load
duke
parents:
diff changeset
   100
 *         can be resolved without any process-specific context such
06bc494ca11e Initial load
duke
parents:
diff changeset
   101
 *         as the current directory (file names must be absolute).
06bc494ca11e Initial load
duke
parents:
diff changeset
   102
 *       </li>
06bc494ca11e Initial load
duke
parents:
diff changeset
   103
 *     </ul>
06bc494ca11e Initial load
duke
parents:
diff changeset
   104
 *   </li>
06bc494ca11e Initial load
duke
parents:
diff changeset
   105
 * </ul>
06bc494ca11e Initial load
duke
parents:
diff changeset
   106
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
   107
 * According to these rules, the following URIs, for example, are
06bc494ca11e Initial load
duke
parents:
diff changeset
   108
 * allowed:
06bc494ca11e Initial load
duke
parents:
diff changeset
   109
 * <ul>
06bc494ca11e Initial load
duke
parents:
diff changeset
   110
 *   <li>
06bc494ca11e Initial load
duke
parents:
diff changeset
   111
 *     <code>file:///C:/Documents%20and%20Settings/UncleBob/BobsApp/Test.java</code>
06bc494ca11e Initial load
duke
parents:
diff changeset
   112
 *   </li>
06bc494ca11e Initial load
duke
parents:
diff changeset
   113
 *   <li>
06bc494ca11e Initial load
duke
parents:
diff changeset
   114
 *     <code>jar:///C:/Documents%20and%20Settings/UncleBob/lib/vendorA.jar!com/vendora/LibraryClass.class</code>
06bc494ca11e Initial load
duke
parents:
diff changeset
   115
 *   </li>
06bc494ca11e Initial load
duke
parents:
diff changeset
   116
 * </ul>
06bc494ca11e Initial load
duke
parents:
diff changeset
   117
 * Whereas these are not (reason in parentheses):
06bc494ca11e Initial load
duke
parents:
diff changeset
   118
 * <ul>
06bc494ca11e Initial load
duke
parents:
diff changeset
   119
 *   <li>
06bc494ca11e Initial load
duke
parents:
diff changeset
   120
 *     <code>file:BobsApp/Test.java</code> (the file name is relative
06bc494ca11e Initial load
duke
parents:
diff changeset
   121
 *     and depend on the current directory)
06bc494ca11e Initial load
duke
parents:
diff changeset
   122
 *   </li>
06bc494ca11e Initial load
duke
parents:
diff changeset
   123
 *   <li>
06bc494ca11e Initial load
duke
parents:
diff changeset
   124
 *     <code>jar:lib/vendorA.jar!com/vendora/LibraryClass.class</code>
06bc494ca11e Initial load
duke
parents:
diff changeset
   125
 *     (the first half of the path depends on the current directory,
06bc494ca11e Initial load
duke
parents:
diff changeset
   126
 *     whereas the component after ! is legal)
06bc494ca11e Initial load
duke
parents:
diff changeset
   127
 *   </li>
06bc494ca11e Initial load
duke
parents:
diff changeset
   128
 *   <li>
06bc494ca11e Initial load
duke
parents:
diff changeset
   129
 *     <code>Test.java</code> (this URI depends on the current
06bc494ca11e Initial load
duke
parents:
diff changeset
   130
 *     directory and does not have a schema)
06bc494ca11e Initial load
duke
parents:
diff changeset
   131
 *   </li>
06bc494ca11e Initial load
duke
parents:
diff changeset
   132
 *   <li>
06bc494ca11e Initial load
duke
parents:
diff changeset
   133
 *     <code>jar:///C:/Documents%20and%20Settings/UncleBob/BobsApp/../lib/vendorA.jar!com/vendora/LibraryClass.class</code>
06bc494ca11e Initial load
duke
parents:
diff changeset
   134
 *     (the path is not normalized)
06bc494ca11e Initial load
duke
parents:
diff changeset
   135
 *   </li>
06bc494ca11e Initial load
duke
parents:
diff changeset
   136
 * </ul>
06bc494ca11e Initial load
duke
parents:
diff changeset
   137
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
   138
 * @author Peter von der Ah&eacute;
06bc494ca11e Initial load
duke
parents:
diff changeset
   139
 * @since 1.6
06bc494ca11e Initial load
duke
parents:
diff changeset
   140
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
   141
public interface StandardJavaFileManager extends JavaFileManager {
06bc494ca11e Initial load
duke
parents:
diff changeset
   142
06bc494ca11e Initial load
duke
parents:
diff changeset
   143
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   144
     * Compares two file objects and return true if they represent the
06bc494ca11e Initial load
duke
parents:
diff changeset
   145
     * same canonical file, zip file entry, or entry in any file
06bc494ca11e Initial load
duke
parents:
diff changeset
   146
     * system based container.
06bc494ca11e Initial load
duke
parents:
diff changeset
   147
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   148
     * @param a a file object
06bc494ca11e Initial load
duke
parents:
diff changeset
   149
     * @param b a file object
06bc494ca11e Initial load
duke
parents:
diff changeset
   150
     * @return true if the given file objects represent the same
06bc494ca11e Initial load
duke
parents:
diff changeset
   151
     * canonical file or zip file entry; false otherwise
06bc494ca11e Initial load
duke
parents:
diff changeset
   152
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   153
     * @throws IllegalArgumentException if either of the arguments
06bc494ca11e Initial load
duke
parents:
diff changeset
   154
     * were created with another file manager implementation
06bc494ca11e Initial load
duke
parents:
diff changeset
   155
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   156
    boolean isSameFile(FileObject a, FileObject b);
06bc494ca11e Initial load
duke
parents:
diff changeset
   157
06bc494ca11e Initial load
duke
parents:
diff changeset
   158
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   159
     * Gets file objects representing the given files.
06bc494ca11e Initial load
duke
parents:
diff changeset
   160
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   161
     * @param files a list of files
06bc494ca11e Initial load
duke
parents:
diff changeset
   162
     * @return a list of file objects
06bc494ca11e Initial load
duke
parents:
diff changeset
   163
     * @throws IllegalArgumentException if the list of files includes
06bc494ca11e Initial load
duke
parents:
diff changeset
   164
     * a directory
06bc494ca11e Initial load
duke
parents:
diff changeset
   165
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   166
    Iterable<? extends JavaFileObject> getJavaFileObjectsFromFiles(
06bc494ca11e Initial load
duke
parents:
diff changeset
   167
        Iterable<? extends File> files);
06bc494ca11e Initial load
duke
parents:
diff changeset
   168
06bc494ca11e Initial load
duke
parents:
diff changeset
   169
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   170
     * Gets file objects representing the given files.
06bc494ca11e Initial load
duke
parents:
diff changeset
   171
     * Convenience method equivalent to:
06bc494ca11e Initial load
duke
parents:
diff changeset
   172
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   173
     * <pre>
06bc494ca11e Initial load
duke
parents:
diff changeset
   174
     *     getJavaFileObjectsFromFiles({@linkplain java.util.Arrays#asList Arrays.asList}(files))
06bc494ca11e Initial load
duke
parents:
diff changeset
   175
     * </pre>
06bc494ca11e Initial load
duke
parents:
diff changeset
   176
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   177
     * @param files an array of files
06bc494ca11e Initial load
duke
parents:
diff changeset
   178
     * @return a list of file objects
06bc494ca11e Initial load
duke
parents:
diff changeset
   179
     * @throws IllegalArgumentException if the array of files includes
06bc494ca11e Initial load
duke
parents:
diff changeset
   180
     * a directory
06bc494ca11e Initial load
duke
parents:
diff changeset
   181
     * @throws NullPointerException if the given array contains null
06bc494ca11e Initial load
duke
parents:
diff changeset
   182
     * elements
06bc494ca11e Initial load
duke
parents:
diff changeset
   183
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   184
    Iterable<? extends JavaFileObject> getJavaFileObjects(File... files);
06bc494ca11e Initial load
duke
parents:
diff changeset
   185
06bc494ca11e Initial load
duke
parents:
diff changeset
   186
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   187
     * Gets file objects representing the given file names.
06bc494ca11e Initial load
duke
parents:
diff changeset
   188
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   189
     * @param names a list of file names
06bc494ca11e Initial load
duke
parents:
diff changeset
   190
     * @return a list of file objects
06bc494ca11e Initial load
duke
parents:
diff changeset
   191
     * @throws IllegalArgumentException if the list of file names
06bc494ca11e Initial load
duke
parents:
diff changeset
   192
     * includes a directory
06bc494ca11e Initial load
duke
parents:
diff changeset
   193
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   194
    Iterable<? extends JavaFileObject> getJavaFileObjectsFromStrings(
06bc494ca11e Initial load
duke
parents:
diff changeset
   195
        Iterable<String> names);
06bc494ca11e Initial load
duke
parents:
diff changeset
   196
06bc494ca11e Initial load
duke
parents:
diff changeset
   197
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   198
     * Gets file objects representing the given file names.
06bc494ca11e Initial load
duke
parents:
diff changeset
   199
     * Convenience method equivalent to:
06bc494ca11e Initial load
duke
parents:
diff changeset
   200
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   201
     * <pre>
06bc494ca11e Initial load
duke
parents:
diff changeset
   202
     *     getJavaFileObjectsFromStrings({@linkplain java.util.Arrays#asList Arrays.asList}(names))
06bc494ca11e Initial load
duke
parents:
diff changeset
   203
     * </pre>
06bc494ca11e Initial load
duke
parents:
diff changeset
   204
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   205
     * @param names a list of file names
06bc494ca11e Initial load
duke
parents:
diff changeset
   206
     * @return a list of file objects
06bc494ca11e Initial load
duke
parents:
diff changeset
   207
     * @throws IllegalArgumentException if the array of file names
06bc494ca11e Initial load
duke
parents:
diff changeset
   208
     * includes a directory
06bc494ca11e Initial load
duke
parents:
diff changeset
   209
     * @throws NullPointerException if the given array contains null
06bc494ca11e Initial load
duke
parents:
diff changeset
   210
     * elements
06bc494ca11e Initial load
duke
parents:
diff changeset
   211
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   212
    Iterable<? extends JavaFileObject> getJavaFileObjects(String... names);
06bc494ca11e Initial load
duke
parents:
diff changeset
   213
06bc494ca11e Initial load
duke
parents:
diff changeset
   214
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   215
     * Associates the given path with the given location.  Any
06bc494ca11e Initial load
duke
parents:
diff changeset
   216
     * previous value will be discarded.
06bc494ca11e Initial load
duke
parents:
diff changeset
   217
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   218
     * @param location a location
06bc494ca11e Initial load
duke
parents:
diff changeset
   219
     * @param path a list of files, if {@code null} use the default
06bc494ca11e Initial load
duke
parents:
diff changeset
   220
     * path for this location
06bc494ca11e Initial load
duke
parents:
diff changeset
   221
     * @see #getLocation
06bc494ca11e Initial load
duke
parents:
diff changeset
   222
     * @throws IllegalArgumentException if location is an output
06bc494ca11e Initial load
duke
parents:
diff changeset
   223
     * location and path does not contain exactly one element
06bc494ca11e Initial load
duke
parents:
diff changeset
   224
     * @throws IOException if location is an output location and path
06bc494ca11e Initial load
duke
parents:
diff changeset
   225
     * does not represent an existing directory
06bc494ca11e Initial load
duke
parents:
diff changeset
   226
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   227
    void setLocation(Location location, Iterable<? extends File> path)
06bc494ca11e Initial load
duke
parents:
diff changeset
   228
        throws IOException;
06bc494ca11e Initial load
duke
parents:
diff changeset
   229
06bc494ca11e Initial load
duke
parents:
diff changeset
   230
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   231
     * Gets the path associated with the given location.
06bc494ca11e Initial load
duke
parents:
diff changeset
   232
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   233
     * @param location a location
06bc494ca11e Initial load
duke
parents:
diff changeset
   234
     * @return a list of files or {@code null} if this location has no
06bc494ca11e Initial load
duke
parents:
diff changeset
   235
     * associated path
06bc494ca11e Initial load
duke
parents:
diff changeset
   236
     * @see #setLocation
06bc494ca11e Initial load
duke
parents:
diff changeset
   237
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   238
    Iterable<? extends File> getLocation(Location location);
06bc494ca11e Initial load
duke
parents:
diff changeset
   239
06bc494ca11e Initial load
duke
parents:
diff changeset
   240
}