Class SpecExample
java.lang.Object
com.vladsch.flexmark.test.util.spec.SpecExample
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable String
private static final ConcurrentMap
<String, String> private final @Nullable String
private final int
private final @NotNull String
private final boolean
private final int
static final SpecExample
private final @Nullable String
private final @NotNull ResourceLocation
private final @Nullable String
private final @NotNull String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionSpecExample
(@NotNull ResourceLocation resourceLocation, int lineNumber, @Nullable String optionsSet, @Nullable String section, int exampleNumber, @NotNull String source, @NotNull String html, @Nullable String ast, String comment) private
SpecExample
(@NotNull ResourceLocation resourceLocation, int lineNumber, @Nullable String optionsSet, @Nullable String section, int exampleNumber, @NotNull String source, @NotNull String html, @Nullable String ast, String comment, boolean isNull) -
Method Summary
Modifier and TypeMethodDescription@Nullable String
getAst()
@Nullable String
int
@NotNull String
@NotNull String
@NotNull String
getFileUrlWithLineNumber
(int lineOffset) @NotNull String
getHtml()
@Nullable String
@NotNull ResourceLocation
@Nullable String
@NotNull String
boolean
boolean
boolean
boolean
isNull()
boolean
static @NotNull SpecExample
ofCaller
(int callNesting, Class<?> resourceClass, @NotNull String source, @NotNull String html, @Nullable String ast) toString()
withExampleNumber
(int exampleNumber) withOptionsSet
(@Nullable String optionsSet) withResourceLocation
(@NotNull ResourceLocation location) withSection
(@Nullable String section) withSource
(@NotNull String source)
-
Field Details
-
NULL
-
resourceLocation
-
lineNumber
private final int lineNumber -
optionsSet
-
section
-
exampleNumber
private final int exampleNumber -
source
-
html
-
ast
-
comment
-
isNull
private final boolean isNull -
classMap
-
-
Constructor Details
-
SpecExample
-
SpecExample
private SpecExample(@NotNull @NotNull ResourceLocation resourceLocation, int lineNumber, @Nullable @Nullable String optionsSet, @Nullable @Nullable String section, int exampleNumber, @NotNull @NotNull String source, @NotNull @NotNull String html, @Nullable @Nullable String ast, String comment, boolean isNull)
-
-
Method Details
-
withResourceLocation
-
withOptionsSet
-
withSection
-
withExampleNumber
-
withSource
-
withHtml
-
withAst
-
isFullSpecExample
public boolean isFullSpecExample() -
isNull
public boolean isNull() -
isSpecExample
public boolean isSpecExample() -
isNotNull
public boolean isNotNull() -
getOptionsSet
-
getFileUrlWithLineNumber
-
getFileUrlWithLineNumber
-
getFileUrl
-
getResourceLocation
-
getSource
-
getHtml
-
getAst
-
getSection
-
getExampleNumber
public int getExampleNumber() -
getComment
-
hasComment
public boolean hasComment() -
toString
-
ofCaller
@NotNull public static @NotNull SpecExample ofCaller(int callNesting, Class<?> resourceClass, @NotNull @NotNull String source, @NotNull @NotNull String html, @Nullable @Nullable String ast)
-