Package io.cucumber.prettyformatter
Class Theme
- java.lang.Object
-
- io.cucumber.prettyformatter.Theme
-
public final class Theme extends Object
An ANSI theme for the pretty formatter.The theme consists of a collection of stylable elements. For each element an
ansi styleis declared. The ansi style consists of two escape sequences that are wrapped around the text of stylable element.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTheme.Builderstatic classTheme.ElementAll style-able elements in a theme.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Theme.Builderbuilder()Creates a new builder to construct a theme.static Themecucumber()The default Cucumber theme.static Themenone()Empty theme that does not apply any styling to the output.static Themeplain()A plain text theme.
-
-
-
Method Detail
-
cucumber
public static Theme cucumber()
The default Cucumber theme.
-
none
public static Theme none()
Empty theme that does not apply any styling to the output.
-
plain
public static Theme plain()
A plain text theme. Does not use any ANSI.
-
builder
public static Theme.Builder builder()
Creates a new builder to construct a theme.
-
-