Class ResourceManager


  • public final class ResourceManager
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.Object> read​(java.net.URI resourceUri, com.oracle.truffle.api.nodes.Node readNode)  
      java.util.List<GlobResolver.ResolvedGlobElement> resolveGlob​(java.net.URI globUri, java.net.URI enclosingUri, ModuleKey enclosingModuleKey, com.oracle.truffle.api.nodes.Node readNode, java.lang.String globExpression)
      Resolves the glob URI into a set of URIs.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • resolveGlob

        public java.util.List<GlobResolver.ResolvedGlobElement> resolveGlob​(java.net.URI globUri,
                                                                            java.net.URI enclosingUri,
                                                                            ModuleKey enclosingModuleKey,
                                                                            com.oracle.truffle.api.nodes.Node readNode,
                                                                            java.lang.String globExpression)
        Resolves the glob URI into a set of URIs.

        The glob URI must be absolute. For example: "file:///foo/bar/*.pkl".

      • read

        public java.util.Optional<java.lang.Object> read​(java.net.URI resourceUri,
                                                         com.oracle.truffle.api.nodes.Node readNode)