Class SpecExample

java.lang.Object
com.vladsch.flexmark.test.util.spec.SpecExample

public class SpecExample extends Object
  • Field Details

    • NULL

      public static final SpecExample NULL
    • resourceLocation

      @NotNull private final @NotNull ResourceLocation resourceLocation
    • lineNumber

      private final int lineNumber
    • optionsSet

      @Nullable private final @Nullable String optionsSet
    • section

      @Nullable private final @Nullable String section
    • exampleNumber

      private final int exampleNumber
    • source

      @NotNull private final @NotNull String source
    • html

      @NotNull private final @NotNull String html
    • ast

      @Nullable private final @Nullable String ast
    • comment

      @Nullable private final @Nullable String comment
    • isNull

      private final boolean isNull
    • classMap

      private static final ConcurrentMap<String,String> classMap
  • Constructor Details

    • SpecExample

      public 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)
    • 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

      public SpecExample withResourceLocation(@NotNull @NotNull ResourceLocation location)
    • withOptionsSet

      public SpecExample withOptionsSet(@Nullable @Nullable String optionsSet)
    • withSection

      public SpecExample withSection(@Nullable @Nullable String section)
    • withExampleNumber

      public SpecExample withExampleNumber(int exampleNumber)
    • withSource

      public SpecExample withSource(@NotNull @NotNull String source)
    • withHtml

      public SpecExample withHtml(@NotNull @NotNull String html)
    • withAst

      public SpecExample withAst(@Nullable @Nullable String ast)
    • isFullSpecExample

      public boolean isFullSpecExample()
    • isNull

      public boolean isNull()
    • isSpecExample

      public boolean isSpecExample()
    • isNotNull

      public boolean isNotNull()
    • getOptionsSet

      @Nullable public @Nullable String getOptionsSet()
    • getFileUrlWithLineNumber

      @NotNull public @NotNull String getFileUrlWithLineNumber()
    • getFileUrlWithLineNumber

      @NotNull public @NotNull String getFileUrlWithLineNumber(int lineOffset)
    • getFileUrl

      @NotNull public @NotNull String getFileUrl()
    • getResourceLocation

      @NotNull public @NotNull ResourceLocation getResourceLocation()
    • getSource

      @NotNull public @NotNull String getSource()
    • getHtml

      @NotNull public @NotNull String getHtml()
    • getAst

      @Nullable public @Nullable String getAst()
    • getSection

      @Nullable public @Nullable String getSection()
    • getExampleNumber

      public int getExampleNumber()
    • getComment

      @Nullable public @Nullable String getComment()
    • hasComment

      public boolean hasComment()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • ofCaller

      @NotNull public static @NotNull SpecExample ofCaller(int callNesting, Class<?> resourceClass, @NotNull @NotNull String source, @NotNull @NotNull String html, @Nullable @Nullable String ast)