| Package | Description |
|---|---|
| org.eclipse.xtend.lib.macro.declaration | |
| org.eclipse.xtend.lib.macro.file |
| Modifier and Type | Method and Description |
|---|---|
Path |
CompilationUnit.getFilePath()
Returns the file handle for the given compilation unit.
|
| Modifier and Type | Field and Description |
|---|---|
static Path |
Path.ROOT
the root path
|
| Modifier and Type | Method and Description |
|---|---|
Path |
Path.append(String suffix)
Appends the given suffix to this path.
|
Path |
Path.getAbsolutePath(Path relativePath) |
Path |
Path.getAbsolutePath(String relativePath) |
Path |
Path.getParent()
Returns the parent of this path or null if this path is the root path.
|
Path |
FileLocations.getProjectFolder(Path path)
Returns the project root for the given resource handle.
|
Path |
FileLocations.getSourceFolder(Path path)
Returns the source folder the given handle is contained in or
null if the given Path is not
located in a source folder. |
Path |
FileLocations.getTargetFolder(Path sourceFolder)
Returns the target folder for the given source folder or
null if the given
folder is not a source folder or doesn't have a configured target folder. |
Path |
Path.relativize(Path other)
Constructs a relative path between this path and a given path.
|
Path |
Path.relativize(String other)
See
relativize(Path) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<? extends Path> |
FileSystemSupport.getChildren(Path path) |
Set<Path> |
FileLocations.getProjectSourceFolders(Path path) |
| Modifier and Type | Method and Description |
|---|---|
void |
MutableFileSystemSupport.delete(Path path)
Deletes the file or folder the given path points to.
|
boolean |
FileSystemSupport.exists(Path path) |
Path |
Path.getAbsolutePath(Path relativePath) |
String |
FileSystemSupport.getCharset(Path path)
Returns the name of a charset to be used when decoding the contents of this
file into characters.
|
Iterable<? extends Path> |
FileSystemSupport.getChildren(Path path) |
CharSequence |
FileSystemSupport.getContents(Path path)
Returns the contents of this file as a char sequence.
|
InputStream |
FileSystemSupport.getContentsAsStream(Path path)
Returns an open input stream on the contents of this file.
|
long |
FileSystemSupport.getLastModification(Path path) |
Path |
FileLocations.getProjectFolder(Path path)
Returns the project root for the given resource handle.
|
Set<Path> |
FileLocations.getProjectSourceFolders(Path path) |
Path |
FileLocations.getSourceFolder(Path path)
Returns the source folder the given handle is contained in or
null if the given Path is not
located in a source folder. |
Path |
FileLocations.getTargetFolder(Path sourceFolder)
Returns the target folder for the given source folder or
null if the given
folder is not a source folder or doesn't have a configured target folder. |
boolean |
FileSystemSupport.isFile(Path path) |
boolean |
FileSystemSupport.isFolder(Path path) |
void |
MutableFileSystemSupport.mkdir(Path path)
Creates a directory for the given path and all its parents if necessary.
|
Path |
Path.relativize(Path other)
Constructs a relative path between this path and a given path.
|
void |
MutableFileSystemSupport.setContents(Path path,
CharSequence contents)
Writes the given contents to the given path.
|
void |
MutableFileSystemSupport.setContentsAsStream(Path path,
InputStream source)
Sets the contents of this file to the bytes in the given input stream.
|
boolean |
Path.startsWith(Path other)
Returns whether this path starts with the same segments and
has the same
isAbsolute() value. |
URI |
FileSystemSupport.toURI(Path path)
Returns the URI representing the given path.
|
Copyright © 2015. All Rights Reserved.