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
fun UnvalidatedStylePattern(source: String, renderingContext: UnvalidatedRenderingContext)

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

Functions

Link copied to clipboard
fun compareSpecificityTo(other: StylePattern): AbstractNumberDescriptor.Order

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.

Properties

Link copied to clipboard
open override val renderingContext: UnvalidatedRenderingContext
Link copied to clipboard
val source: String

The source text of the style pattern.