Class ResourceLocation
- java.lang.Object
-
- com.vladsch.flexmark.test.util.spec.ResourceLocation
-
public class ResourceLocation extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private @NotNull java.lang.StringfileUrlstatic ResourceLocationNULLprivate @NotNull java.lang.StringresolvedResourcePathprivate @NotNull java.lang.Class<?>resourceClassprivate @NotNull java.lang.StringresourcePath
-
Constructor Summary
Constructors Modifier Constructor Description ResourceLocation(@NotNull java.lang.Class<?> resourceClass, @NotNull java.lang.String resourcePath, @NotNull java.lang.String fileUrl)privateResourceLocation(@NotNull java.lang.Class<?> resourceClass, @NotNull java.lang.String resourcePath, @NotNull java.lang.String fileUrl, @NotNull java.lang.String resolvedResourcePath)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)@NotNull java.lang.StringgetFileDirectoryUrl()@NotNull java.lang.StringgetFileUrl()@NotNull java.lang.StringgetFileUrl(int lineNumber)@NotNull java.lang.StringgetResolvedResourcePath()@NotNull java.lang.Class<?>getResourceClass()@NotNull java.io.InputStreamgetResourceInputStream()static @NotNull java.io.InputStreamgetResourceInputStream(@NotNull ResourceLocation location)@NotNull java.lang.StringgetResourcePath()@NotNull java.lang.StringgetResourceText()static @NotNull java.lang.StringgetResourceText(@NotNull ResourceLocation location)inthashCode()booleanisNull()static @NotNull ResourceLocationof(@NotNull java.lang.Class<?> resourceClass, @NotNull java.lang.String resourcePath)static @NotNull ResourceLocationof(@NotNull java.lang.Class<?> resourceClass, @NotNull java.lang.String resourcePath, @NotNull java.lang.String fileUrl)static @NotNull ResourceLocationof(@NotNull java.lang.String resourcePath)java.lang.StringtoString()@NotNull ResourceLocationwithFileUrl(@NotNull java.lang.String fileUrl)@NotNull ResourceLocationwithResolvedResourcePath(@NotNull java.lang.String resolvedResourcePath)@NotNull ResourceLocationwithResourceClass(@NotNull java.lang.Class<?> resourceClass)@NotNull ResourceLocationwithResourcePath(@NotNull java.lang.String resourcePath)
-
-
-
Field Detail
-
NULL
public static final ResourceLocation NULL
-
resourceClass
@NotNull private final @NotNull java.lang.Class<?> resourceClass
-
resourcePath
@NotNull private final @NotNull java.lang.String resourcePath
-
fileUrl
@NotNull private final @NotNull java.lang.String fileUrl
-
resolvedResourcePath
@NotNull private final @NotNull java.lang.String resolvedResourcePath
-
-
Constructor Detail
-
ResourceLocation
public ResourceLocation(@NotNull @NotNull java.lang.Class<?> resourceClass, @NotNull @NotNull java.lang.String resourcePath, @NotNull @NotNull java.lang.String fileUrl)
-
ResourceLocation
private ResourceLocation(@NotNull @NotNull java.lang.Class<?> resourceClass, @NotNull @NotNull java.lang.String resourcePath, @NotNull @NotNull java.lang.String fileUrl, @NotNull @NotNull java.lang.String resolvedResourcePath)
-
-
Method Detail
-
getResourceClass
@NotNull public @NotNull java.lang.Class<?> getResourceClass()
-
getResourcePath
@NotNull public @NotNull java.lang.String getResourcePath()
-
getFileUrl
@NotNull public @NotNull java.lang.String getFileUrl()
-
getFileDirectoryUrl
@NotNull public @NotNull java.lang.String getFileDirectoryUrl()
-
getFileUrl
@NotNull public @NotNull java.lang.String getFileUrl(int lineNumber)
-
getResolvedResourcePath
@NotNull public @NotNull java.lang.String getResolvedResourcePath()
-
isNull
public boolean isNull()
-
getResourceInputStream
@NotNull public @NotNull java.io.InputStream getResourceInputStream()
-
getResourceText
@NotNull public @NotNull java.lang.String getResourceText()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
withResourceClass
@NotNull public @NotNull ResourceLocation withResourceClass(@NotNull @NotNull java.lang.Class<?> resourceClass)
-
withResourcePath
@NotNull public @NotNull ResourceLocation withResourcePath(@NotNull @NotNull java.lang.String resourcePath)
-
withFileUrl
@NotNull public @NotNull ResourceLocation withFileUrl(@NotNull @NotNull java.lang.String fileUrl)
-
withResolvedResourcePath
@NotNull public @NotNull ResourceLocation withResolvedResourcePath(@NotNull @NotNull java.lang.String resolvedResourcePath)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
of
@NotNull public static @NotNull ResourceLocation of(@NotNull @NotNull java.lang.String resourcePath)
-
of
@NotNull public static @NotNull ResourceLocation of(@NotNull @NotNull java.lang.Class<?> resourceClass, @NotNull @NotNull java.lang.String resourcePath)
-
of
@NotNull public static @NotNull ResourceLocation of(@NotNull @NotNull java.lang.Class<?> resourceClass, @NotNull @NotNull java.lang.String resourcePath, @NotNull @NotNull java.lang.String fileUrl)
-
getResourceText
@NotNull public static @NotNull java.lang.String getResourceText(@NotNull @NotNull ResourceLocation location)
-
getResourceInputStream
@NotNull public static @NotNull java.io.InputStream getResourceInputStream(@NotNull @NotNull ResourceLocation location)
-
-