Class ResourceLocation
java.lang.Object
com.vladsch.flexmark.test.util.spec.ResourceLocation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NotNull String
static final ResourceLocation
private final @NotNull String
private final @NotNull Class<?>
private final @NotNull String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionResourceLocation
(@NotNull Class<?> resourceClass, @NotNull String resourcePath, @NotNull String fileUrl) private
ResourceLocation
(@NotNull Class<?> resourceClass, @NotNull String resourcePath, @NotNull String fileUrl, @NotNull String resolvedResourcePath) -
Method Summary
Modifier and TypeMethodDescriptionboolean
@NotNull String
@NotNull String
@NotNull String
getFileUrl
(int lineNumber) @NotNull String
@NotNull Class<?>
@NotNull InputStream
static @NotNull InputStream
getResourceInputStream
(@NotNull ResourceLocation location) @NotNull String
@NotNull String
static @NotNull String
getResourceText
(@NotNull ResourceLocation location) int
hashCode()
boolean
isNull()
static @NotNull ResourceLocation
static @NotNull ResourceLocation
static @NotNull ResourceLocation
toString()
@NotNull ResourceLocation
withFileUrl
(@NotNull String fileUrl) @NotNull ResourceLocation
withResolvedResourcePath
(@NotNull String resolvedResourcePath) @NotNull ResourceLocation
withResourceClass
(@NotNull Class<?> resourceClass) @NotNull ResourceLocation
withResourcePath
(@NotNull String resourcePath)
-
Field Details
-
NULL
-
resourceClass
-
resourcePath
-
fileUrl
-
resolvedResourcePath
-
-
Constructor Details
-
ResourceLocation
-
ResourceLocation
-
-
Method Details
-
getResourceClass
-
getResourcePath
-
getFileUrl
-
getFileDirectoryUrl
-
getFileUrl
-
getResolvedResourcePath
-
isNull
public boolean isNull() -
getResourceInputStream
-
getResourceText
-
equals
-
withResourceClass
@NotNull public @NotNull ResourceLocation withResourceClass(@NotNull @NotNull Class<?> resourceClass) -
withResourcePath
-
withFileUrl
-
withResolvedResourcePath
@NotNull public @NotNull ResourceLocation withResolvedResourcePath(@NotNull @NotNull String resolvedResourcePath) -
hashCode
public int hashCode() -
toString
-
of
-
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
-
getResourceInputStream
@NotNull public static @NotNull InputStream getResourceInputStream(@NotNull @NotNull ResourceLocation location)
-