IStylerService

public interface IStylerService<F>

Interface for styling of categorized parse and analysis results.

Parameters:
  • <F> – Type of fragments.

Methods

styleAnalyzed

Iterable<IRegionStyle<F>> styleAnalyzed(ILanguageImpl langImpl, Iterable<IRegionCategory<F>> categorization)

Returns a styling of given categorized analysis result.

Parameters:
  • langImpl – Language implementation that contains the styling logic.
  • categorization – Analysis result categorization to style.
Returns:

Iterable over styles assigned to regions of the source text. Regions do not overlap and are iterated over in ascending order.

styleParsed

Iterable<IRegionStyle<F>> styleParsed(ILanguageImpl langImpl, Iterable<IRegionCategory<F>> categorization)

Returns a styling of given categorized parse result.

Parameters:
  • langImpl – Language implementation that contains the styling logic.
  • categorization – Parse result categorization to style.
Returns:

Iterable over styles assigned to regions of the source text. Regions do not overlap and are iterated over in ascending order.