Class SpecExample
- java.lang.Object
-
- com.vladsch.flexmark.test.util.spec.SpecExample
-
public class SpecExample extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private @Nullable java.lang.String
ast
private static java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String>
classMap
private @Nullable java.lang.String
comment
private int
exampleNumber
private @NotNull java.lang.String
html
private boolean
isNull
private int
lineNumber
static SpecExample
NULL
private @Nullable java.lang.String
optionsSet
private @NotNull ResourceLocation
resourceLocation
private @Nullable java.lang.String
section
private @NotNull java.lang.String
source
-
Constructor Summary
Constructors Modifier Constructor Description SpecExample(@NotNull ResourceLocation resourceLocation, int lineNumber, @Nullable java.lang.String optionsSet, @Nullable java.lang.String section, int exampleNumber, @NotNull java.lang.String source, @NotNull java.lang.String html, @Nullable java.lang.String ast, java.lang.String comment)
private
SpecExample(@NotNull ResourceLocation resourceLocation, int lineNumber, @Nullable java.lang.String optionsSet, @Nullable java.lang.String section, int exampleNumber, @NotNull java.lang.String source, @NotNull java.lang.String html, @Nullable java.lang.String ast, java.lang.String comment, boolean isNull)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable java.lang.String
getAst()
@Nullable java.lang.String
getComment()
int
getExampleNumber()
@NotNull java.lang.String
getFileUrl()
@NotNull java.lang.String
getFileUrlWithLineNumber()
@NotNull java.lang.String
getFileUrlWithLineNumber(int lineOffset)
@NotNull java.lang.String
getHtml()
@Nullable java.lang.String
getOptionsSet()
@NotNull ResourceLocation
getResourceLocation()
@Nullable java.lang.String
getSection()
@NotNull java.lang.String
getSource()
boolean
hasComment()
boolean
isFullSpecExample()
boolean
isNotNull()
boolean
isNull()
boolean
isSpecExample()
static @NotNull SpecExample
ofCaller(int callNesting, java.lang.Class<?> resourceClass, @NotNull java.lang.String source, @NotNull java.lang.String html, @Nullable java.lang.String ast)
java.lang.String
toString()
SpecExample
withAst(@Nullable java.lang.String ast)
SpecExample
withExampleNumber(int exampleNumber)
SpecExample
withHtml(@NotNull java.lang.String html)
SpecExample
withOptionsSet(@Nullable java.lang.String optionsSet)
SpecExample
withResourceLocation(@NotNull ResourceLocation location)
SpecExample
withSection(@Nullable java.lang.String section)
SpecExample
withSource(@NotNull java.lang.String source)
-
-
-
Field Detail
-
NULL
public static final SpecExample NULL
-
resourceLocation
@NotNull private final @NotNull ResourceLocation resourceLocation
-
lineNumber
private final int lineNumber
-
optionsSet
@Nullable private final @Nullable java.lang.String optionsSet
-
section
@Nullable private final @Nullable java.lang.String section
-
exampleNumber
private final int exampleNumber
-
source
@NotNull private final @NotNull java.lang.String source
-
html
@NotNull private final @NotNull java.lang.String html
-
ast
@Nullable private final @Nullable java.lang.String ast
-
comment
@Nullable private final @Nullable java.lang.String comment
-
isNull
private final boolean isNull
-
classMap
private static final java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String> classMap
-
-
Constructor Detail
-
SpecExample
public SpecExample(@NotNull @NotNull ResourceLocation resourceLocation, int lineNumber, @Nullable @Nullable java.lang.String optionsSet, @Nullable @Nullable java.lang.String section, int exampleNumber, @NotNull @NotNull java.lang.String source, @NotNull @NotNull java.lang.String html, @Nullable @Nullable java.lang.String ast, java.lang.String comment)
-
SpecExample
private SpecExample(@NotNull @NotNull ResourceLocation resourceLocation, int lineNumber, @Nullable @Nullable java.lang.String optionsSet, @Nullable @Nullable java.lang.String section, int exampleNumber, @NotNull @NotNull java.lang.String source, @NotNull @NotNull java.lang.String html, @Nullable @Nullable java.lang.String ast, java.lang.String comment, boolean isNull)
-
-
Method Detail
-
withResourceLocation
public SpecExample withResourceLocation(@NotNull @NotNull ResourceLocation location)
-
withOptionsSet
public SpecExample withOptionsSet(@Nullable @Nullable java.lang.String optionsSet)
-
withSection
public SpecExample withSection(@Nullable @Nullable java.lang.String section)
-
withExampleNumber
public SpecExample withExampleNumber(int exampleNumber)
-
withSource
public SpecExample withSource(@NotNull @NotNull java.lang.String source)
-
withHtml
public SpecExample withHtml(@NotNull @NotNull java.lang.String html)
-
withAst
public SpecExample withAst(@Nullable @Nullable java.lang.String ast)
-
isFullSpecExample
public boolean isFullSpecExample()
-
isNull
public boolean isNull()
-
isSpecExample
public boolean isSpecExample()
-
isNotNull
public boolean isNotNull()
-
getOptionsSet
@Nullable public @Nullable java.lang.String getOptionsSet()
-
getFileUrlWithLineNumber
@NotNull public @NotNull java.lang.String getFileUrlWithLineNumber()
-
getFileUrlWithLineNumber
@NotNull public @NotNull java.lang.String getFileUrlWithLineNumber(int lineOffset)
-
getFileUrl
@NotNull public @NotNull java.lang.String getFileUrl()
-
getResourceLocation
@NotNull public @NotNull ResourceLocation getResourceLocation()
-
getSource
@NotNull public @NotNull java.lang.String getSource()
-
getHtml
@NotNull public @NotNull java.lang.String getHtml()
-
getAst
@Nullable public @Nullable java.lang.String getAst()
-
getSection
@Nullable public @Nullable java.lang.String getSection()
-
getExampleNumber
public int getExampleNumber()
-
getComment
@Nullable public @Nullable java.lang.String getComment()
-
hasComment
public boolean hasComment()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
ofCaller
@NotNull public static @NotNull SpecExample ofCaller(int callNesting, java.lang.Class<?> resourceClass, @NotNull @NotNull java.lang.String source, @NotNull @NotNull java.lang.String html, @Nullable @Nullable java.lang.String ast)
-
-