| Package | Description |
|---|---|
| org.jruby | |
| org.jruby.runtime.load | |
| org.jruby.util |
| Modifier and Type | Field and Description |
|---|---|
protected FileResource |
RubyDir.dir |
private FileResource |
RubyFileStat.file |
| Modifier and Type | Method and Description |
|---|---|
static FileResource |
RubyFile.fileResource(IRubyObject pathOrFile)
Get the fully-qualified JRubyFile object for the path, taking into
account the runtime's current directory.
|
static FileResource |
RubyFile.fileResource(ThreadContext context,
IRubyObject pathOrFile) |
protected static FileResource |
RubyDir.getDir(Ruby runtime,
java.lang.String path,
boolean mustExist)
Returns a Java
File object for the specified path. |
| Modifier and Type | Method and Description |
|---|---|
protected static java.util.List<java.lang.String> |
RubyDir.getContents(FileResource directory)
Returns the contents of the specified
directory as an
ArrayList containing the names of the files as Java Strings. |
protected static java.util.List<RubyString> |
RubyDir.getContents(FileResource directory,
Ruby runtime)
Returns the contents of the specified
directory as an
ArrayList containing the names of the files as Ruby Strings. |
private static java.lang.String[] |
RubyDir.getEntries(ThreadContext context,
FileResource dir,
java.lang.String path) |
| Modifier and Type | Field and Description |
|---|---|
private FileResource |
LibrarySearcher.ResourceLibrary.resource |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
LibrarySearcher.resolveLoadName(FileResource resource,
java.lang.String ruby18path) |
protected java.lang.String |
LibrarySearcher.Ruby18.resolveLoadName(FileResource unused,
java.lang.String ruby18Path) |
protected java.lang.String |
LibrarySearcher.resolveScriptName(FileResource resource,
java.lang.String ruby18Path) |
protected java.lang.String |
LibrarySearcher.Ruby18.resolveScriptName(FileResource unused,
java.lang.String ruby18Path) |
| Constructor and Description |
|---|
ResourceLibrary(java.lang.String searchName,
java.lang.String scriptName,
FileResource resource) |
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
AbstractFileResource |
class |
ClasspathResource |
(package private) class |
EmptyFileResource |
(package private) class |
JarDirectoryResource
Represents a directory in a jar.
|
(package private) class |
JarFileResource
Represents a file in a jar.
|
(package private) class |
JarResource |
(package private) class |
RegularFileResource
Represents a "regular" file, backed by regular file system.
|
class |
URLResource |
| Modifier and Type | Field and Description |
|---|---|
private FileResource |
JarFileStat.resource |
| Modifier and Type | Method and Description |
|---|---|
static FileResource |
URLResource.create(java.lang.ClassLoader cl,
java.lang.String pathname) |
static FileResource |
URLResource.create(Ruby runtime,
java.lang.String pathname) |
static FileResource |
ClasspathResource.create(java.lang.String pathname) |
static FileResource |
URLResource.createClassloaderURI(Ruby runtime,
java.lang.String pathname) |
private static FileResource |
URLResource.createRegularURI(java.lang.String pathname) |
static FileResource |
JRubyFile.createResource(jnr.posix.POSIX posix,
Ruby runtime,
java.lang.String cwd,
java.lang.String pathname) |
static FileResource |
JRubyFile.createResource(jnr.posix.POSIX posix,
java.lang.String cwd,
java.lang.String pathname) |
static FileResource |
JRubyFile.createResource(Ruby runtime,
java.lang.String pathname) |
static FileResource |
JRubyFile.createResource(ThreadContext context,
java.lang.String pathname) |
static FileResource |
JRubyFile.createRestrictedResource(java.lang.String cwd,
java.lang.String pathname) |
| Modifier and Type | Method and Description |
|---|---|
private static java.lang.String[] |
Dir.files(FileResource directory) |
| Constructor and Description |
|---|
JarFileStat(FileResource resource) |