public class FakeVirtualFile extends StubVirtualFile
VirtualFile.PropNameEMPTY_ARRAY, PROP_ENCODING, PROP_HIDDEN, PROP_NAME, PROP_SYMLINK_TARGET, PROP_WRITABLEEVER_CHANGED, NEVER_CHANGED| Constructor and Description |
|---|
FakeVirtualFile(VirtualFile parent,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Gets the name of this file.
|
VirtualFile |
getParent()
Gets the parent
VirtualFile. |
java.lang.String |
getPath()
Gets the path of this file.
|
boolean |
isDirectory()
Checks whether this file is a directory.
|
java.lang.String |
toString() |
clearUserData, contentsToByteArray, copy, createChildData, createChildDirectory, delete, getChildren, getFileSystem, getInputStream, getLength, getOutputStream, getTimeStamp, getUrl, isValid, isWritable, move, putCopyableUserData, putUserData, putUserDataIfAbsent, refresh, refresh, replace, setBinaryContent, setBinaryContent, setBOM, setCharset, setCharset, setCharset, setDetectedLineSeparator, setPreloadedContentHint, setUserMap, setWritable, storeCharsetcontentsToByteArray, exists, findChild, findFileByRelativePath, findOrCreateChildData, getBOM, getCanonicalFile, getCanonicalPath, getCharset, getDetectedLineSeparator, getExtension, getFileType, getModificationCount, getModificationStamp, getNameSequence, getNameWithoutExtension, getOutputStream, getPresentableName, getPresentableUrl, is, isCharsetSet, isInLocalFileSystem, isRecursiveOrCircularSymLink, isValidName, nameEquals, rename, setBinaryContentchangeUserMap, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmptypublic FakeVirtualFile(VirtualFile parent, java.lang.String name)
public VirtualFile getParent()
VirtualFileVirtualFile.getParent in class StubVirtualFilenull if this file is a root directorypublic boolean isDirectory()
VirtualFileisDirectory in class StubVirtualFiletrue if this file is a directory, false otherwisepublic java.lang.String getPath()
VirtualFileVirtualFileSystem. Format of the path depends on the concrete file system.
For LocalFileSystem it is an absolute file path with file separator characters
(File.separatorChar) replaced to the forward slash ('/').getPath in class StubVirtualFilepublic java.lang.String getName()
VirtualFilegetName in class StubVirtualFileVirtualFile.getNameSequence()public java.lang.String toString()
toString in class VirtualFile