Class SpecExample
java.lang.Object
com.vladsch.flexmark.test.util.spec.SpecExample
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable Stringprivate static final ConcurrentMap<String, String> private final @Nullable Stringprivate final intprivate final @NotNull Stringprivate final booleanprivate final intstatic final SpecExampleprivate final @Nullable Stringprivate final @NotNull ResourceLocationprivate final @Nullable Stringprivate 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) privateSpecExample(@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 StringgetAst()@Nullable Stringint@NotNull String@NotNull String@NotNull StringgetFileUrlWithLineNumber(int lineOffset) @NotNull StringgetHtml()@Nullable String@NotNull ResourceLocation@Nullable String@NotNull StringbooleanbooleanbooleanbooleanisNull()booleanstatic @NotNull SpecExampleofCaller(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)
-