test_class.file: resource/impl/src/test/java/cloud/piranha/resource/AliasedDirectoryResourceTest.java
test_class.identifier: AliasedDirectoryResourceTest
test_case.body: @Test
      void testGetResource3() {
          AliasedDirectoryResource resource = new AliasedDirectoryResource(new File("src/test/java/org"), "/org");
          assertNull(resource.getResource("/cloud/piranha/resource/AliasedDirectoryResourceTest2.java"));
      }
test_case.class_method_signature: AliasedDirectoryResourceTest.testGetResource3()
test_case.full_signature: @Test void testGetResource3()
test_case.identifier: testGetResource3
test_case.invocations: assertNull getResource
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetResource3()
focal_class.declarator: rootDirectory
focal_class.modifier: private
focal_class.original_string: private File rootDirectory;
focal_class.type: File
focal_class.var_name: rootDirectory
focal_class.declarator: alias
focal_class.modifier: private
focal_class.original_string: private String alias;
focal_class.type: String
focal_class.var_name: alias
focal_class.file: resource/impl/src/main/java/cloud/piranha/resource/AliasedDirectoryResource.java
focal_class.identifier: AliasedDirectoryResource
focal_class.interfaces: implements Resource
focal_class.class_method_signature: AliasedDirectoryResource.AliasedDirectoryResource()
focal_class.full_signature: public  AliasedDirectoryResource()
focal_class.identifier: AliasedDirectoryResource
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  AliasedDirectoryResource()
focal_class.class_method_signature: AliasedDirectoryResource.AliasedDirectoryResource(File rootDirectory, String alias)
focal_class.full_signature: public  AliasedDirectoryResource(File rootDirectory, String alias)
focal_class.identifier: AliasedDirectoryResource
focal_class.modifiers: public
focal_class.parameters: (File rootDirectory, String alias)
focal_class.signature:  AliasedDirectoryResource(File rootDirectory, String alias)
focal_class.class_method_signature: AliasedDirectoryResource.getResource(String location)
focal_class.full_signature: @Override public URL getResource(String location)
focal_class.identifier: getResource
focal_class.modifiers: @Override public
focal_class.parameters: (String location)
focal_class.return: URL
focal_class.signature: URL getResource(String location)
focal_class.class_method_signature: AliasedDirectoryResource.getResourceAsStream(String location)
focal_class.full_signature: @Override public InputStream getResourceAsStream(String location)
focal_class.identifier: getResourceAsStream
focal_class.modifiers: @Override public
focal_class.parameters: (String location)
focal_class.return: InputStream
focal_class.signature: InputStream getResourceAsStream(String location)
focal_class.class_method_signature: AliasedDirectoryResource.getAllLocations()
focal_class.full_signature: @Override public Stream<String> getAllLocations()
focal_class.identifier: getAllLocations
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Stream<String>
focal_class.signature: Stream<String> getAllLocations()
focal_class.class_method_signature: AliasedDirectoryResource.getAlias()
focal_class.full_signature: public String getAlias()
focal_class.identifier: getAlias
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getAlias()
focal_class.class_method_signature: AliasedDirectoryResource.getRootDirectory()
focal_class.full_signature: public File getRootDirectory()
focal_class.identifier: getRootDirectory
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: File
focal_class.signature: File getRootDirectory()
focal_class.class_method_signature: AliasedDirectoryResource.setAlias(String alias)
focal_class.full_signature: public void setAlias(String alias)
focal_class.identifier: setAlias
focal_class.modifiers: public
focal_class.parameters: (String alias)
focal_class.return: void
focal_class.signature: void setAlias(String alias)
focal_class.class_method_signature: AliasedDirectoryResource.setRootDirectory(File rootDirectory)
focal_class.full_signature: public void setRootDirectory(File rootDirectory)
focal_class.identifier: setRootDirectory
focal_class.modifiers: public
focal_class.parameters: (File rootDirectory)
focal_class.return: void
focal_class.signature: void setRootDirectory(File rootDirectory)
focal_method.body: @Override
      public URL getResource(String location) {
          URL result = null;
          if (location.startsWith(alias)) {
              location = location.substring(alias.length());
              File file = new File(rootDirectory, location);
              if (file.exists()) {
                  try {
                      result = file.toURI().toURL();
                  } catch (MalformedURLException exception) {
                  }
              }
          }
          return result;
      }
focal_method.class_method_signature: AliasedDirectoryResource.getResource(String location)
focal_method.full_signature: @Override public URL getResource(String location)
focal_method.identifier: getResource
focal_method.invocations: startsWith substring length exists toURL toURI
focal_method.modifiers: @Override public
focal_method.parameters: (String location)
focal_method.return: URL
focal_method.signature: URL getResource(String location)