UnvalidatedStylePattern

class UnvalidatedStylePattern(val source: String, val renderingContext: UnvalidatedRenderingContext) : StylePattern

An unvalidated style pattern.

Author

Todd L Smith

Parameters

source

The source text of the style pattern.

renderingContext

Constructors

Link copied to clipboard
constructor(source: String, renderingContext: UnvalidatedRenderingContext)

Construct an UnvalidatedStylePattern from the specified source text and unvalidated rendering context.

Properties

Link copied to clipboard

The source text of the style pattern.

Functions

Link copied to clipboard

Determine the relative specificity of the receiver and the argument. The relative specificity of two patterns is determined according to the following criteria:

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun validate(palette: Palette): ValidatedStylePattern

Validate the receiver against the supplied palette. If validation succeeds, then answer a ValidatedStylePattern that includes the validated source and all attributes of the rendering context.