All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.core.filesystem.IFileSystem Maven / Gradle / Ivy

Go to download

AspectJ tools most notably contains the AspectJ compiler (AJC). AJC applies aspects to Java classes during compilation, fully replacing Javac for plain Java classes and also compiling native AspectJ or annotation-based @AspectJ syntax. Furthermore, AJC can weave aspects into existing class files in a post-compile binary weaving step. This library is a superset of AspectJ weaver and hence also of AspectJ runtime.

There is a newer version: 1.9.22.1
Show newest version
/*******************************************************************************
 * Copyright (c) 2005, 2008 IBM Corporation and others.
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.core.filesystem;

import java.net.URI;
import org.eclipse.core.filesystem.provider.FileSystem;
import org.eclipse.core.runtime.*;

/**
 * This is the main interface to a single file system.  Each file system instance
 * manages interaction with all files in the backing store represented by a
 * particular URI scheme.
 * 

* File systems are registered using the "filesystems" extension point. *

* * @see EFS#getFileSystem(String) * @since org.eclipse.core.filesystem 1.0 * @noimplement This interface is not intended to be implemented by clients. File system * implementations must subclass {@link FileSystem} rather than implementing * this interface directly. */ public interface IFileSystem extends IAdaptable { /** * Returns the file attributes supported by this file system. This value * is a bit mask of the EFS.ATTRIBUTE_* constants. * * @return the file attributes supported by this file system. */ public int attributes(); /** * Returns whether this file system supports deletion * * @return true if this file system allows deletion * of files and directories, and false otherwise */ public boolean canDelete(); /** * Returns whether this file system supports modification. * * @return true if this file system allows modification * of files and directories, and false otherwise */ public boolean canWrite(); /** * Returns a file tree containing information about the complete sub-tree * rooted at the given store. Returns null if this file * system does not support the creation of such file trees. *

* A file tree accurately represents the state of a portion of a file system * at the time it is created, but it is never updated. Clients using a file * tree must tolerate the fact that the actual file system contents may * change after the tree is generated. *

* * @param root The store to use as the root of the file tree * @param monitor a progress monitor, or null if progress * reporting and cancellation are not desired * @return an {@link IFileTree} containing the sub-tree of the given store, * or null * @exception CoreException if this method fails. Reasons include: *
    *
  • Problems occurred while contacting the file system.
  • *
* @see IFileTree */ public IFileTree fetchFileTree(IFileStore root, IProgressMonitor monitor) throws CoreException; /** * Returns the file store in this file system corresponding to the * given local file. Returns null if this file system * cannot provide an {@link IFileStore} corresponding to a local file. * * @param file The file to be converted * @return The {@link IFileStore} corresponding to the given file, or null * @see IFileStore#toLocalFile(int, IProgressMonitor) */ public IFileStore fromLocalFile(java.io.File file); /** * Returns the URI scheme of this file system. * * @return the URI scheme of this file system. */ public String getScheme(); /** * Returns a handle to a file store in this file system. This is a handle-only * method; this method succeeds regardless of whether a file exists at that * path in this file system. *

* This is a convenience method for file systems that do not make use * of the authority {@link java.net.URI} component, such as a host or user * information. The provided path argument is interpreted as the path component * of the file system's {@link java.net.URI}. For example, this method can * be used to safely navigate within the local file system. *

* * @param path A path to a file store within the scheme of this file system. * @return A handle to a file store in this file system * @see EFS#getLocalFileSystem() */ public IFileStore getStore(IPath path); /** * Returns a handle to a file store in this file system. This is a handle-only * method; this method succeeds regardless of whether a file exists at that * path in this file system. The provided URI must have the appropriate scheme * and component parts for the file system on which this method is called. * * @param uri The URI of the file store to return. * @return A handle to a file store in this file system */ public IFileStore getStore(URI uri); /** * Returns whether this file system is case sensitive. A case sensitive * file system treats files with names that differ only in case as different * files. For example, "HELLO", "Hello", and "hello" would be three different * files or directories in a case sensitive file system. * * @return true if this file system is case sensitive, and * false otherwise. */ public boolean isCaseSensitive(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy