Class ResourceLocation

java.lang.Object
com.vladsch.flexmark.test.util.spec.ResourceLocation

public class ResourceLocation extends Object
  • Field Details

    • NULL

      public static final ResourceLocation NULL
    • resourceClass

      @NotNull private final @NotNull Class<?> resourceClass
    • resourcePath

      @NotNull private final @NotNull String resourcePath
    • fileUrl

      @NotNull private final @NotNull String fileUrl
    • resolvedResourcePath

      @NotNull private final @NotNull String resolvedResourcePath
  • Constructor Details

    • ResourceLocation

      public ResourceLocation(@NotNull @NotNull Class<?> resourceClass, @NotNull @NotNull String resourcePath, @NotNull @NotNull String fileUrl)
    • ResourceLocation

      private ResourceLocation(@NotNull @NotNull Class<?> resourceClass, @NotNull @NotNull String resourcePath, @NotNull @NotNull String fileUrl, @NotNull @NotNull String resolvedResourcePath)
  • Method Details

    • getResourceClass

      @NotNull public @NotNull Class<?> getResourceClass()
    • getResourcePath

      @NotNull public @NotNull String getResourcePath()
    • getFileUrl

      @NotNull public @NotNull String getFileUrl()
    • getFileDirectoryUrl

      @NotNull public @NotNull String getFileDirectoryUrl()
    • getFileUrl

      @NotNull public @NotNull String getFileUrl(int lineNumber)
    • getResolvedResourcePath

      @NotNull public @NotNull String getResolvedResourcePath()
    • isNull

      public boolean isNull()
    • getResourceInputStream

      @NotNull public @NotNull InputStream getResourceInputStream()
    • getResourceText

      @NotNull public @NotNull String getResourceText()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • withResourceClass

      @NotNull public @NotNull ResourceLocation withResourceClass(@NotNull @NotNull Class<?> resourceClass)
    • withResourcePath

      @NotNull public @NotNull ResourceLocation withResourcePath(@NotNull @NotNull String resourcePath)
    • withFileUrl

      @NotNull public @NotNull ResourceLocation withFileUrl(@NotNull @NotNull String fileUrl)
    • withResolvedResourcePath

      @NotNull public @NotNull ResourceLocation withResolvedResourcePath(@NotNull @NotNull String resolvedResourcePath)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • of

      @NotNull public static @NotNull ResourceLocation of(@NotNull @NotNull String resourcePath)
    • of

      @NotNull public static @NotNull ResourceLocation of(@NotNull @NotNull Class<?> resourceClass, @NotNull @NotNull String resourcePath)
    • of

      @NotNull public static @NotNull ResourceLocation of(@NotNull @NotNull Class<?> resourceClass, @NotNull @NotNull String resourcePath, @NotNull @NotNull String fileUrl)
    • getResourceText

      @NotNull public static @NotNull String getResourceText(@NotNull @NotNull ResourceLocation location)
    • getResourceInputStream

      @NotNull public static @NotNull InputStream getResourceInputStream(@NotNull @NotNull ResourceLocation location)