public class SpecExample extends Object
| Modifier and Type | Field and Description |
|---|---|
static SpecExample |
NULL |
| Constructor and Description |
|---|
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) |
public static final SpecExample NULL
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)
public SpecExample withResourceLocation(@NotNull @NotNull ResourceLocation location)
public SpecExample withOptionsSet(@Nullable @Nullable String optionsSet)
public SpecExample withSection(@Nullable @Nullable String section)
public SpecExample withExampleNumber(int exampleNumber)
public SpecExample withSource(@NotNull @NotNull String source)
public SpecExample withHtml(@NotNull @NotNull String html)
public SpecExample withAst(@Nullable @Nullable String ast)
public boolean isFullSpecExample()
public boolean isNull()
public boolean isSpecExample()
public boolean isNotNull()
@Nullable public @Nullable String getOptionsSet()
@NotNull public @NotNull String getFileUrlWithLineNumber()
@NotNull public @NotNull String getFileUrlWithLineNumber(int lineOffset)
@NotNull public @NotNull String getFileUrl()
@NotNull public @NotNull ResourceLocation getResourceLocation()
@NotNull public @NotNull String getSource()
@NotNull public @NotNull String getHtml()
@Nullable public @Nullable String getAst()
@Nullable public @Nullable String getSection()
public int getExampleNumber()
@Nullable public @Nullable String getComment()
public boolean hasComment()
@NotNull public static @NotNull SpecExample ofCaller(int callNesting, Class<?> resourceClass, @NotNull @NotNull String source, @NotNull @NotNull String html, @Nullable @Nullable String ast)
Copyright © 2020. All rights reserved.