Top Inners Fields Constructors Methods
org.jruby.runtime.load

public Class LibrarySearcher

extends Object
Class Inheritance
Imports
java.io.BufferedInputStream, .File, .IOException, .InputStream, java.net.MalformedURLException, .URL, java.util.ArrayList, .EnumSet, .List, .Map, .Optional, java.util.concurrent.ConcurrentHashMap, java.util.function.Function, java.util.regex.Matcher, org.jruby.Ruby, .RubyArray, .RubyDir, .RubyFile, .RubyString, org.jruby.ir.IRScope, org.jruby.platform.Platform, org.jruby.runtime.Helpers, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.load.LoadService.SuffixType, org.jruby.util.ByteList, .FileResource, .JRubyFile, .URLResource, org.jruby.util.cli.Options, org.jruby.util.collections.StringArraySet, org.jruby.util.func.TriFunction

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv class
pack-priv class
pack-priv static interface
public static class
pack-priv class
pack-priv static class
pack-priv static interface
pack-priv class
pack-priv class
pack-priv abstract class
pack-priv static class
protected static class
pack-priv static enum

Field Summary

Modifier and TypeField and Description
private final LibrarySearcher.PathEntry
private final LibrarySearcher.PathEntry
protected LibrarySearcher.ExpandedLoadPath
public static final char
private final LibrarySearcher.PathEntry
private final ThreadLocal<LibrarySearcher.StringWrapper>
private final Map<LibrarySearcher.StringWrapper, LibrarySearcher.Feature>
protected RubyArray<T extends IRubyObject>
protected RubyArray<T extends IRubyObject>
private final LoadService
public static final char
private final LibrarySearcher.PathEntry
private final ThreadLocal<LibrarySearcher.StringWrapper>
private final Ruby
public static final char
public static final char

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected synchronized void
protected synchronized void
addSingleFeatureToIndex(String key, int beg, int end, IRubyObject featurePath)

public synchronized boolean
featureAlreadyLoaded(String feature, String[] loading)

public LibrarySearcher.FoundLibrary
findLibrary(String baseName, LoadService.SuffixType suffixType)

public LibrarySearcher.FoundLibrary
public synchronized char
private LibrarySearcher.FoundLibrary
private LibrarySearcher.FoundLibrary
public List<LibrarySearcher.PathEntry>
pack-priv LibrarySearcher.Feature
pack-priv synchronized Map<LibrarySearcher.StringWrapper, LibrarySearcher.Feature>
public static LoadService.SuffixType
getSuffixTypeForLoad(final String[] fileHolder)

public static LoadService.SuffixType
private static boolean
protected char
isFeature(String feature, int ext, boolean rb, boolean expanded, String[] fn)

public static boolean
public static boolean
private static boolean
isURI(String path)

private synchronized LibrarySearcher.StringWrapper
private List<LibrarySearcher.PathEntry>
pack-priv static String
protected synchronized void
private synchronized LibrarySearcher.StringWrapper
rangeWrapper(String key, int beg, int len)

private synchronized void
private char
setLoadingAndReturn(String feature, String[] fn, boolean suffixGiven, String key)

protected synchronized RubyArray<T extends IRubyObject>
public void
private synchronized <R> R
private synchronized <R> R
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait