Package org.jruby.runtime.load
Class LibrarySearcher
java.lang.Object
org.jruby.runtime.load.LibrarySearcher
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) class(package private) class(package private) static interfacestatic class(package private) class(package private) static class(package private) static interface(package private) class(package private) class(package private) class(package private) static classprivate static class(package private) static enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LibrarySearcher.PathEntryprivate final LibrarySearcher.PathEntryprotected LibrarySearcher.ExpandedLoadPathstatic final charprivate final LibrarySearcher.PathEntryprivate final ThreadLocal<LibrarySearcher.StringWrapper>private final Map<LibrarySearcher.StringWrapper,LibrarySearcher.Feature> protected RubyArrayprotected RubyArrayprivate final LoadServicestatic final charprivate final LibrarySearcher.PathEntryprivate final ThreadLocal<LibrarySearcher.StringWrapper>private final Rubystatic final charstatic final char -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddFeatureToIndex(String name, IRubyObject featurePath) protected voidaddSingleFeatureToIndex(String key, int beg, int end, IRubyObject featurePath) booleanfeatureAlreadyLoaded(String feature, String[] loading) Deprecated.findLibrary(String baseName, LoadService.SuffixType suffixType) findLibraryForLoad(String file) charfindLibraryForRequire(String file, LibrarySearcher.FoundLibrary[] path) private LibrarySearcher.FoundLibraryfindResourceLibrary(String baseName, LibrarySearcher.FilenameFactory pathMaker, LibrarySearcher.LibraryFactory libraryMaker) private LibrarySearcher.FoundLibraryfindServiceLibrary(String name) (package private) LibrarySearcher.FeaturegetLoadedFeature(String feature) (package private) Map<LibrarySearcher.StringWrapper,LibrarySearcher.Feature> static LoadService.SuffixTypegetSuffixTypeForLoad(String[] fileHolder) static LoadService.SuffixTypegetSuffixTypeForRequire(String[] fileHolder) private static booleanisAbsolute(String path) protected charstatic booleanisLibraryExt(String file) static booleanisSourceExt(String file) private static booleanprivate LibrarySearcher.StringWrapperkeyWrapper(String key) private List<LibrarySearcher.PathEntry>lazyLoadPath(List<LibrarySearcher.PathEntry> loadPath) (package private) static StringloadedFeatureWithPath(String name, String feature, LibrarySearcher.Suffix suffix, List<LibrarySearcher.PathEntry> loadPath) protected voidprovideFeature(RubyString name) private LibrarySearcher.StringWrapperrangeWrapper(String key, int beg, int len) private voidprivate charsetLoadingAndReturn(String feature, String[] fn, boolean suffixGiven, String key) protected RubyArrayprivate <R> RwithKeyWrapper(String key, Function<LibrarySearcher.StringWrapper, R> body) private <R> RwithRangeWrapper(String key, int beg, int len, Function<LibrarySearcher.StringWrapper, R> body)
-
Field Details
-
EXTENSION_TYPE
public static final char EXTENSION_TYPE- See Also:
-
SOURCE_TYPE
public static final char SOURCE_TYPE- See Also:
-
UNKNOWN_TYPE
public static final char UNKNOWN_TYPE- See Also:
-
NOT_FOUND
public static final char NOT_FOUND- See Also:
-
loadService
-
runtime
-
cwdPathEntry
-
classloaderPathEntry
-
nullPathEntry
-
homePathEntry
-
expandedLoadPath
-
loadPath
-
loadedFeaturesSnapshot
-
loadedFeaturesIndex
-
keyWrapper
-
rangeWrapper
-
-
Constructor Details
-
LibrarySearcher
-
-
Method Details
-
getExpandedLoadPath
-
findBySearchState
Deprecated. -
findLibraryForRequire
-
findLibraryForLoad
-
findLibrary
-
getSuffixTypeForRequire
-
getSuffixTypeForLoad
-
isSourceExt
-
isLibraryExt
-
featureAlreadyLoaded
-
provideFeature
-
snapshotLoadedFeatures
-
addFeatureToIndex
-
addSingleFeatureToIndex
-
releaseWrapper
-
keyWrapper
-
rangeWrapper
-
withKeyWrapper
-
withRangeWrapper
private <R> R withRangeWrapper(String key, int beg, int len, Function<LibrarySearcher.StringWrapper, R> body) -
isFeature
-
setLoadingAndReturn
-
lazyLoadPath
-
getLoadedFeaturesIndex
Map<LibrarySearcher.StringWrapper,LibrarySearcher.Feature> getLoadedFeaturesIndex() -
getLoadedFeature
-
loadedFeatureWithPath
static String loadedFeatureWithPath(String name, String feature, LibrarySearcher.Suffix suffix, List<LibrarySearcher.PathEntry> loadPath) -
findServiceLibrary
-
findResourceLibrary
private LibrarySearcher.FoundLibrary findResourceLibrary(String baseName, LibrarySearcher.FilenameFactory pathMaker, LibrarySearcher.LibraryFactory libraryMaker) -
isAbsolute
-
isURI
-